Raised This Month: $ Target: $400
 0% 

Different Menu's for different maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-21-2013 , 16:57   Re: Different Menu's for different maps
Reply With Quote #7

Initialize all at plugin_init :

PHP Code:
public plugin_init()
{
    new 
map[32], callback[32];
    
get_mapname(mapcharsmax(map));
    if(
equali(map"1hp_he") || containi(map"ka_") != -)
    {
        
callback "DisplayMenu1";
    }
    else if(
containi(map"awp_") != -|| containi(map"awesome_") != -1) {
        
callback "DisplayMenu2";
    }
    else if(
containi(map"knives") != -1) {    
        
callback "DisplayMenu3";
    }
    else
    {
        
callback "DisplayMenu";
    }

    
register_clcmd("say /funshop"callback);
    
register_clcmd("say_team /funshop"callback);
    
register_clcmd("say /fun"callback);
    
register_clcmd("say_team /fun"callback);
    
register_clcmd("say /shop"callback);
    
register_clcmd("say_team /shop"callback);
}

public 
DisplayMenu1(id)
{
}

// etc ... 
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 15:59.


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