how to do off/on in the menu
hello everyone as do in 5 point of off/on grenade sound, that would when clicked on point the on/off (and that would be written there on or off sound)
Code:
menu_additem(g_iMenu, "\r[\ysound grenade\r]", "5");Code:
#include <amxmodx> |
Re: how to do off/on in the menu
Create a boolean which holds MAX_PLAYER + 1 cells. After that, make the menu key to remember that selection by setting the boolean true or false. After all, you need to make your menu faster and make it holding some strings, the entire MENU needs to be made using a temporary text, example:
Code:
Code:
|
Re: how to do off/on in the menu
I didn't understand anything
|
Re: how to do off/on in the menu
Quote:
at first glance to understand what you mean but in practice things are different I ask that please if you can guide us to do this so that we can understand once and for all, be recorded for us how to do it and never need third-party help |
Re: how to do off/on in the menu
Quote:
Code:
new bool:g_bDisabled[MAX_PLAYERS + 1]; |
Re: how to do off/on in the menu
Read all COMMENTS.
Code:
|
Re: how to do off/on in the menu
1) the Off label does not change to On
2) you can still do that when you click on/off in this item, the menu itself does not close when you click |
Re: how to do off/on in the menu
I said: USE THIS ONLY YOU DON'T HAVE A NATIVE TO CHECK IF THE SOUNDS ARE ON OR OFF (Not Recommanded).
|
Re: how to do off/on in the menu
Quote:
meaning from what you did, if I could in my menu make the inscription Grenade sound Off and there and leave |
Re: how to do off/on in the menu
Quote:
in this case of your example is g_bDisabled being used as an on / off button and not to lock the menu choices? |
| All times are GMT -4. The time now is 13:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.