AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   New system menu help (https://forums.alliedmods.net/showthread.php?t=75202)

IneedHelp 08-01-2008 04:43

New system menu help
 
Hello, I'm making a menu with guns like the zombie plague but for separate, every player that type "x" appears the menu, but, when the player choose the primary weapon, how i do to send to the menu of secondary weapons? and then close the menu.

Example:
The primary guns menu appears, i choose ak47, and then, how i send the player to the secondary guns when he select some item on the primary guns menu???!

jim_yang 08-01-2008 04:53

Re: New system menu help
 
case 1...n:
choose a primary gun;
menu_display(id, secondary_menu, 0);

IneedHelp 08-01-2008 05:12

Re: New system menu help
 
You say something like this ?

PHP Code:

case 1:
{
          
fm_give_item(id, .....)
          
menu_display(idsecondary_menu0)


In other case, could you give me an example?

jim_yang 08-01-2008 05:33

Re: New system menu help
 
yes, something like that.
you could look into csdm_equip.sma for details

iHaxor.Stan 08-01-2008 08:12

Re: New system menu help
 
yah what he said just display the menu in all the cases so when they choose something, that new menu pops up


All times are GMT -4. The time now is 05:28.

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