30.08.2016, 22:52
It seems it is not working for me...
--- Top of my Script..
SetPlayerSpawn, so if they log in, they're Injured...
Under OnPlayerDeath...
Under OnPlayerUpdate..
Basically, when the person dies, they just go to the hospital... Not placing them in the position, injured.
Код:
new Injured[MAX_PLAYERS];
Код:
if (Injured[playerid] == 1 && GetPlayerAnimationIndex(playerid) != 386) { ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 1, 0, 1); SendEMSQueue(playerid,1); }
Код:
if (Injured[playerid] == 0) { new Float:x, Float:y, Float:z; new Float:angle; Injured[playerid] = 1; GetPlayerPos(playerid, x, y, z); GetPlayerFacingAngle(playerid, angle); } else if (Injured[playerid] == 1) { KillTimer(LoseHealthTimer[playerid]); KillEMSQueue(playerid); if(GetPVarInt(playerid, "activesling") > 0) { DeletePVar(playerid, "activesling"); } }
Код:
if (Injured[playerid] == 1 && GetPlayerAnimationIndex(playerid) != 386) { ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 1, 0, 1); }
Basically, when the person dies, they just go to the hospital... Not placing them in the position, injured.