How can I turn on and off a function on the best way?
How can I turn on and off a function on the best way?
For example those noclip and godmode toggles on block makers. How can I on the best way make a toggle? Where I can in a menu turn on and off a function. Thanks |
Re: How can I turn on and off a function on the best way?
you can do it with something like this:
PHP Code:
|
Re: How can I turn on and off a function on the best way?
mottzi, you can change g_Noclip to get_user_noclip ;-)
|
Re: How can I turn on and off a function on the best way?
Quote:
|
Re: How can I turn on and off a function on the best way?
Quote:
PHP Code:
|
Re: How can I turn on and off a function on the best way?
Guys... We are talking about the way to do it. It may not be a single native, but whole algorhytm of functions. I think he was asking how to return the current value and detect it's reversing.
|
Re: How can I turn on and off a function on the best way?
As Flicker correctly mentioned, I was only giving an exapmle of how you'd do something like this - of course you don't need to store the state in a variable when premade functions are availiable.
Flicker, you can also use the "!"-Operator with integer-values. |
| All times are GMT -4. The time now is 13:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.