08.03.2009, 06:58 
	
	
	
		im making a turf wars server and im now making some areas that are neutral or no killing zones, and i couldn't find a callback for isplayeringangzone
so i found this:
now im wondering, if i just match up the min_x, max_x, min_y,max_y with the same co ords as the gang zone that it will work.
Then i can do,
thx in advance
	
	
	
	
so i found this:
Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
	new Float:X, Float:Y, Float:Z;
	GetPlayerPos(playerid, X, Y, Z);
	if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
	return 0;
}
Then i can do,
Код:
OnPlayerDeath
if(IsPlayerInArea(killerid,..,..,..,..,...))
{
kick(killerid);
return 1;
}

