Using the plugin with variables
I am trying to change this plugin with variables individual for each player. So it doesn't have to use any cvars at all. I created a menu for it and now I need to check the variables. But as the original plugin is with enums, I don't have any idea how I can here check for example for the variable of the player:
PHP Code:
Here is the list of the variables and the whole plugin: PHP Code:
PHP Code:
|
Re: Using the plugin with variables
To make this per-player specific settings you only need one array with a dimension of 33 (each player would have their own g_bitHudFlags)
Something like this: PHP Code:
|
Re: Using the plugin with variables
But I want all of these functions seperetely activated/deactivated.
|
Re: Using the plugin with variables
Quote:
|
Re: Using the plugin with variables
You didn't understand what I am asking for, look I only need to check the variable, so it would be like this:
PHP Code:
|
Re: Using the plugin with variables
Ok . . . you're correct, I don't understand the quesiton. In fact, now, I have no clue what the question is, lol.
Though, I did honestly think that my first suggestion would provide a solution to your original intent (making the HUD settings per-player). |
Re: Using the plugin with variables
You were talking about this, only one variable:
PHP Code:
|
Re: Using the plugin with variables
Quote:
Was I correct in assuming that your overall goal is to make it so each individual player can choose which of the features are enabled or disabled? |
Re: Using the plugin with variables
Quote:
|
Re: Using the plugin with variables
Then use bitsums combined with a array like fysiks explained in his post.
You can set/unset/check them individually for each player: Code:
if(g_bitHudFlags[id] & HUD_HIDE_MONEY)Code:
g_bitHudFlags[id] |= HUD_HIDE_MONEY // hide money |
| All times are GMT -4. The time now is 23:27. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.