AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   about client_command (https://forums.alliedmods.net/showthread.php?t=216306)

vansichan 05-19-2013 09:44

about client_command
 
PHP Code:

public client_command(id)
{
    new 
arg[32];
    
read_argv(0arg31);
    if (
equali(arg"fps_max"))
    {
        
server_print("test.");
    }


its cant work...
plz help me..thx.

YamiKaitou 05-19-2013 11:54

Re: about client_command
 
cvars are not commands, they do not get sent to the server when the client changes them

simanovich 05-19-2013 12:01

Re: about client_command
 
Use query_client_cvar

vansichan 05-19-2013 21:59

Re: about client_command
 
Quote:

Originally Posted by simanovich (Post 1954540)
Use query_client_cvar

thank you, but its not my want, i want to callback fps_max command. nots query..

YamiKaitou 05-19-2013 22:16

Re: about client_command
 
You will never know when the client has changed any CVAR as it never gets sent to the server. All you can do is query the Client CVAR.

vansichan 05-21-2013 11:32

Re: about client_command
 
Quote:

Originally Posted by YamiKaitou (Post 1954857)
You will never know when the client has changed any CVAR as it never gets sent to the server. All you can do is query the Client CVAR.

oh, thank u...


All times are GMT -4. The time now is 16:26.

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