function onKill(cid, target) if isPlayer(target) == TRUE then if ((isInParty(target) and isInParty(cid)) and (getPlayerParty(cid) == getPlayerParty(target))) and isPlayer(target)then broadcastMessage("**** has killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING) elseif getCreatureSkullType(cid) == 4 or getCreatureSkullType(cid) == 3 and getCreatureSkullType(target) == 0 and isPlayer(target)then broadcastMessage("**** has killed ".. getCreatureName(target).." (UnJustified)",MESSAGE_STATUS_WARNING) elseif getCreatureSkullType(target) == 3 or getCreatureSkullType(target) == 4 and isPlayer(target) then broadcastMessage("**** has killed ".. getCreatureName(target).." (Justified)",MESSAGE_STATUS_WARNING) end end return TRUE end
Eu tenho esse script e ele funciona bem, o problema é este.
Se três jogadores me matar .. três vezes a mensagem.
Se eu matar seis jogadores de seis vezes a mensagem para fora.
Eu quero apenas ir uma vez que você ver um para cada jogador.