20.01.2013, 07:45
pawn Код:
create_gang_zone ( )
{
new
id, idx_max_min [ 19 ] = { 20, 40, ... } ;
for ( new i; i != GANG_ZONE ; i++ )
{
new Float: MAX_Y = 2965.00, Float: MAX_X = 2870.00
zone_params [ i ][ L_atak_zone ] = -1, zone_params [ i ] [ L_my_zone ] = -1 ;
if ( i == idx_max_min [ i ] ) MAX_X -= 300.00, MAX_Y = 2965.00, ++ id ;
zone_params [ i ] [ z_min_x ] = MAX_Y - 300.00;
zone_params [ i ] [ z_min_y ] = MAX_X - 300.00;
zone_params [ i ] [ z_max_x ] = MAX_Y;
zone_params [ i ] [ z_max_y ] = MAX_X, MAX_Y -= 300.00 ;
zone_params [ i ] [ L_id_zone ] = GangZoneCreate ( zone_params [ i ] [ z_min_x ], zone_params [ i ] [ z_min_y ],
zone_params [ i ] [ z_max_x ] , zone_params [ i ] [ z_max_y ] ) ;
}
print ("gang Zone Load") ; //I do not see this in the server console
return 1 ;
}