but heres the full code:
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
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
addhook("say","kicksay") function kicksay(id,text) for none, usgn in ipairs(ADMIN) do if player(id,'usgn') == usgn then if text:sub(1, 5) == "!kick" then --KICK kickid = text:sub(6, 7) kickreason = text:sub(8) parse("kick "..kickid.." "..kickreason) return 1 elseif text:sub(1, 6) == "!banip" then --BanIp banipp = text:sub(7, 18) bantime = text:sub(19, 22) banreason = text:sub(23) parse("banip "..banipp.." "..bantime.." "..banreason) return 1 elseif text:sub(1, 8) == "!banusgn" then --Ban USGN id banusgnid = text:sub(1, 6) bantime = text:sub(19, 22) banreason = text:sub(23) parse("banusgn "..banusgnid.." "..bantime.." "..banreason) return 1 elseif text:sub(1, 5) == "!kill" then --Kill a player killid = text:sub(6, 7) parse("killplayer "..killid) return 1 elseif text:sub(1, 5) == "!mute" then --Mute a player mutep = text:sub(6, 7) mute[id] = 1 end end end end end
example:
I type in !kick 5,player with that id gets kicked(it works)
but it shows the !kick 5 message in the chat area