Callback problem
#1

I have make so you fall under 50hp but nothing happends when you get under 50hp thanks in advance.

callback

pawn Код:
}

public DoDeath(playerid)
{
    new Float:phealth;
    GetPlayerHealth(playerid,phealth);
    if(phealth < 50)
    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);
    PlayerInfo[playerid][pDeath] = 0;
    SetPlayerPos(playerid, DeathDest[playerid][0],DeathDest[playerid][1],DeathDest[playerid][2]);
    SetPlayerVirtualWorld(playerid,DeathWorld[playerid]);
    SetPlayerHealth(playerid, 5);
    SetPlayerInterior(playerid,GetPlayerInterior(playerid));
    ApplyAnimation(playerid, "WUZI", "CS_Dead_Guy", 4.0, 1, 1, 1, 1, 1);
    return 1;
}
Reply


Messages In This Thread
Callback problem - by N0FeaR - 05.03.2012, 18:06
Re: Callback problem - by Twisted_Insane - 05.03.2012, 18:09
Re: Callback problem - by N0FeaR - 05.03.2012, 18:20
Re: Callback problem - by N0FeaR - 05.03.2012, 19:25
Re: Callback problem - by [BP]Tony - 05.03.2012, 19:29
Re: Callback problem - by ThaFuq?Santinosback! - 05.03.2012, 19:35
Re: Callback problem - by [BP]Tony - 05.03.2012, 19:36
Re: Callback problem - by N0FeaR - 05.03.2012, 19:38
Re: Callback problem - by N0FeaR - 05.03.2012, 19:40
Re: Callback problem - by N0FeaR - 05.03.2012, 21:45

Forum Jump:


Users browsing this thread: 1 Guest(s)