cvar changing help...
im very new to this... i was wondering what the code would be for me to make an admin with an access of ADMIN_LEVEL_A change the cvar ping_max
and is this code right to make a new cvar? Code:
|
Code:
That Should Be right Just change the sv_cvar into yours cause ADMIN_LEVEL_A is the Level of Admin you must have :D |
ok, and i would replace the '1' with the default i want it at right?
and what would the code be for me to make an admin with an access of ADMIN_LEVEL_A change the cvar ping_max? any extra code? or just that? EDIT: and would i have to make this line even if i register the new cvar: Code:
|
yes
Code:
Tell me if you get any errors I am pretty sure though :D |
Quote:
|
Dizzy, that is incorrect.
The third parameter is the cvar flags, not the access level. You would have to register a console command for admins with ADMIN_LEVEL_A that uses cvar_set_int or something to set the cvar. Keep the cvar registering line as you had it before. |
very cool, it worked.... thank you
|
isn't the cvar automatically ADMIN encrypted?
A regualar Client can't change cvars without rcon soo... with admin you can already use the cvar Just don't give your rcon away to anyone :D the cvar doesn't need to be ADMIN_LEVEL_A'ed just the concmd register_concmd("amx_maxping","maxping", ADMIN_LEVEL_A) Like that Or just have a Cvar :D |
ah, much easier... thank you
|
np glad that Avalance and I could help ya :D
|
| All times are GMT -4. The time now is 13:58. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.