I Search a "Anti Entrance Kill" script
if player X staying in front of a Teleport, He will be kicked from the server. Thanks
Sorry for my english...
TILE_SIZE = 32 addhook("kill","_kill") function _kill(killer,victim,weapon,x,y) local xt = math.floor(x / TILE_SIZE) local yt = math.floor(y / TILE_SIZE) if entity(xt, yt, "exists") then if entity(xt, yt, "type") == "func_teleport" then parse("killplayer " .. killer) end end end
TILE_SIZE = 32 addhook("kill","_kill") function _kill(killer,victim,weapon,x,y) local xt = math.floor(x / TILE_SIZE) local yt = math.floor(y / TILE_SIZE) if entity(xt, yt, "exists") then if entity(xt, yt, "type") == func_teleport then parse("killplayer " .. killer) end end end
TILE_SIZE = 32 addhook("kill","_kill") function _kill(killer,victim,weapon,x,y) local xt = math.floor(x / TILE_SIZE) local yt = math.floor(y / TILE_SIZE) if entity(xt, yt, "exists") then if entity(xt, yt, "type") == func_teleport then parse("killplayer " .. killer) end end end