Injured System
#1

It seems it is not working for me...

Код:
new Injured[MAX_PLAYERS];
--- Top of my Script..

Код:
		if (Injured[playerid] == 1 && GetPlayerAnimationIndex(playerid) != 386)
		{
			ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 1, 0, 1);
			SendEMSQueue(playerid,1);
		}
SetPlayerSpawn, so if they log in, they're Injured...

Код:
	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");
		}
	}
Under OnPlayerDeath...

Код:
	if (Injured[playerid] == 1 && GetPlayerAnimationIndex(playerid) != 386)
	{
		ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 1, 0, 1);
	}
Under OnPlayerUpdate..

Basically, when the person dies, they just go to the hospital... Not placing them in the position, injured.
Reply


Messages In This Thread
Injured System - by MrCallum - 30.08.2016, 22:52
Re: Injured System - by Shinja - 30.08.2016, 23:40
Re: Injured System - by SickAttack - 30.08.2016, 23:43
Re: Injured System - by cs_waller - 31.08.2016, 00:12
Re: Injured System - by MrCallum - 31.08.2016, 00:35
Re: Injured System - by cs_waller - 31.08.2016, 08:57
Re: Injured System - by MrCallum - 31.08.2016, 14:05

Forum Jump:


Users browsing this thread: 1 Guest(s)