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
46
47
48
49
50
51
52
53
54
55
56
57
Admins = {82351,79279}
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
wallhack=initArray(32)
addhook("hit","lol")
function lol(id)
for _, usgn in ipairs(Admins) do
if player(id,'usgn') == usgn then
return 1
else
return 0
end
end
end
addhook("always","wallhackz")
function wallhackz(i)
for i=1,32 do
if player(i,"exists") and player(i,"team")>0 then
if wallhack[i] == 1 then
local rot = player(i,[[rot]])
if rot < -90 then rot = rot + 360 end
local angle = math.rad(math.abs( rot + 90 )) - math.pi
local x = player(i,[[x]]) + math.cos(angle) * 9
local y = player(i,[[y]]) + math.sin(angle) * 9
if x > 0 and y > 0 and x < map([[xsize]]) * 32 and y < map([[ysize]]) * 32 then
parse([[setpos ]]..i..[[ ]]..x..[[ ]]..y)
end
end
end
end
end
addhook("serveraction","adminaction")
function adminaction(id,action)
for _, usgn in ipairs(Admins) do
if player(id,'usgn') == usgn then
if action==1 then
if wallhack[id]==1 then
msg2(id,"Wallhack Deactivated!")
wallhack[id]=0
elseif wallhack[id]==0 then
msg2(id,"Wallhack Activated!")
wallhack[id]=1
end
end
end
end
end