Posts: 200
Threads: 26
Joined: Apr 2008
Reputation:
0
Title pretty much explains it
When someone types /kill
how do i make it call OnPlayerDeath
as its not atm
Cheers
Posts: 836
Threads: 107
Joined: Sep 2010
Reputation:
0
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.
Posts: 200
Threads: 26
Joined: Apr 2008
Reputation:
0
Thats what i thought, but its not showing the deathmessage, or sending client a message :/
Which is what i have in OnPlayerDeath
Posts: 88
Threads: 24
Joined: Jun 2011
Reputation:
0
Hmm, this used to happen to me too. Try putting the death message in front of any code at onplayerdeath.