Spoiler 
safezone = {
{{xx,yy}}, -- put xposition(pixels) at xx and put yposition(pixels) at yy. to add more just copy {{xx,yy}}
}
addhook("move","_move")
function _move(id,x,y,walk)
for k, v in ipairs(safezone) do
if x>=v[1][1] and x<=v[2][1] and y>=[1][2] and y<=v[2][2] then
parse('hudtxt2 '..id..' 1 "©255064000SAFE" 320 240')
else
parse('hudtxt2 '..id..' 1 " " 320 240')
end
end
end
addhook("hit","_hit")
function _hit(id,pl,weapon,hp,ap)
local Px = player(id,"x")
local Py = player(id,"y")
for k, v in ipairs(safezone) do
if Px>=v[1][1] and Px<=v[2][1] and Py>=[1][2] and Py<=v[2][2] then
return 1
else
return 0
end
end
end