Quote:
Originally Posted by newbie scripter
Can u make a code which returns an random point Count in the zone area??
|
Quote:
Originally Posted by Konstantinos
pawn Код:
forward Float: FRandomEx( Float: min, Float: max );
public OnFilterScriptInit( ) { new Float: rX = FRandomEx( 625.6991, 631.7022 ), // minX, maxX Float: rY = FRandomEx( -1895.0369, -1888.4351 ) // minY, maxY ; printf( "%f | %f", rX, rY ); return 1; }
stock Float: FRandomEx( Float: min, Float: max ) // The original RandomEx by ******, edited for the floats. { return random( floatround( max ) - floatround( min ) ) + floatround( min ); }
|
@Emmet_ Thanks for the tips