D
Deleted member 141899
Guest
Hello friends,
I need help to adapt this script in a movement tile to block the MC's to enter an event:
i tried to put in function "stepin" but is blocking mc player entering the event before to check if have a player with the same IP within the area.
I tried to put a doCheckArea function but had some erros..
Can someone help me? thanks
I need help to adapt this script in a movement tile to block the MC's to enter an event:
Code:
local AccPorIp = 2
function onLogin(player)
local mc = 0
for _, verificar in ipairs(Game.getPlayers()) do
if player:getIp() == verificar:getIp() then
mc = mc + 1
if mc > AccPorIp then return false end
end
end
return true
end
i tried to put in function "stepin" but is blocking mc player entering the event before to check if have a player with the same IP within the area.
I tried to put a doCheckArea function but had some erros..
Can someone help me? thanks