Menu Command Scripting
Okay what I need help is int getting a same command to work in both teams but to open different menus.
register_clcmd( "say /buy", "shopCT"); register_clcmd( "say /buy", "shopT"); I have this to commands register and plugin compiles. But for some reason the command only works for CT and not T. How would i set it up so the command works for both teams? |
Re: Menu Command Scripting
register it to 1 function & build/show the menu depending on the team.
|
Re: Menu Command Scripting
Hmm do you think you can please give me an example of what you mean register it to one fuction?
|
Re: Menu Command Scripting
PHP Code:
|
Re: Menu Command Scripting
EDIT: Alright Thanks it Worked =)
|
Re: Menu Command Scripting
Quote:
|
Re: Menu Command Scripting
PHP Code:
|
Re: Menu Command Scripting
Thanks everybody. One more question now. How would I set it so when they buy something they get it the next round and not the current round already started. I want all affects to happen on next round.
Also another question on the menu, what part of it do I need to remove so players don't get the ZERO key that lets them exit the menu. I want them to have to get something if they open it. PHP Code:
|
Re: Menu Command Scripting
1. You would need to store their selection in a variable and use it to create the action on the new round.
2. MEXIT_ALL :arrow: MEXIT_NEVER |
Re: Menu Command Scripting
Quote:
|
| All times are GMT -4. The time now is 03:25. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.