Sorry I didn't explain it very well, no fraudulent intentions mate.
Let's say I open a contest blue team vs red team and in 10 days I announce the winning team.
Everyone can choose(and change later) a team and every kill gets +1 to the team you cheer for (doesn't matter if you allies or axis), so you set yourself a custom cvar team_name "red" or "blue", but the server has to be able to read this cvar in some way from client.
For now i have done different working approach but i don't like them very much:
- set the team you cheer for in your name; every kill read get_userinfo( "name" ); then parse if there is team name inside and give +1;
- after connect write the team you cheer for in chat with some flag to make parsing easy, then associate team cheer with GetEntityNumber(); and track kills by that entity number, but you still need to parse every chat message.
I wanted to do something like client add cvar team_name "color" in his autoexec.cfg so is set at game launch and can change it when he wants.
In older posts it was only written that it can be done is some way but not how, that's why I'm asking.
There isn't some neutered function where I can read only that cvar without leaking player cd-keys?
Or do you think I can execute it without a cvar but still make it already available on next connection?