04.05.2015, 08:15
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;
}
