Raised This Month: $ Target: $400
 0% 

[HELP]How to do check smth after map change


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 03-05-2009 , 14:32   Re: [HELP]How to do check smth after map change
Reply With Quote #6

Code:
new g_NonVIPMaps[][] = {         "35hp",         "ka_",         "awp_",         "fy_",         "most_" };   new bool:g_VIP = true; // VIP is currently allowed   public plugin_init() // Mapchange {         new MapName[64];         get_mapname(MapName, 63);           for (new Map = 0; Map < sizeof(g_NonVIPMaps); Map++)                 if (containi(MapName, g_NonVIPMaps[Map]) != -1)                         g_VIP = false; // Disable VIP           if (g_VIP) // If VIP is still allowed after checking mapname         {                 // VIP stuff         } }
__________________

Last edited by hleV; 03-05-2009 at 14:35.
hleV 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 17:05.


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