AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   blocking some CVAR (https://forums.alliedmods.net/showthread.php?t=163761)

gamer99 08-03-2011 02:05

blocking some CVAR
 
Hi All ,

I was just thinking ... can we register a CVAR ( e.g. developer / cl_pitchspeed ) as a client_command and then whenever he is modifying / changing the value will set to to default again ?


Don't tell me slowhacking is not allowed here ... I am just asking can we do that ?

Kreation 08-03-2011 02:17

Re: blocking some CVAR
 
Look at CVAR Checker.

gamer99 08-03-2011 02:20

Re: blocking some CVAR
 
Quote:

Originally Posted by Kreation (Post 1524638)
Look at CVAR Checker.

i checked .... there are many scripts which changes values of some cvar when you are executing them and after your work is done it again put it to default value ... so with CVAR checker you can't detect those

fysiks 08-03-2011 13:18

Re: blocking some CVAR
 
Quote:

Originally Posted by gamer99 (Post 1524632)
can we register a CVAR ( e.g. developer / cl_pitchspeed )

That would just make a server cvar of the same name as a client cvar. It wouldn't be related to the client cvar in any way, shape, or form.

gamer99 08-03-2011 13:44

Re: blocking some CVAR
 
Quote:

Originally Posted by fysiks (Post 1525004)
That would just make a server cvar of the same name as a client cvar. It wouldn't be related to the client cvar in any way, shape, or form.

but can we detect by this when the client is using that CVAR ? if using it put it default value ?

abdul-rehman 08-03-2011 13:57

Re: blocking some CVAR
 
You can use Cvar Utilities to achieve what you want.

fysiks 08-03-2011 13:58

Re: blocking some CVAR
 
Quote:

Originally Posted by gamer99 (Post 1525023)
but can we detect by this when the client is using that CVAR ? if using it put it default value ?

Maybe you skipped this part:

Quote:

Originally Posted by fysiks (Post 1525004)
It wouldn't be related to the client cvar in any way, shape, or form.



All times are GMT -4. The time now is 03:23.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.