16.05.2011, 06:23
That method could also work. Here's the function I made before but without warnings.
Such an ugly function for one that I don't think is very reliable...
pawn Код:
stock SetPlayerInArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
return SetPlayerPosFindZ(playerid, float(floatround(random(floatround(maxx-minx))+minx)), float(floatround(random(floatround(maxy-miny))+miny)), 1000.0);
}