AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   [CS 1.6] CT and T Menu Help (https://forums.alliedmods.net/showthread.php?t=141344)

Aluta 10-22-2010 22:32

[CS 1.6] CT and T Menu Help
 
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

fysiks 10-22-2010 22:46

Re: [CS 1.6] CT and T Menu Help
 
I don't understand what you are asking. Explain exactly what you are trying to do.

Aluta 10-22-2010 23:01

Re: [CS 1.6] CT and T Menu Help
 
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.

fysiks 10-22-2010 23:09

Re: [CS 1.6] CT and T Menu Help
 
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)
        }
    }




All times are GMT -4. The time now is 10:25.

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