Raised This Month: $ Target: $400
 0% 

[CS 1.6] CT and T Menu Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Aluta
Junior Member
Join Date: Jul 2010
Old 10-22-2010 , 22:32   [CS 1.6] CT and T Menu Help
Reply With Quote #1

Hi Guys,

I need help to scipt a menu for CT`s and T`s.
Can someone help me out ;D
Im a Newbie, Sry =o

Here my script:

Code:
          ...................
    switch (Key)
    {
        case 1:
            if(cs_get_user_team(id) == CS_TEAM_T)
            {
                game_menu_ct(id)
            }
            else if(cs_get_user_team(id) == CS_TEAM_CT)
            }
                game_menu_t(id)
            }
        case 2: 
            .............................
I want a extra Menu for CT`s and T`s !!

Greez,
AluTa
Aluta is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-22-2010 , 22:46   Re: [CS 1.6] CT and T Menu Help
Reply With Quote #2

I don't understand what you are asking. Explain exactly what you are trying to do.
__________________
fysiks is offline
Aluta
Junior Member
Join Date: Jul 2010
Old 10-22-2010 , 23:01   Re: [CS 1.6] CT and T Menu Help
Reply With Quote #3

If a CT typ /menu in Chat then

Menu opens:

Team
Score
Settings

and if a T typ /menu, a other menu appears like

Menu opens:

Slap CT
Kill CT
Spray



I hope, you know now what I mean.
Aluta is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-22-2010 , 23:09   Re: [CS 1.6] CT and T Menu Help
Reply With Quote #4

Do something like this:

PHP Code:
register_clcmd("say /menu""cmdMenu")

// ...

public cmdMenu(id)
{
    switch( 
cs_get_user_team(id) )
    {
        case 
CS_TEAM_T:
        {
            
open_terrorist_menu(id)
        }
        case 
CS_TEAM_CT:
        {
            
open_counter_terrorist_menu(id)
        }
    }

__________________
fysiks is offline
Reply


Thread Tools
Display Modes

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 10:25.


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