Native Boolean?
I don't know how to call this, but I hope you will understand. Is it possible to set a bool so it will work on 2 plugins or even more?
I have a bhop plugin and I want to set a bool to true, when player has auto bhop. I have another plugin (a menu) where, he can choose to turn bhop on/off. And I want to make the menu kinda cool, when you turn the bhop on it will show "Turn bhop OFF" and opposite. |
Re: Native Boolean?
PHP Code:
Example for other plugins: native bool:get_bReturn; if( get_bReturn ) //code |
Re: Native Boolean?
You don't need native for this, use rather a xvar, there is a tutorial.
Or you can use a cvar, kindly the same. |
Re: Native Boolean?
Yes,but
Quote:
|
Re: Native Boolean?
Get a cvar pointer -> get_cvar_pointer("cvar");
LOL |
Re: Native Boolean?
Means that no system is better than the other, so, using xvar doesn't require to build the native, only need to declare a public variable.
|
Re: Native Boolean?
Quote:
PHP Code:
|
Re: Native Boolean?
Quote:
|
Re: Native Boolean?
How will I set a xvar for a separate player? All I see is set a boolean true or false, that doesn't solve my problem.
|
Re: Native Boolean?
|
All times are GMT -4. The time now is 11:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.