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","_say") function _say(id,txt) if string.sub(txt,1,6)=="!warn " then 	local iid2 = string.sub(txt,7) 	warn_func_r(id,iid2) 	return 1 end end warn_func={} function warn_func_r(id,iid2) if player(iid2,"exists") then if warn_func[iid2]==nil then warn_func[iid2]=0 end if warn_func[iid2]==0 then msg("Player "..player(iid2,"name").." has been warned!") warn_func[iid2]=1 elseif warn_func[iid2]==1 then msg("Player "..player(iid2,"name").." has been warned!") warn_func[iid2]=2 elseif warn_func[iid2]==2 then msg("Player "..player(iid2,"name").." KICKED! (REASON: WARNS: 3)") parse("kick "..iid2.." 'WARNS: 3'") warn_func[iid2]=3 elseif warn_func[iid2]==3 then msg("Player "..player(iid2,"name").." USGN BANNED! (REASON: WARNS: 4) ") parse("banusgn "..iid2.." 30") warn_func[iid2]=0 end end end
edited 2×, last 03.03.15 03:45:53 pm