PDA

View Full Version : SetPlayerHealth(playerid, 0) ?


CREED115
12/07/2017, 12:40 PM
With SetPlayerHealth(playerid, 0); the player doesn't die immediately, and can walk, always.. I tried like 15-20times...
I started a new gm, at the moment i have 1.8 klines... what can be wrong?

[G]am3r
12/07/2017, 12:43 PM
Show us the code, something can be wrong there.

CREED115
12/07/2017, 12:48 PM
if(sInfo[playerid][Slapes]==1)
{
SetPlayerHealth(playerid, 0.0);
TextDrawHideForPlayer(playerid, SlapesTextDrawRaditajs__);
TextDrawHideForPlayer(playerid, SlapesTextDrawRaditajs_0);
}

Paulice
12/07/2017, 12:55 PM
I've seen this issue on a few servers, it's most likely due to the script. Put the code to test in a blank script and see of it still happens. If it doesn't, then it's the script.

Or you could just force an animation (or a custom scene) without the ability to move.

CREED115
12/07/2017, 01:10 PM
I also tried simply with command:

CMD:kill(playerid, params[])
{
SetPlayerHealth(playerid, 0.0);
return 1;
}

Paulice
12/07/2017, 01:14 PM
Put that command in a blank script. If the issue doesn't occur then it has something to do with your script.