Postado Setembro 24, 2019 5 anos Solução -- <event type="attack" name="onAttack" script="onAttack.lua"/> local level = 450 function onAttack(cid, target) if not isPlayer(cid) or not isPlayer(target) then return true end if getPlayerLevel(cid) >= level and getPlayerLevel(target) < level then return false elseif getPlayerLevel(target) >= level and getPlayerLevel(cid) < level then return false end return true end STYLLER OT 2022
Postado Setembro 24, 2019 5 anos Autor 10 minutos atrás, luanluciano93 disse: -- <event type="attack" name="onAttack" script="onAttack.lua"/> local level = 450 function onAttack(cid, target) if not isPlayer(cid) or not isPlayer(target) then return true end if getPlayerLevel(cid) >= level and getPlayerLevel(target) < level then return false elseif getPlayerLevel(target) >= level and getPlayerLevel(cid) < level then return false end return true end Esse script vai bloquear os niveis maior que 450 não atacar 450 menos? e também fazer os niveis baixo poder atacar uns aos outros normal só não atacando os niveis mais alto ?
Postado Setembro 24, 2019 5 anos SE O ATACANTE FOR LEVEL 450 OU MAIS E A VÍTIMA LEVEL MENOR QUE 450, ELE NÃO PODE ATACAR! SE O ATACANTE FOR LEVEL MENOR QUE 450 E A VÍTIMA LEVEL 450 OU MAIOR, ELE NÃO PODE ATACAR! STYLLER OT 2022
Postado Setembro 27, 2019 5 anos Em 23/09/2019 em 22:28, luanluciano93 disse: -- <event type="attack" name="onAttack" script="onAttack.lua"/> local level = 450 function onAttack(cid, target) if not isPlayer(cid) or not isPlayer(target) then return true end if getPlayerLevel(cid) >= level and getPlayerLevel(target) < level then return false elseif getPlayerLevel(target) >= level and getPlayerLevel(cid) < level then return false end return true end eu tentei fazer não abrir pk caso der o erro porém sem sucesso alguma idéia? Projeto ATS (Naruto)Informações AbaixoFacebookYoutubeDiscord Tutoriais / ConteúdosClique Aqui
Postado Setembro 28, 2019 5 anos Com isso talvez !? doRemoveCondition(cid, CONDITION_INFIGHT) STYLLER OT 2022
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.