Raised This Month: $ Target: $400
 0% 

Improvements?


Post New Thread Reply   
 
Thread Tools Display Modes
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 01-29-2010 , 09:38   Re: Improvements?
Reply With Quote #31

Quote:
Originally Posted by Kigen View Post
It is not possible to set the client's cl_cmdrate because VALVe decided to disallow that.
I don't want to set their cl_cmdrate I just want to kick them if its 0.

Why does this not work?
kac_addcvar cl_cmdrate greater kick 0
__________________
tigerox is offline
Kigen
BANNED
Join Date: Feb 2008
Old 01-29-2010 , 09:41   Re: Improvements?
Reply With Quote #32

Quote:
Originally Posted by tigerox View Post
I don't want to set their cl_cmdrate I just want to kick them if its 0.

Why does this not work?
kac_addcvar cl_cmdrate greater kick 0
kac_addcvar cl_cmdrate greater kick 1

The "greater" does a check to see if the value is "greater than or equal to".
Kigen is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 01-29-2010 , 16:43   Re: Improvements?
Reply With Quote #33

Quote:
Originally Posted by Kigen View Post
kac_addcvar cl_cmdrate greater kick 1

The "greater" does a check to see if the value is "greater than or equal to".
Code:
kac_addcvar cl_cmdrate greater kick 1
The ConVar name "cl_cmdrate" is invalid and cannot be used.
This is the problem I'm having.
__________________
tigerox is offline
Kigen
BANNED
Join Date: Feb 2008
Old 01-30-2010 , 08:12   Re: Improvements?
Reply With Quote #34

Re-download KAC.
Kigen is offline
Kigen
BANNED
Join Date: Feb 2008
Old 01-30-2010 , 08:45   Re: Improvements?
Reply With Quote #35

Seriously, re-download KAC and restart your server.

http://kigenac.com/KACSM/BETA/kigen-ac-pub.smx
Kigen is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 01-30-2010 , 09:03   Re: Improvements?
Reply With Quote #36

Thank you. Working now.

Seems like it doesn't quite do what I thought. I have a sv_mincmdrate of 30 on my server, but the player can still set theirs to 0 or 1 and mask their ping. Doesn't seem like KAC picks this up, because the server restricts the players cl_cmdrate to sv_mincmdrate, but you can still drop your ping to 5; without a kick.
__________________

Last edited by tigerox; 01-30-2010 at 09:16.
tigerox is offline
anonpiss
Senior Member
Join Date: Jan 2010
Old 01-30-2010 , 12:00   Re: Improvements?
Reply With Quote #37

Works for me.

Whenever i set cl_cmdrate 1 or 0, it kicks me out.
anonpiss is offline
tigerox
AlliedModders Donor
Join Date: Oct 2008
Location: Canada
Old 01-30-2010 , 12:49   Re: Improvements?
Reply With Quote #38

hmm..I don't know then, doesn't seem to work for me. I can add it now, it just doesn't kick players.
__________________

Last edited by tigerox; 01-30-2010 at 13:36.
tigerox is offline
anonpiss
Senior Member
Join Date: Jan 2010
Old 01-30-2010 , 13:31   Re: Improvements?
Reply With Quote #39

Try adding this line in cvars.sp and recompile. Works for me.

Code:
CVars_AddCVar("cl_cmdrate",         COMP_GREATER,     ACTION_KICK,     "30.0", 0.0,     PRIORITY_NORMAL);
anonpiss is offline
nightrider
SourceMod Donor
Join Date: Dec 2008
Old 01-30-2010 , 14:39   Re: Improvements?
Reply With Quote #40

Worked fine for me.

kac_addcvar cl_cmdrate
kac_addcvar cl_cmdrate greater kick 1

Code:
14:38:10 kac_addcvar cl_cmdrate greater kick 1
14:38:10 L 01/30/2010 - 13:38:35: rcon from "21.142.327.28:4168": command "kac_addcvar cl_cmdrate greater kick 1"
14:38:11 L 01/30/2010 - 13:38:35: [kigen-ac-pub.smx] Console added convar cl_cmdrate to the check list.
14:38:11 L 01/30/2010 - 13:38:35: Console added convar cl_cmdrate to the check list.
14:38:11 KAC_ADDCVARSUCCESS
...
Code:
15:59:43 Usage: kac_addcvar <cvar name> <comparison type> <action> <value> <value2 if bound>
15:59:43 L 01/30/2010 - 15:00:07: rcon from "21.142.327.28:4168": command "kac_addcvar cl_cmdrate"
15:59:47 kac_addcvar cl_cmdrate greater kick 1
15:59:47 L 01/30/2010 - 15:00:11: rcon from "21.142.327.28:4168": command "kac_addcvar cl_cmdrate greater kick 1"
15:59:47 The ConVar cl_cmdrate already exists in the check list.
Though I do have to mention that it did error out in console repeatedly.
I would not recommend trying to get it working on a full server.
Get it setup on a empty server as you might get better results.
Or you might get the results shown below.
Code:
15:51:20 kac_addcvar cl_cmdrate greater kick 1
15:51:21 L 01/30/2010 - 14:51:45: rcon from "21.142.327.28:4168": command "kac_addcvar cl_cmdrate greater kick 1"
15:51:21 The ConVar name "cl_cmdrate" is invalid and cannot be used.
__________________
[SIGPIC][/SIGPIC] the pantless
I am the Night Rider!, I'm a fuel-injected suicide machine.
I am a rocker! I am a roller!, I am an out-of-controller!



Last edited by nightrider; 01-30-2010 at 16:05.
nightrider 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 11:54.


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