Raised This Month: $ Target: $400
 0% 

Menus keep closing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
r4ndomz
Senior Member
Join Date: Jul 2009
Location: The Hood
Old 02-10-2010 , 16:11   Re: Menus keep closing
Reply With Quote #10

PHP Code:
public AwsomeMenu(id)
{
    new 
noclip get_user_noclip(id)
    new 
godmode get_user_godmode(id)
    new 
footsteps get_user_footsteps(id)

    
#if SM_ADMIN == 1
        
if( !( get_user_flags(id) & ADMIN_FLAG ) )
        {
            return
        }
    
#endif
    
if(cs_get_user_team(id) == CS_TEAM_SPECTATOR)
    {
        
// Didnt think it wouldnt give me errors
    
}
    else
    {
        
client_print(idprint_chat"You need to be in Spec to use this")
        return 
PLUGIN_CONTINUE
    
}

    new 
menu menu_create("\ySpec Menu by r4nDoMz""menu_handler");

    if(
noclip == 1)
    {
        
menu_additem(menu,"\wNoclip: \yON""1"0);
    }
    else
    {
        
menu_additem(menu,"\wNoclip: \yOFF""1"0);
    }

    if(
godmode == 1)
    {
        
menu_additem(menu,"\wGodmode: \yON""2"0);
    }
    else
    {
        
menu_additem(menu,"\wGodmode: \yOFF""2"0);
    }

    if(
footsteps == 1)
    {
        
menu_additem(menu,"\wSilent walk: \yON""3"0);
    }
    else
    {
        
menu_additem(menu,"\wSilent walk: \yOFF""3"0);
    }
    
menu_additem(menu,"\wRevive""4"0);
    
menu_additem(menu,"\wLow Gravity""5"0);
    
menu_additem(menu,"\wDefault Gravity""6"0);
    
menu_additem(menu,"\wNades...He/Flash/Smoke""7"0);
    
menu_additem(menu,"\wRoad Runner(Fast run)""8"0);
    
menu_additem(menu,"\wSpeed Boost""9"0);
    
menu_additem(menu,"\wThirdperson""10"0);
    
menu_additem(menu,"\wFirstperson""11"0);
    
menu_additem(menu,"\wSuperjump""12"0);


    
menu_setprop(menuMPROP_EXITMEXIT_ALL);

    
menu_display(idmenu0);

    return 
PLUGIN_CONTINUE

__________________
HideNSeek bug fixed here:http://forums.alliedmods.net/showpos...&postcount=951

PM me if you want a nice HideNSeek shop
NEED PLUGIN TESTERS PM ME
r4ndomz is offline
Send a message via Skype™ to r4ndomz
 



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 07:23.


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