22.06.2010, 19:23
Try this
pawn Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
new Float:pX, Float:pY, Float:pZ;
GetPlayerPos(playerid, pX, pY, pZ);
if(pX <= max_x && pX >= min_x && pY <= max_y && pY >= min_y) return 1;
return 0;
}