22.09.2017, 09:04
Try this:
PHP код:
public IsPlayerInGangZone(playerid, Float:min_x, Float:min_ y, Float:max_x, Float:max_y)
{
new Float:X1, Float:Y1, Float:Z1;
GetPlayerPos(playerid, X1, Y1, Z1);
if(X1 > min_x && X1 < max_x && Y1 > min_y && Y1 < max_y) return 1;
return 0;
}