New Menu Disable a Option
PHP Code:
im using /d to show the disabled colour. but i want to make that option not able to be pressed. so when i press 1 it wont work. and the menu will be still there. |
Re: New Menu Disable a Option
Moved to Scripting Help because you are actually making it yourself.
You should use a callback to handle situations like this. Here's an example: https://forums.alliedmods.net/showpo...0&postcount=95 |
Re: New Menu Disable a Option
Quote:
|
Re: New Menu Disable a Option
Show your code that you said doesn't work.
|
Re: New Menu Disable a Option
PHP Code:
|
Re: New Menu Disable a Option
Where is the function for the callback?
|
Re: New Menu Disable a Option
Quote:
PHP Code:
|
Re: New Menu Disable a Option
Quote:
|
Re: New Menu Disable a Option
:rtfm: Stop copying and pasting!
Read the code before you use it. If you even read the code from that post, you would see it was a menu for alive players, so the option is disabled if you are dead and enabled if you are alive. With that said, try to figure out how the callback function works. |
Re: New Menu Disable a Option
When using the callback (in the link that Exolent gave you) you won't need to do the \d at all. The menu functions do that for you.
Quote:
|
| All times are GMT -4. The time now is 10:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.