29.06.2009, 20:48
Use this function
You do it like
and if he is in the area, the code in the if statement will execute. And as stated above, you would need a timer to check of the players in the area
pawn Код:
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;
}
pawn Код:
if(IsPlayerInArea(playerid, max x, min x, max y, min y)