If you want to see if the actual map on server is small or big, check it out..
Code:
new const smallmaps[][] = {
"aim_",
"fy_",
"35hp_",
"awp_",
"cs_max",
"de_dust2_3x3",
"cs_pf_dust",
"cs_pf_train",
"cs_deagle5",
"mini_dust2"
}
new const bigmaps[][] = {
"de_",
"cs_office",
"cs_italy"
}
new bool:IsSmallMap;
public plugin_init() {
new map_name[64];
get_mapname( map_name, charsmax( map_name ) );
for(new i;i<sizeof smallmaps;i++)
if( containi(map_name, smallmaps[i]) != -1 ) {
IsSmallMap= true;
break; // get out from for()
}
}
Quote:
|
task going for map change.
|
This isn't correct, if you change map, all plugins (including tasks) will restart.