Postado Junho 20, 2018 7 anos 12 horas atrás, poko360 disse: @NathanAmaro Apt Ocultar conteúdo function onAttack(cid, target) if isPlayer(cid) and isInParty(cid) and isPlayer(target) and isInParty(target) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You can not attack your party members") return false else return true end end Bpt Ocultar conteúdo function onCast(cid, target) if isPlayer(cid) and isInParty(cid) and isPlayer(target) and isInParty(target) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You can not attack your party members") return false else return true end end Cpt Ocultar conteúdo function onAreaCombat(cid, tileItem, tilePosition, isAggressive) if isPlayer(cid) and isInParty(cid) and isPlayer(target) and isInParty(target) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You can not attack your party members") return false else return true end end Dpt Ocultar conteúdo function onCombat(cid, target) if isPlayer(cid) and isInParty(cid) and isPlayer(target) and isInParty(target) and getPlayerParty(cid) == getPlayerParty(target) then doPlayerSendCancel(cid, "You can not attack your party members") return false else return true end end tags <event type="attack" name="apt" event="script" value="apt.lua"/> <event type="cast" name="bpt" event="script" value="bpt.lua"/> <event type="areacombat" name="cpt" event="script" value="cpt.lua"/> <event type="combat" name="dpt" event="script" value="dpt.lua"/> quem ajeitou p/ mim foi vodkart, os creditos é dele Muito obrigado amigo, funcionou mesmo! Oi
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.