Onplayerdeath
#2

pawn Код:
public OnPlayerUpdate(playerid)
{
    new Float:player_Health;
    GetPlayerHealth(playerid, player_Health);
    if(player_Health <= 20)
    {
        ApplyAnimation(// You're going to need to place the animation here.
        GameTextForPlayer(playerid, "Say /acceptdeath if you want to die. Do /service ems if you want the EMS", 2500, 3);
        TogglePlayerControllable(playerid, 0);
    }
    return 1;
}
Reply


Messages In This Thread
Onplayerdeath - by Bam23 - 28.03.2011, 18:51
Re: Onplayerdeath - by Skylar Paul - 28.03.2011, 20:33
Re: Onplayerdeath - by WackoX - 28.03.2011, 20:36
Re: Onplayerdeath - by Skylar Paul - 28.03.2011, 20:41
Re: Onplayerdeath - by airsoft - 28.03.2011, 20:45
Re: Onplayerdeath - by gamer931215 - 28.03.2011, 20:53
Re: Onplayerdeath - by airsoft - 29.03.2011, 20:43

Forum Jump:


Users browsing this thread: 1 Guest(s)