Forum

> > CS2D > Scripts > mute lua
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch mute lua

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt mute lua

limonata
User Off Offline

Zitieren
Hello guys here is the mute script by Sniper95 but When I add colour say script its not work for example I want to write with yellow also use this script. Help please.
P.S: "when you are write !mute it shouldnt appear in chat panel".
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
function Array(size,value) 
    local array = {}
    for i = 1, size do
        array[i]=value
    end
    return array
end
-------------------------

admins = {63092,50998}

yasak = Array(32,0)

addhook("say","mute")
function mute(id,txt)
for _, usgn in pairs(admins) do
if player(id,"usgn") == usgn then
if string.sub(txt,1,5) == "!mute" then
local ida = tonumber(string.sub(txt,7,8))
yasak[ida] = 1
msg2(id,"©000255000Player has been muted : "..player(ida,"name"))
msg2(ida,"©255000000You have been muted by admin.")
return 1
elseif string.sub(txt,1,7) == "!unmute" then
local ida = tonumber(string.sub(txt,8,9))
yasak[ida] = 0
msg2(id,"©000255000Player unmuted : "..player(ida,"name"))
msg2(id,"©255000000Admin forgived you.")
return 1
end
end
end
if yasak[id] == 1 then
msg2(id,"©255000000You have been muted by admin.")
return 1
end
end

addhook("sayteam","eng")
function eng(id,txt)
if yasak[id] == 1 then
msg2(id,"©255000000You have been muted by admin.")
return 1
end
end

alt Re: mute lua

Untitled
User Off Offline

Zitieren
Can't help you with the Lua thing but when you use a command like the one your saying with a ! you don't see it in the chat panel.

alt Re: mute lua

limonata
User Off Offline

Zitieren
The first problem is when I get write colour mute doesnt work. Is there anyone for do this?
2× editiert, zuletzt 24.01.13 10:19:51

alt Re: mute lua

Xirot
User Off Offline

Zitieren
Improve your english , because you can't be a good scripter if you're english suck.
1
2
3
4
yasak[ida] = 0
msg2(id,"©000255000Player unmuted : "..player(ida,"name"))
msg2(id,"©255000000Admin forgave you.")
return 1

alt Re: mute lua

limonata
User Off Offline

Zitieren
Firstly I solved the problems thanks for your helping. Secondly I didnt do this script and thats owner is turkish. So I changed some places quickly for you. So i did some mistakes in english term.

Problem solved. Thanks.

alt Re: mute lua

Obviously Exactly Myself
User Off Offline

Zitieren
@user Xirot: Your script will cause errors, and also, his English is better than yours.

user Xirot hat geschrieben
Improve your english , because you can't be a good scripter if you're english suck.

Improve your English, it's because you can't be a good scripter if your English sucks.

alt Re: mute lua

krabob
User Off Offline

Zitieren
You can keep acting like you speak English perfectly well on the internet, but I bet most of ya don't actually SPEAK it very well.

So yeah.

alt Re: mute lua

Xirot
User Off Offline

Zitieren
@user krabob: Totaly agree , but this guy here is trying to spell some words make no sense.

alt Re: mute lua

DannyDeth
User Off Offline

Zitieren
user Obviously Exactly Myself hat geschrieben
Improve your English, it's because you can't be a good scripter if your English sucks.

inb4 person who can't speak English correcting other person's English.
     His original sentence did not need an "it's" added to it, he was missing some punctuation but that was it. Your modification completely changes the context of the statement. New rule necessary: Refrain from trying to change another's sentences when you cannot speak so well in the first place.
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht