Quote:
Originally Posted by karar
I think read argv command should be:
PHP Code:
read_argv(1,arg,31);
btw i put some client_print commands to debug e.g. i added (before if command):
PHP Code:
client_print(0,print_console,"Spec mode switched to = <%s>", mode)
and this command never showed up on console... then for testing i changed the register clccommand to:
PHP Code:
register_clcmd("say", "cmdBlock");
and now console was printing the debug line fine.. so say command is being captured fine but spec_mode command is not. Hope this helps you guys figring out a solution
|
I used zero on "read_argv" because zero means the command, according to the docs. As for "spec_mode" not registering. I think it's because it's a client-side command. If it's a CVar you can query a client-side cvar like so:
Code:
public GetSpecMode(id)
{
new Value = query_client_cvar(id,"spec_mode","cvar_spec_mode");
}
public cvar_spec_mode(id,const cvar[],const value[])
{
return str_to_num(value);
}
__________________