Calling OnPlayerDeath
#1

Can this be done and will it work?

pawn Код:
new Float:health;
GetPlayerHealth(i,health);
if(health <= 10)
{
    OnPlayerDeath(i,INVALID_PLAYER_ID,51);
}
What I want to use it for is irrelevant, but can I use OnPlayerDeath like this?
Reply
#2

What are you trying to actually make?
Reply
#3

Quote:
Originally Posted by Tanush123
Посмотреть сообщение
What are you trying to actually make?
I get a bug some times where players are alive, but dead. And I want them to die when this happens. Their health is 0, but they don't actually die till they have fallen somewhere. Setting their health to 0 again doesn't work, and nor does exploding them.
Reply
#4

im sure you mean death bug, try this
Reply
#5

Thanks a lot mate.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)