Raised This Month: $ Target: $400
 0% 

optimization for equali


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
DWIGHTpN
Senior Member
Join Date: Jan 2013
Location: Romania.
Old 10-25-2013 , 12:25   Re: optimization for equali
Reply With Quote #6

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.
DWIGHTpN is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode