Multi jump menu
This plugin enables multi jump when you connect to the server..
What I need, is just make that function to the menu.. Like, you open the menu, you press 1, the jumps activates, you press again 1, the jumps disactivates.. PHP Code:
|
Re: Multi jump menu
You should be able to do this:
Code:
isEnabled[id] = !isEnabled[id] |
Re: Multi jump menu
Quote:
PHP Code:
|
Re: Multi jump menu
|
Re: Multi jump menu
I don't get it.. Anyone can do this?
|
Re: Multi jump menu
You want the enabled state to change when they select the menu options right? Therefore, you put the code that I have given you where it will get executed when the player chooses that option in the menu. You currently have it so that it will change every time you say /jump.
|
Re: Multi jump menu
Quote:
Because client_PreThink/client_PostThink auto enable it.. |
Re: Multi jump menu
Quote:
Note: You shouldn't be doing an alive check in the menu part, it just doesn't make any sense. After you get the menu part working correctly, you can add the isEnabled[id] to the multi-jump code. Which you can do by changing: Code:
if(!is_user_alive(id)) return PLUGIN_CONTINUECode:
if(!is_user_alive(id) && !isEnabled[id]) return PLUGIN_CONTINUE |
Re: Multi jump menu
damn it..
|
Re: Multi jump menu
Quote:
|
| All times are GMT -4. The time now is 10:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.