Raised This Month: $ Target: $400
 0% 

Different Menu's for different maps


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Gasior
Member
Join Date: Mar 2012
Old 08-21-2013 , 14:47   Re: Different Menu's for different maps
Reply With Quote #5

I don't get it .

It's kind of scripting help so I'll just go for it and ask questions:
PHP Code:
new const mapnames_usecontaini[maxmaps] = 

    
0
    
1
    


Why 0 1 1?

PHP Code:
public yourfunc() 

    switch(
ismap
    { 
        case 
0
        { 
            
// map is 1hp_he 
        

        case 
1
        { 
            
// mapname contains awp_ 
        

        case 
2
        { 
            
// mapname contains ka_ 
        

    } 

Is it a place for menu?? And should it look like that:

PHP Code:
public DisplayMenu(id)() 

    new 
Menu menu_create("Fun Shop""Menu_Handler")
    if(
wylosowal[id]) {
        
ColorChat(id,RED,"^3 [FUNSHOP] ^4 Juz uzyles menu w tej rundzie."0
        
menu_destroy(Menu)
    }
    else {
    
menu_additem(Menu"Gravity = 2000$ (VIP 1400$)""1"0)
        switch(
ismap
        { 
                case 
0
            { 
            
menu_additem(Menu"Option1""1"0)
            } 
            case 
1
            { 
            
menu_additem(Menu"Option1 ""1"0)
            } 
            case 
2
            { 
             
menu_additem(Menu"Option1 ""1"0)
            } 
        } 

To be honest I am so confused.
Gasior 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