28.03.2009, 12:31
IsPlayerInArea definition:
Note the argument order: minx, maxx, miny, maxy
You have set them to: maxx, miny, minx, maxy
So change
to
pawn Код:
stock IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
You have set them to: maxx, miny, minx, maxy
So change
pawn Код:
if(IsPlayerInArea(i, -1861.632, 436.2632, -1626.008, 629.5665))
pawn Код:
if(IsPlayerInArea(i, -1626.008, -1861.632, 436.2632, 629.5665))