Death system help
#1

I want so you fall down when you got under 10hp, if someone is willing to help me, thanks in advance

here is my code

pawn Код:
public DoDeath(playerid)
{
    SendClientMessage(playerid, COLOR_LIGHTRED, "You were brutally wounded, you can either wait for help or accept your death (/acceptdeath)");
    Wounded[playerid] = 1;
    TogglePlayerControllable(playerid, 0);
    SetPlayerPos(playerid, DeathDest[playerid][0],DeathDest[playerid][1],DeathDest[playerid][2]);
    SetPlayerVirtualWorld(playerid,DeathWorld[playerid]);
    SetPlayerInterior(playerid,GetPlayerInterior(playerid));
    ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
    SetPlayerHealth(playerid, 10);
    return 1;
}
Reply


Messages In This Thread
Death system help - by N0FeaR - 20.04.2012, 16:45
Re: Death system help - by ViniBorn - 20.04.2012, 17:05
Re: Death system help - by N0FeaR - 20.04.2012, 17:08
Re: Death system help - by N0FeaR - 20.04.2012, 17:47
Re: Death system help - by ViniBorn - 20.04.2012, 18:21
Re: Death system help - by N0FeaR - 20.04.2012, 21:24
Re: Death system help - by N0FeaR - 20.04.2012, 22:05
Re: Death system help - by ViniBorn - 20.04.2012, 23:26
Re: Death system help - by N0FeaR - 21.04.2012, 00:49

Forum Jump:


Users browsing this thread: 2 Guest(s)