Players not dying when killed?
#1

I was playing with a few people in my server, and I noticed when you killed someone they didn't respawn. OnPlayerDeath get's called, I've saw that. But, I can't figure out what's cause them to not die.

Thanks,
ScottCFR
Reply
#2

I did some basic searching and here's a solution:

pawn Код:
public OnPlayerDeath( playerid, killerid, reason )
{
     ClearAnimiations( playerid );
     SetPlayerHealth( playerid, 1.0 );
}
Reply
#3

Maybe show us the code?
Reply
#4

Agree with Cyanide, some animations or fire can players cause to be still alive after OnPlayerDeath. They will die as soon as the animation/fire finished. Setting up their health to something > 0 will be recognized as respawn, so their old body is removed and fire/animations are reset, so the player really dies.
Reply
#5

Okay, hopefully this works. I've been having problems with deathmatch areas. None of them really involve animations, or fire. But, thanks for the help.

- ScottCFR
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)