Raised This Month: $ Target: $400
 0% 

[Help] Custom Class Menu


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
kketan77
Member
Join Date: Apr 2012
Location: India
Old 05-10-2012 , 12:56   Re: [Help] Custom Class Menu
Reply With Quote #5

Well,

Following code directly choose team to random.

If we could set team here it will be good.

How could i make it as given in first post?

PHP Code:
public menu_handler(idmenuitem
    {
    new 
team get_user_team(id)
    if (
item == MENU_EXIT) {
        
menu_destroy(menu)
        return 
PLUGIN_HANDLED
    
}
    
    new 
data[6], iName[64]
    new 
accesscallback
    menu_item_getinfo
(menuitemaccessdata,5iName63callback)
    new 
key str_to_num(data)
    switch(
key)
    {
        case 
1:
        {
            
engclient_cmd(id"jointeam""1")
            
engclient_cmd(id"menuselect""5")
            
ct(id)
        }
        case 
2:
        {
            
engclient_cmd(id"jointeam""2")
            
engclient_cmd(id"menuselect","5")
            
tteam(id)
        }
        
        case 
5:
        {
            
menu_handler(idmenurandom_num(01))
        }
        case 
6:
        {
            
engclient_cmd(id"jointeam""6")
        }        
    }
    
    
show_menu(id0" "0)
    return 
PLUGIN_HANDLED

I want that team choose in middle of that!

"random" is not model, "random" is type of selection from boy class or girl class.
Code:
        case 3:
        {
            cs_reset_user_model(id)
            cs_set_user_model(id, "Ramdom")
        }
__________________
♚ || -=[ḰḝṮẫṊ]=- || ᕙ(`▽´)ᕗ || (⊙.⊙(☉_☉)⊙.⊙) || ⁀⊙﹏☉⁀

Last edited by kketan77; 05-10-2012 at 12:58.
kketan77 is offline
Send a message via Yahoo to kketan77
 



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 00:24.


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