PDA

View Full Version : query_client_cvar


Bello
06-17-2010, 20:45
Hi! I have a problem with this code:

#include <amxmodx>

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

public client_putinserver(id)
set_task(10.0, "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")
query_client_cvar(id, "cl_lc", "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")

if ((!strcmp(cvar, "cl_lc", 1)) && (str_to_num(value) != 1))
client_cmd(id, "cl_lc 1")
}

Every 10 seconds verifies and change the cvar, i want that only do so when the player change the command, As i can do it?

fysiks
06-17-2010, 21:32
Hi flamin.

Bello
06-17-2010, 21:46
Hi flamin.

offtopic?

drekes
06-18-2010, 01:42
Hi flamin.
:shock: How do you know that?

fysiks
06-18-2010, 19:31
:shock: How do you know that?

:roll: behavior I guess. Mostly just a guess but his response seems to hint at the fact I was right.

drekes
06-18-2010, 19:55
Awesome, they should give you the banhammer to deal with this stuff.

Kreation
06-18-2010, 20:17
@fysiks: That was magical how you called that, I wouldn't of noticed. Saw your post, looked at the code and it looked like something that would be needed for a ESEA type thing that flamin was trying to accomplish. :D

fysiks
06-18-2010, 20:52
Actually, don't give me any credit. I had help. :)

Kreation
06-18-2010, 21:13
I heard. :P

YamiKaitou
06-18-2010, 21:44
:roll: behavior I guess. Mostly just a guess but his response seems to hint at the fact I was right.

He is actually trying to fight his case with me (and my guess is multiple other Moderators (only 1 other has Ban powers)). I'm not buying it though, but I am enjoying him trying.

wrecked_
06-18-2010, 21:55
Some of my observed reasons.

Well you're able to tell by a few things: He's added me on every single banned account that he's had to date:
flamin
Helloween
Bello
He uses those common phrases:
"as can ..."
"You can ...?"
I haven't spoken a word to him yet and he has me added.
He has ESEA-related issues.
Holy shit I'm too observant.

RedRobster
06-19-2010, 02:55
I suggest you stop worrying about flamin...and get on about addin ML support for Fart Mod :grrr:

Bello2
06-20-2010, 15:11
I have already dealt with the problem with yamikaitou, i am not no flamin ok.

I'm from Venezuela, here we have many problems with cheats "low recoil" and apparently no one has created some plugin to detect these cheats.

I just want help with code and the question that i did in the post # 1

YamiKaitou
06-20-2010, 15:20
I have already dealt with the problem with yamikaitou, i am not no flamin ok.
I still don't believe you

I just want help with code and the question that i did in the post # 1
We don't support Slowhacking, locked