Raised This Month: $ Target: $400
 0% 

query_client_cvar is blocked


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
senecas
Senior Member
Join Date: Jun 2006
Old 09-02-2009 , 03:40   query_client_cvar is blocked
Reply With Quote #1

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.
senecas is offline
addicted2sex
Senior Member
Join Date: May 2009
Location: localhost
Old 09-02-2009 , 04:10   Re: query_client_cvar is blocked
Reply With Quote #2

non-steam ?!
addicted2sex is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-02-2009 , 06:17   Re: query_client_cvar is blocked
Reply With Quote #3

addicted2sex asked if you have non-steam... becouse that native doesn't work in non-steam version.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
senecas
Senior Member
Join Date: Jun 2006
Old 09-02-2009 , 18:44   Re: query_client_cvar is blocked
Reply With Quote #4

NOT NON-STEAM

Do this in your server by yourself.
and
Tell me if it works.
senecas is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 09-03-2009 , 00:01   Re: query_client_cvar is blocked
Reply With Quote #5

What you mean with "do this", what is "this"?

the query_client_cvar() work perfect in steam... maybe your code have some mistakes.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
senecas
Senior Member
Join Date: Jun 2006
Old 09-03-2009 , 19:20   Re: query_client_cvar is blocked
Reply With Quote #6

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.
senecas is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-03-2009 , 20:16   Re: query_client_cvar is blocked
Reply With Quote #7

Which cvar are you trying to query?
__________________
Bugsy is offline
senecas
Senior Member
Join Date: Jun 2006
Old 09-03-2009 , 20:40   Re: query_client_cvar is blocked
Reply With Quote #8

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

Last edited by senecas; 09-03-2009 at 20:50.
senecas is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 09-03-2009 , 20:56   Re: query_client_cvar is blocked
Reply With Quote #9

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
__________________

Last edited by Bugsy; 09-03-2009 at 21:00.
Bugsy is offline
senecas
Senior Member
Join Date: Jun 2006
Old 09-04-2009 , 02:22   Re: query_client_cvar is blocked
Reply With Quote #10

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 ?
senecas 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 15:11.


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