Ir para conteúdo

Featured Replies

Postado
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

  • Respostas 5
  • Visualizações 1.6k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @NathanAmaro   Apt   Bpt   Cpt   Dpt   tags     <event type="attack" name="apt" event="script" value="apt.lua"/>     <event ty

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.9k

Informação Importante

Confirmação de Termo