/kill Call onplayerdeath
#1

Title pretty much explains it

When someone types /kill
how do i make it call OnPlayerDeath
as its not atm

Cheers
Reply
#2

It always calls it, maybe you want it to send the death message?

OnPlayerDeath means (to me) once the player dies. So if /kill sets the health to less than 1 then the player dies, so it's then called.
Reply
#3

Thats what i thought, but its not showing the deathmessage, or sending client a message :/

Which is what i have in OnPlayerDeath
Reply
#4

Under OnPlayerDeath, add this:

pawn Код:
SendDeathMessage(killerid, playerid, reason);
Reply
#5

Quote:
Originally Posted by Tee
Посмотреть сообщение
Under OnPlayerDeath, add this:

pawn Код:
SendDeathMessage(killerid, playerid, reason);
Its there, but its not showing a death message when i type /kill :/
Reply
#6

Hmm, this used to happen to me too. Try putting the death message in front of any code at onplayerdeath.
Reply
#7

Worked TYVM
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)