Alternate
08-06-2005, 21:03
I can set a client CVAR and have it changed on beginning of each round or just on connect to server (Typicaly in clientActive). But of course you can just change it and it won't change back. There are certain values I want to remain restricted on our server.
I think the ideal way to keep a CVAR at a permament setting is to listen for a client command and then if the command is to change a CVAR in the list of protected CVARs then we use the revert command to put it back to the correct value??
Iused to code in C++ about 5yrs ago so i'm being kinda slow and the Source SDK is a little overwhelming for a nub like me
:roll:
Would anyone be able to give me any sample code to do the above? Once I have it sorted for one CVAR then I can do the rest no probs. It mustn't be base on any other plugin (i.e ma_exec), I'd like to hand write this myself have just the one plugin.
I think the ideal way to keep a CVAR at a permament setting is to listen for a client command and then if the command is to change a CVAR in the list of protected CVARs then we use the revert command to put it back to the correct value??
Iused to code in C++ about 5yrs ago so i'm being kinda slow and the Source SDK is a little overwhelming for a nub like me
:roll:
Would anyone be able to give me any sample code to do the above? Once I have it sorted for one CVAR then I can do the rest no probs. It mustn't be base on any other plugin (i.e ma_exec), I'd like to hand write this myself have just the one plugin.