• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua [Creaturescripts] Too many msgs when kill player!

picachu

Member
Joined
Dec 2, 2007
Messages
970
Reaction score
11
Hi!
I have a creaturescripts that when you kill some player, it appears a broadcast!
Take a look on my script:

function onLogin(cid)
registerCreatureEvent(cid, 'own')
return true
end

function onKill(cid, target, lastHit)
if isPlayer(cid) and isPlayer(target) and lastHit then
doBroadcastMessage(getCreatureName(target) ..' morreu para o player '.. getCreatureName(cid))
end
return true
end

But when some player die, it appears like

13:42 Yaeuha killed by player Suahsz
13:42 Yaeuha killed by player Maquiean
13:42 Yaeuha killed by player Spolzisak


I want that appears:

13:42 Yaeuha killed by players Suahsz, Maquiean and Spolzisak.
 
Back
Top