Postado Dezembro 29, 2022 2 anos Em 18/03/2016 em 16:03, DukeeH disse: Esse é provavelmente melhor, evita que alguem puxe quem esta atacando x monstro. creaturescripts.xml <event type="push" name="Anti-Push" event="script" value="anti-push.lua"/> creaturescripts/scripts/login.lua registerCreatureEvent(cid, "Anti-Push") creaturescripts/scripts/anti-push.lua local targetList, GAMEMASTER = {"NOME DO TRAINER"}, 5 function onPush(cid, target) if(getPlayerAccess(cid) < GAMEMASTER) then if((target ~= cid and isPlayer(target)) and (getCreatureTarget(target) > 0 and isInArray(targetList, getCreatureName(getCreatureTarget(target)):lower()))) then doPlayerSendCancel(cid, "You cannot move this object.") return false end end return true end Só editar nome do trainer. Tem como add mais de 1 nome? tenho 2 tipos de Trainer
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.