Second time connecting.
#1

When player connects first time to the server it's normal health not - and he is in normal zone,when player second time connects ,than that zone on him and health going low ://////
P.S. coordinates perfect.
Код:
OnPlayerSpawn : SetTimer("AreaCheck", 200, 1);

public AreaCheck(playerid)
{
	new Float:hp;
	new Float:counted_health;

	  	counted_health = GetPlayerHealth(playerid, hp) - 1;

			if(IsPlayerInArea(playerid,-2989.536, -2942.825, 2989.536, 502.1487))
			{
				SetPlayerHealth(playerid, counted_health);
			}

 			else if(IsPlayerInArea(playerid, -3001.214, 443.7593, -1331.278, 1634.903))
			{
				SetPlayerHealth(playerid, counted_health);
			}

			else if(IsPlayerInArea(playerid, -2989.536, 1623.225, -1576.513, 2977.858))
			{
				SetPlayerHealth(playerid, counted_health);
			}
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)