Death Timer Help please
#5

This is what i have now and its not coming back any errors on pawno but it still dont do anything in game.. When my health reach 0 there is no wait time and no animation, I just go strait to the hospital. This is what i have now.
Код:
 public AfterDeath(playerid)
{

   	for(new i=0;i<MAX_PLAYERS;i++)
    {
   	    SetPlayerPos(playerid, DeathPosX(playerid), DeathPosY(playerid), DeathPosZ(playerid));
        ApplyAnimation(playerid,"CRACK","crckdeth1",4.1,1,1,1,1,1,1);
	}
		GameTextForPlayer(playerid, "~r~Injured~n~~w~Please Call the EMS /service EMS", 5000, 3);
		new Float:HISCHP;
        GetPlayerHealth(playerid, HISCHP);
        SetPlayerHealth(playerid, HISCHP-5);
        if(HISCHP < 12.0)
	{
		PlayerInfo[playerid][pHospital] = 1;
		KillTimer(death_timer(playerid));
        SetPlayerSpawn(playerid);
    }
	return 1;

}
Reply


Messages In This Thread
Death Timer Help please - by shaquill - 04.05.2015, 05:31
Re: Death Timer Help please - by ChuckyBabe - 04.05.2015, 05:32
Re: Death Timer Help please - by shaquill - 04.05.2015, 05:38
Re: Death Timer Help please - by Konstantinos - 04.05.2015, 07:11
Re: Death Timer Help please - by shaquill - 04.05.2015, 08:15

Forum Jump:


Users browsing this thread: 1 Guest(s)