AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   query_client_cvar is blocked (https://forums.alliedmods.net/showthread.php?t=102407)

senecas 09-02-2009 03:40

query_client_cvar is blocked
 
Sombody check thiis function..

query_client_cvar()

I think this query doesn't work now.

Server cannot recive client query
or
Client ignore this query.

addicted2sex 09-02-2009 04:10

Re: query_client_cvar is blocked
 
non-steam ?!

Alucard^ 09-02-2009 06:17

Re: query_client_cvar is blocked
 
addicted2sex asked if you have non-steam... becouse that native doesn't work in non-steam version.

senecas 09-02-2009 18:44

Re: query_client_cvar is blocked
 
NOT NON-STEAM

Do this in your server by yourself.
and
Tell me if it works.

Alucard^ 09-03-2009 00:01

Re: query_client_cvar is blocked
 
What you mean with "do this", what is "this"?

the query_client_cvar() work perfect in steam... maybe your code have some mistakes.

senecas 09-03-2009 19:20

Re: query_client_cvar is blocked
 
it was not my code.

Check this plugins

Jumpstats
http://forums.alliedmods.net/showthread.php?t=87906

Rate Customizer
http://forums.alliedmods.net/showthread.php?t=101174

That query doesn't work.

Bugsy 09-03-2009 20:16

Re: query_client_cvar is blocked
 
Which cvar are you trying to query?

senecas 09-03-2009 20:40

Re: query_client_cvar is blocked
 
maybe you know if you see that plugin's code.

developer
cl_***speed
fps_max
cl_cmdrate

That Client's Cvars can be executed by clinet_cmd()
But query_client_cvar() function doesn't send(or recieve) Client Query.

here is simple code.

#include <amxmodx>

public plugin_init()
{
register_plugin("Query Test", "0.1", "test")
register_clcmd("test", "clcmd_test")
}

public clcmd_test(Client)
if (!is_user_bot(Client)) set_task(2.0, "CheckPlayerRates", Client)

public CheckPlayerRates(Client)
{
query_client_cvar(Client, "cl_cmdrate", "CvarResult")
}

public CvarResult(Client, const Cvar[], const Value[])
{
new fValue = str_to_num(Value)

client_print(0, print_console, "We Can Use query(Client cl_cmdrate= %d", fValue)
return PLUGIN_HANDLED;
}

If you can see "We Can Use Query" Message, It works. but....not

Bugsy 09-03-2009 20:56

Re: query_client_cvar is blocked
 
Code
PHP Code:

#include <amxmodx>

public plugin_init() 
{
    
register_plugin"query cvar test" "1.0" "bugsy" );
    
register_clcmd"say test" "cmdTest" );
}

public 
cmdTestid )
    
query_client_cvarid "cl_cmdrate" "HookFunc" );

public 
HookFuncid , const szCVar[] , const szValue[] , const param[] )
    
client_printprint_chat "id=%d cvar=%s value=%s" id szCVar szValue ); 

Result
Code:

id=1 cvar=cl_cmdrate value=30
Also tested using fps_max
Code:

id=1 cvar=fps_max value=72.0

senecas 09-04-2009 02:22

Re: query_client_cvar is blocked
 
Server is Linux (version : 48/1.1.2.6/Stdio 4617 secure (10) )
and absolutly not non-steam

Meta list
description stat pend file vers src load unlod
[ 1] AMX Mod X RUN - amxmodx_mm_i386. v1.8.1.3 ini Start ANY

and Plugin list
name version author file status
[ 1] Admin Base 1.8.1.3746 AMXX Dev Team admin.amxx running
[ 2] Admin Commands 1.8.1.3746 AMXX Dev Team admincmd.amxx running
[ 3] Menus Front-End 1.8.1.3746 AMXX Dev Team menufront.amxx running
[ 4] Commands Menu 1.8.1.3746 AMXX Dev Team cmdmenu.amxx running
[ 5] Players Menu 1.8.1.3746 AMXX Dev Team plmenu.amxx running
[ 6] Maps Menu 1.8.1.3746 AMXX Dev Team mapsmenu.amxx running
[ 7] Plugin Menu 1.8.1.3746 AMXX Dev Team pluginmenu.amxx running
[ 8] Admin Chat 1.8.1.3746 AMXX Dev Team adminchat.amxx running
[ 9] Anti Flood 1.8.1.3746 AMXX Dev Team antiflood.amxx running
[ 10] Admin Votes 1.8.1.3746 AMXX Dev Team adminvote.amxx running
[ 11] NextMap 1.8.1.3746 AMXX Dev Team nextmap.amxx running
[ 12] TimeLeft 1.8.1.3746 AMXX Dev Team timeleft.amxx running
[ 13] Pause Plugins 1.8.1.3746 AMXX Dev Team pausecfg.amxx running
[ 14] Stats Configuration 1.8.1.3746 AMXX Dev Team statscfg.amxx running
[ 15] query cvar test 1.0 bugsy qtest.amxx running

say test => no response.
hum...
it worked 1 or 2 weeks ago i think. (my jump server had enforced above CVARS)
but now it doesn't work with me.
What is wrong with me ? huh???
It has something to do with steam client updating ?


All times are GMT -4. The time now is 15:11.

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