AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Checking the commands beside player (https://forums.alliedmods.net/showthread.php?t=88829)

F4RR3LL 03-29-2009 14:00

Checking the commands beside player
 
hello all.

i it is necessary:

it is necessary to plugin checked importance of the command! If cl_xxxx is 1, that is executed my code. if 0, that nothing do not occur.

thanks.

anakin_cstrike 03-29-2009 14:41

Re: Checking the commands beside player
 
Not possible i think, and i might be right ;/

SnoW 03-29-2009 14:54

Re: Checking the commands beside player
 
I don't still get what you mean. Are you talking about doing something depending on some cvar or what?

anakin_cstrike 03-29-2009 15:14

Re: Checking the commands beside player
 
If i have
Code:

cl_dynamiccrosshair 0
and I write to console
Code:

cl_dynamiccrosshair 0
to print for instance
Quote:

That command has already that value

ot_207 03-29-2009 15:16

Re: Checking the commands beside player
 
Quote:

Originally Posted by anakin_cstrike (Post 792542)
If i have
Code:

cl_dynamiccrosshair 0
and I write to console
Code:

cl_dynamiccrosshair 0
to print for instance

For client cvars it is recommended to use query_client_cvar()

F4RR3LL 03-29-2009 15:20

Re: Checking the commands beside player
 
thanks!


All times are GMT -4. The time now is 08:57.

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