Help here a bit with my injured system
#1

I makeing a injured system but he wont fall down under 10hp

pawn Код:
}
public DoDeath(playerid)
{
    new Float:VBLife;
    GetPlayerHealth(playerid,VBLife);
    if(VBLife < 10)
    {
        SendClientMessage(playerid, COLOR_LIGHTRED, "You were brutally wounded, you can either wait for help or accept your death (/accept death)");
        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, 1);
    }
    return 1;
Reply


Messages In This Thread
Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:10
Re: Help here a bit with my injured system - by ViniBorn - 13.05.2012, 16:16
Re: Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:16
Re: Help here a bit with my injured system - by ViniBorn - 13.05.2012, 16:22
Re: Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:26
Re: Help here a bit with my injured system - by ViniBorn - 13.05.2012, 16:34
Re: Help here a bit with my injured system - by N0FeaR - 13.05.2012, 16:36

Forum Jump:


Users browsing this thread: 1 Guest(s)