two different cvar values for two different players
Hello...
I have default cvar of value 4 Code:
farba = register_cvar("farbahud", "4")One player would have Code:
set_pcvar_num( farba , 3 );Code:
set_pcvar_num( farba , 2 );That means I need to make those cvars individual to all players, it would not be just server cvar, but every player will have his own individual value of cvar. Thanks |
Re: two different cvar values for two different players
It's not possible with cvars. You'll have to re-think what you are doing.
|
Re: two different cvar values for two different players
Just use an array in your plugin, why do you need it to be a cvar?
|
Re: two different cvar values for two different players
Okay, I have no experience with that. Could you help me a little bit?
|
Re: two different cvar values for two different players
Every player is assigned an id (the slot on the server that they are placed in upon connection). You can use this throughout your plugin to identify that player.
Here's a very basic example. I recommend reading some tutorials and reviewing existing plugins to learn how to script. You are going to have many questions and this forum is very active so any question you have has likely been asked dozens of times. PHP Code:
|
| All times are GMT -4. The time now is 07:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.