18.07.2009, 18:39
I have RP server and I want when a player is killed to spawn at hospital freezed and his life increased steadily and when it reach 50% he can leave
public OnPlayerDeath(playerid, killerid, reason)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health < 50.0)
{
SetPlayerPos(playerid, x, x, x);
}
return 1;
}