Postado Março 31, 2020 5 anos É possível fazer um script se o player do mesmo ip tiver x storage não ter acesso para passa na porta? Por que usei um script anti-mc por ip, mas os cara exit e consegue passa com outro MC.. local questArea = {from = {x = 31556, y = 32643, z = 8}, to = {x =32248, y = 31868, z = 8}} -- area do evento... local levelAccess = 180 local function isMC(uid) for _, pid in ipairs(getPlayersOnline()) do if uid ~= pid and getPlayerIp(uid) == getPlayerIp(pid) and getPlayerStorageValue(pid, 484950) > 0 then return true end end return false end function onUse(cid, item, fromPosition, itemEx, toPosition) local cidPosition = getCreaturePosition(cid) if getPlayerLevel(cid) >= levelAccess then if isMC(cid) then doPlayerSendCancel(cid, "É proibido a entrada de MCs nesta Quest.") else if cidPosition.x < toPosition.x then doTeleportThing(cid, {x=toPosition.x+1,y=toPosition.y,z=toPosition.z}, TRUE) else doTeleportThing(cid, {x=toPosition.x-1,y=toPosition.y,z=toPosition.z}, TRUE) setPlayerStorageValue(cid, 484950, 0) doCreatureSay(cid, "Welcome to Quest!!", TALKTYPE_ORANGE_1) setPlayerStorageValue(cid, 484950, 1) end end return true else doPlayerSendCancel(cid, "Seu level é menor que " .. levelAccess .. ".") end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.