1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
zones = {
{3,3,44,27},
{22,54,26,58}
}
function checkInZone(id)
for zn,zone in pairs(zones) do
if player(id,"tilex")>=zone[1] and player(id,"tiley")>=zone[2] and player(id,"tilex")<=zone[3] and player(id,"tiley")<=zone[4] then
return zn
end
end
return nil
end
addhook("hit","safezones")
function safezones(id,src)
if checkInZone(id) then
parse('hudtxt2 '..id..' 5 "©000255255SAFE ZONE" 320 200')
return 1
end
if checkInZone(src) then
return 1
end
end
PS:I think it's like that, i'm not expert in language lua