Anti Supply Hacker !!!
Check post date
Copy code in the "\sys\lua\server.lua"
Open cs2d and check
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
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
function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end hacksupply=initArray(32) addhook("use","useplayer") addhook("objectupgrade","pobject") addhook("join","joinplayer") function pobject(id,up,min,max) if (max==200)and(min==200) then hacksupply[(object(id,"player"))]="OFF" end end function useplayer(id,object,button) if (object==150)and((button==7)or(button==8)or(button==9))and(hacksupply[id]=="ON") then msg ("©255000000"..player(id,"name").." seems to be a supply hacker! Kicked! ") parse('kick '..id..' "Supply Hacker"') end end function joinplayer(id) hacksupply[id]="ON" end
edited 1×, last 09.11.12 07:19:21 pm