Menu Option Turn On Off
I Need One Option Key Like I Already Made (2) For Activate And The Same Key To Deactivate The Function Like Godmode If I Press 2 It Turns On And If I Press 2 Again It Turns Off How I Can Make It With Speed?!?!? I Made A New Plugin To Make It Short And Easy to Understand (debug)
The Code PHP Code:
something to trigger » i used get_user_godmode(id); triggeroption » i used ghost |
Re: Menu Option Turn On Off
And what exactly do you think speed will contain after this?
Code:
new speed = set_user_maxspeed(id,320.0);Have you tried get_user_maxspeed() and then checking that value accordingly? |
Re: Menu Option Turn On Off
It's simple, use a global boolean on menu, true = do something, false = do other thing.
|
Re: Menu Option Turn On Off
Quote:
I Need To Click 2 And Activate And When I Press 2 Again Deactivate. I Made It But Only Works If You Change That Keywords: something to trigger » i used get_user_godmode(id); triggeroption » i used ghost PHP Code:
|
Re: Menu Option Turn On Off
Here's an example. Take a closer look.
Quote:
|
Re: Menu Option Turn On Off
Quote:
: error 021: symbol already defined: "register_clcmd" if(is_user_alive(id)) continue; : error 024: "break" or "continue" is out of context |
Re: Menu Option Turn On Off
Quote:
|
Re: Menu Option Turn On Off
Quote:
PHP Code:
|
Re: Menu Option Turn On Off
Quote:
|
| All times are GMT -4. The time now is 04:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.