Raised This Month: $ Target: $400
 0% 

[Help]Menu problem


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
2reason2kill
Senior Member
Join Date: Feb 2011
Old 06-19-2011 , 18:07   [Help]Menu problem
Reply With Quote #1

I dont know why but the menu for ct works but for the ts it dosent...


Heres the code

PHP Code:
    register_clcmd("say /shop","showmenu");
    
register_concmd("say_team /shop","Shop");
    
register_concmd("say /Help","Showhelp");
    
    
    
    
    
    
}


public 
showmenu(id)
{
    if(
is_user_alive (id) )
    {
    new 
Item[64];
    
    if(
cs_get_user_team(id) == CS_TEAM_CT)
    {
        new 
ShopCT menu_create("\y [\rHumen Shop\y]\y:","CsShop");
        
formatex(Itemcharsmax(Item), "\wSilver Light \y[\r %d $\y]"get_pcvar_num(silver_lighet_cost));
        
menu_additem(ShopCT,Item"1");
        
format(Item,sizeof(Item)-1"\wShotty\y[\r %d $\y]"get_pcvar_num(Shotghun_cost));
        
menu_additem(ShopCT,Item"2");
        
format(Item,sizeof(Item)-1"\wnightvision\y[\r %d $\y]"get_pcvar_num(nightvison_cost));
        
menu_additem(ShopCT,Item"3");
        
format(Item,sizeof(Item)-1"\wGreNade Packet\y[\r %d $\y]"get_pcvar_num(grenadepacket_cost));
        
menu_additem(ShopCT,Item"4");
        
format(Item,sizeof(Item)-1"\wMachinGun Guy!\y[\r %d $\y]"get_pcvar_num(m249_cost));
        
menu_additem(ShopCT,Item"5");
        
menu_setprop(ShopCTMPROP_PERPAGE0);
        
menu_display(idShopCT)
    }
    }
    else
    {
        if(
is_user_alive(id) )
    {
        new 
Item [100];
        
        if(
cs_get_user_team(id) == CS_TEAM_T)
        {    
            new 
ShopT menu_create("\y [\rVampire Shop\y]\y:","vampireshop");
            
formatex(Itemcharsmax(Item), "\wAnti Deagle\y[\r %s $\y]"get_pcvar_num(anti_deagle_cost));
            
menu_additem(ShopT,Item"1");
            
formatex(Itemcharsmax(Item), "\wRatio Shield!\y[\r %s $\y]"get_pcvar_num(ratio_shield_cost));
            
menu_additem(ShopT,Item"2");
            
formatex(Itemcharsmax(Item), "\wChamelon\y[\r %s $\y]"get_pcvar_num(spy_cost));
            
menu_additem(ShopT,Item"3");
            
menu_setprop(ShopTMPROP_PERPAGE,0);
            
menu_display(idShopT)
        }
    }
}

2reason2kill 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 23:26.


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