task going for map change.
This code will check nice if map is big and isn't _2x2 ?
Quote:
Originally Posted by Debesėlis
if now is big map ( de_ ) and isn't de_dust2_2x2 then use set_task ...
PHP Code:
for ( new i; i < sizeof bigmaps; i++ ) { for ( new i; i < sizeof smallmaps; i++ ) if ( containi( smallmaps[ i ], "_2x2") != -1 ) return; set_task( 10.0, "InfoMapSmall" ); }
|
do i need to us break; ?
Quote:
Originally Posted by DWIGHTpN
Code:
if( containi(maps[i], "_2x2") != -1 ) {
// do..
break;
|