Raised This Month: $ Target: $400
 0% 

Help with making a cvar checker!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sauron_pk
Junior Member
Join Date: Oct 2011
Old 10-07-2011 , 14:32   Help with making a cvar checker!
Reply With Quote #1

Hi guys, i'm making a cvar checker for using in a online tournament of Team Fortress Classic 1.6

The plugin seems work OK but only when using steam. Using non-steam i can't join in the server and get this(the 90% of people are using non steam)

Quote:
Last 32 messages parsed.
298 0874 AmmoX
298 0877 AmmoX
298 0880 AmmoX
298 0883 ValClass
298 0894 TeamNames
298 0943 AllowSpec
298 0945 Feign
298 0947 Detpack
298 0949 BuildSt
298 0952 RandomPC
298 0954 ServerName
298 1011 MOTD
298 1075 MOTD
298 1139 MOTD
298 1203 MOTD
298 1267 MOTD
298 1308 VGUIMenu
298 1311 TextMsg
298 1339 TeamScore
298 1350 TeamScore
298 1360 ReqState
299 0008 svc_time
299 0013 svc_choke
299 0014 svc_clientdata
299 0053 svc_packetentities
299 0008 svc_time
299 0013 svc_clientdata
299 0052 svc_packetentities
300 0008 svc_time
300 0013 svc_clientdata
300 0052 svc_packetentities
BAD: 8:svc_bad
Wrote erroneous message to buffer.dat
Host_Error
Any ideas?

The plugin is this:

Code:
#include <amxmodx>

public plugin_init()
    register_plugin("Check lowrecoil", "1.0", "PsychO")

public client_putinserver(id)
    set_task(0.1, "query_client", id, _, _, "b")

public client_disconnect(id)
    remove_task(id)

public query_client(id) {
    query_client_cvar(id, "cl_pitchspeed", "cvar_result_pitch")
    query_client_cvar(id, "cl_bob", "cvar_result_pitch")
    query_client_cvar(id, "cl_bobcycle", "cvar_result_pitch")
    query_client_cvar(id, "cl_bobup", "cvar_result_pitch")
    query_client_cvar(id, "ex_interp", "cvar_result_pitch")
    query_client_cvar(id, "cl_lw", "cvar_result_pitch")
}

public cvar_result_pitch(id, const cvar[], const value[]) 
{
    if ((!strcmp(cvar, "cl_pitchspeed", 1)) && (str_to_num(value) != 225))
        client_cmd(id, "cl_pitchspeed 225")
 
    if ((!strcmp(cvar, "cl_bob", 1)) && (str_to_num(value) != 0.01))
        client_cmd(id, "cl_bob 0.01")

    if ((!strcmp(cvar, "cl_bobcycle", 1)) && (str_to_num(value) != 0.8))
        client_cmd(id, "cl_bobcycle 0.8")

    if ((!strcmp(cvar, "cl_bobup", 1)) && (str_to_num(value) != 0.5))
        client_cmd(id, "cl_bobup 0.5")

    if ((!strcmp(cvar, "ex_interp", 1)) && (str_to_num(value) != 0.1))
        client_cmd(id, "ex_interp 0.1")

    if ((!strcmp(cvar, "cl_lw", 1)) && (str_to_num(value) != 1))
        client_cmd(id, "cl_lw 1")
}
I tried to used the CVAR Guard but on steam it doesn't block anything...So my idea is to use these 2 plugins at the same time. CVAR Guard blocks them on non steam and the another on Steam.

Thanks.
sauron_pk is offline
elchrissr
BANNED
Join Date: Sep 2011
Old 10-07-2011 , 14:49   Re: Help with making a cvar checker!
Reply With Quote #2

YU NO remove all ifs?
elchrissr is offline
Old 10-07-2011, 14:57
Evaldas.Grigas
This message has been deleted by Evaldas.Grigas.
lucas_7_94
Leche Loco
Join Date: Mar 2009
Location: Argentina
Old 10-07-2011 , 15:37   Re: Help with making a cvar checker!
Reply With Quote #3

2 things.

.- You're not the author for the plugin (http://forums.alliedmods.net/showthr...ry_client_cvar)

.- No Steam isnt allowed in this forum.
__________________
ATWWMH - MiniDuels
Madness is like gravity, just need a little push.
lucas_7_94 is offline
Send a message via Skype™ to lucas_7_94
Stereo
Veteran Member
Join Date: Dec 2010
Old 10-07-2011 , 16:46   Re: Help with making a cvar checker!
Reply With Quote #4

Slowhack isnt allowed in this forum
Stereo is offline
sauron_pk
Junior Member
Join Date: Oct 2011
Old 10-07-2011 , 21:43   Re: Help with making a cvar checker!
Reply With Quote #5

i'm making my own plugin using these for base

but these plugin doesn't work... can enter using non steam
sauron_pk is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 10-07-2011 , 22:01   Re: Help with making a cvar checker!
Reply With Quote #6

query_client_cvar does not work on non-steam servers.

Once again, slowhacking is not allowed. I suggest you remove the code.
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
sauron_pk
Junior Member
Join Date: Oct 2011
Old 10-08-2011 , 00:15   Re: Help with making a cvar checker!
Reply With Quote #7

what is slow hacking?

anyone knows a good cvars blocker?

thanks again



i only want to block these cvars

Quote:
cl lc 1
cl lw 1

cl_pitchup 89
cl_pitchdown 89

lightgamma 2
texgamma 2

traceroffset 30
traceralpha 0.5
tracerspeed 6000
tracerlength 0.8
is there any other way to check cvars settings?
what about the get_pcvar_num()

Last edited by sauron_pk; 10-08-2011 at 00:36.
sauron_pk is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-08-2011 , 02:55   Re: Help with making a cvar checker!
Reply With Quote #8

Slow Hacking - changing other player parameters without his permission.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
Backstabnoob
BANNED
Join Date: Feb 2009
Location: Iwotadai Dorm
Old 10-08-2011 , 05:39   Re: Help with making a cvar checker!
Reply With Quote #9

Quote:
is there any other way to check cvars settings?
what about the get_pcvar_num()
On non-steam, no.
get_pcvar_num() checks server-side cvars, not client-side. For non-steam users, you can only change the values that are in their info (with set_user_info()), this won't be considered slowhacking.

Also, as it has been said many times, non-steam is not supported here.
Backstabnoob 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 23:27.


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