Raised This Month: $ Target: $400
 0% 

about client_command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
vansichan
Junior Member
Join Date: Jan 2013
Old 05-19-2013 , 09:44   about client_command
Reply With Quote #1

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.
vansichan is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-19-2013 , 11:54   Re: about client_command
Reply With Quote #2

cvars are not commands, they do not get sent to the server when the client changes them
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 05-19-2013 , 12:01   Re: about client_command
Reply With Quote #3

Use query_client_cvar
__________________
simanovich is offline
vansichan
Junior Member
Join Date: Jan 2013
Old 05-19-2013 , 21:59   Re: about client_command
Reply With Quote #4

Quote:
Originally Posted by simanovich View Post
Use query_client_cvar
thank you, but its not my want, i want to callback fps_max command. nots query..
vansichan is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 05-19-2013 , 22:16   Re: about client_command
Reply With Quote #5

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.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
vansichan
Junior Member
Join Date: Jan 2013
Old 05-21-2013 , 11:32   Re: about client_command
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
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...
vansichan is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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