Raised This Month: $ Target: $400
 0% 

i cant close my menu oO


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 08-16-2009 , 14:16   i cant close my menu oO
Reply With Quote #1

PHP Code:
register_menucmd(register_menuid("welcome_menu"),1023,"welcome_menu_handler");

public 
show_welcome(id)
{
    if(
g_welcomed[id]) return;
    new 
menuidkeys;
    
get_user_menu(id,menuid,keys);

    if(
menuid 0)
    {
        
set_task(3.0,"show_welcome",id);
        return;
    }
    new 
menuText[512];
    new 
len formatex(menuText,511,"\rRally Mod 1.3 \dby \rOne^n",id );
    
len += formatex(menuText[len],511-len,"\w----------------------------------------^n",id );
    new 
special;
    
len += formatex(menuText[len],511-len,"\w----------------------------------------^n",id );
    
special 1;
    
len += formatex(menuText[len],511-len,"\wSay \r/menu \wto entere the \rMain-Menu^n",id );
    
special 1;
    
len += formatex(menuText[len],511-len,"\wSay \r/help \wif you need help^n",id );
    
special 1;
    
    if(
speciallen += formatex(menuText[len],511-len,"\w----------------------------------------^n",id );
    
len += formatex(menuText[len],511-len,"\wVisits us @ www.hardstyle-esports.de^n",id);
    
len += formatex(menuText[len],511-len,"\wOur wiki @ www.hardstyle-esports.de/wiki/^n");
    
len += formatex(menuText[len],511-len,"Contact @ [email protected]^n",id);

    
show_menu(id,1023,menuText,-1,"welcome_menu");

public 
welcome_menu_handler(id,key)
{
    
// just save g_welcomed status and let menu close
    
g_welcomed[id] = 1;
    return 
PLUGIN_HANDLED;
}


public 
Event_ResetHUDid 
{
    
gPlayerAlive[id] = is_user_aliveid );
    
HudApplyCVars()
    new 
iHideFlags GetHudHideFlags()
    if(
iHideFlags)
    {
        
message_begin(MSG_ONEg_msgHideWeapon_id)
        
write_byte(iHideFlags)
        
message_end()
    }    
    if(
firstspawn[id])
    {
        
show_welcome(id);
    }
    
firstspawn[id] = false;

__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
 



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 14:58.


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