Vá em creaturescripts/scripts e crie um arquivo e renomeie para deathbrodcast.lua e adicione isso lá:
function onDeath(cid, corpse, deathList)
if isPlayer(deathList[1]) then
return true,doBroadcastMessage(" O Jogador ".. getCreatureName(cid) .. "[" .. getPlayerLevel(cid) .. "] Foi morto por " .. getCreatureName(deathList[1]) .. "[" .. getPlayerLevel(deathList[1]) .. "]",18)
end
return doBroadcastMessage(" O Jogador ".. getCreatureName(cid) .. "[" .. getPlayerLevel(cid) .. "] Foi morto por um " .. getCreatureName(deathList[1]) .. ".",20)
end
Agora em Creaturescripts.xml Adicione essa Tag:
<event type="death" name="DeathC" event="script" value="deathbroadcast.lua"/>
Em Login.lua Registre essa Tag:
registerCreatureEvent(cid, "DeathC")
(Note, também Ira mandar mensagem quando um Player morrer para tal Bixo)






info
Grupo: Campones
Registrado: 20/02/14
Posts: 2
Reputação: 0
Bom er asim eu queria um script que tipo quando mataçe um player divugaçe em vermelho pra todo mundo tipo asiim
>> level 342: {juka} acabou de mata {alemao} :301 << level postem aew porfavo eu agradeço mt a vocé !!