HELP ME
#6

You just need to add two lines which set the player's position and the angle when player spawns in injured state as the position and angle of the player gets saved when the player dies.
Like this:
Код:
SetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
SetPlayerFacingAngle(playerid, PlayerData[playerid][pPos][3]);
So you add them here under OnPlayerSpawn to this part:
Код:
		if (PlayerData[playerid][pInjured])
		{
			SetPlayerPos(playerid, PlayerData[playerid][pPos][0], PlayerData[playerid][pPos][1], PlayerData[playerid][pPos][2]);
			SetPlayerFacingAngle(playerid, PlayerData[playerid][pPos][3]);
			
		        ShowHungerTextdraw(playerid, 0);

			TextDrawShowForPlayer(playerid, gServerTextdraws[2]);
			SendClientMessage(playerid, COLOR_LIGHTRED, "[WARNING]:{FFFFFF} You are injured and require medical attention (/call 911).");

			ApplyAnimation(playerid, "CRACK", "null", 4.0, 0, 0, 0, 1, 0, 1);
			ApplyAnimation(playerid, "CRACK", "crckdeth4", 4.0, 0, 0, 0, 1, 0, 1);
		}
Reply


Messages In This Thread
HELP ME - by Jmrz96 - 30.09.2016, 01:33
Re: HELP ME - by Tass007 - 30.09.2016, 01:38
Re: HELP ME - by Jmrz96 - 30.09.2016, 02:19
Re: HELP ME - by Tass007 - 30.09.2016, 03:12
Re: HELP ME - by Jmrz96 - 30.09.2016, 19:18
Re: HELP ME - by GoldenLion - 30.09.2016, 20:06
Re: HELP ME - by Jmrz96 - 01.10.2016, 04:44

Forum Jump:


Users browsing this thread: 1 Guest(s)