16.05.2011, 06:04
I made this real quick. It should work but I'm pretty sure only if the coordinates are all positive.
Kinda useless lol.
pawn Код:
stock SetPlayerInArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
return SetPlayerPosFindZ(playerid, random(maxx-minx)+minx, random(maxy-miny)+miny, 1000.0);
}