Hello need help about IsPlayerInArea please help.
#1

So I cant get it how the code works I tried to get the script working but no effect. SO I'm here.

I need help about if player is in zone, he gets message--> "You are now in Grove zone you are not safe...."

Please some one help me.

Sincerely Your Trapped. Thanks for help.. (I know for thanks you cant buy nothing)

Код:
forward AreaCheck(playerid)

SetTimer("AreaCheck", 3000, 1);

public AreaCheck(playerid)
{
	new Float:h;
	for(new i=0; i<MAX_PLAYERS; i++ )
	{
	  if(!IsPlayerConnected(i)) continue;
		if(IsPlayerInArea(i,2989.536, -2989.536, 502.1487,-2942.825) && IsPlayerAlive[i])
		{
			SetPlayerHealth(i, 0.0);
			SendClientMessage(i, COLOR_RED, "Danger Zone!");
			}
 		if(IsPlayerInArea(i, -1331.278, -3001.214, 1634.903, 443.7593) && IsPlayerAlive[i])
		{
			SetPlayerHealth(i, GetPlayerHealth(i, h) -1.0);
			SendClientMessage(i, COLOR_RED, "Danger Zone!");
			}
	}
}
Reply


Messages In This Thread
Hello need help about IsPlayerInArea please help. - by trapped1 - 23.01.2011, 22:26
Re: Hello need help about IsPlayerInArea please help. - by Janek17 - 23.01.2011, 22:30
Re: Hello need help about IsPlayerInArea please help. - by trapped1 - 23.01.2011, 22:35
Re: Hello need help about IsPlayerInArea please help. - by trapped1 - 24.01.2011, 10:14
Re: Hello need help about IsPlayerInArea please help. - by Grim_ - 24.01.2011, 10:18

Forum Jump:


Users browsing this thread: 1 Guest(s)