AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   cl_cmdrate onchange event (https://forums.alliedmods.net/showthread.php?t=164329)

hunter_stth 08-10-2011 06:35

cl_cmdrate onchange event
 
I wrote a small plugin to check client rates and change them.

It work fine for rate, cl_updaterate vars, but i have a problem with cl_cmdrate.

1. client_infochanged(id) event doesn't run when i'm changing cl_cmdrate.
2. get_user_info(id, "cl_cmdrate", var, len) function doesn't work for cl_cmdrate. Function return 0.

Code:

new uRate[16];
new uUpdateRate[16];
new uCmdRate[16];
get_user_info(id, "rate", uRate, 15); // work
get_user_info(id, "cl_updaterate", uUpdateRate, 15); // work
get_user_info(id, "cl_cmdrate", uCmdRate, 15); // not working


PS. sorry for my bad english :)

Doc-Holiday 08-10-2011 06:43

Re: cl_cmdrate onchange event
 
Changeing a players rates is slow hacking... You must ask them before you can do it.

hunter_stth 08-10-2011 06:55

Re: cl_cmdrate onchange event
 
My server, my rules. If connected players disagree the terms, server will be kick them.

Hunter-Digital 08-10-2011 07:52

Re: cl_cmdrate onchange event
 
And this site's rules say that slowhacking is not allowed, so noone will help you here.

Also, for the sake of people's settings, ask them before you change anything and then kick them if they disagree.

Doc-Holiday 08-10-2011 07:54

Re: cl_cmdrate onchange event
 
you do know the rates that are good for your computer/internet wont be good for mine right?

Hunter-Digital 08-10-2011 07:56

Re: cl_cmdrate onchange event
 
Quote:

Originally Posted by Doc-Holiday (Post 1529496)
you do know the rates that are good for your computer/internet wont be good for mine right?

That also, basically you'll be fking your own server because people will have a bad experience... I know how it feels because I played on some servers that altered my settings and it ran like crap, I never played on those servers again... but if you want only unaware noobs to play, go ahead. :lol:

PS: if it's not clear, I'm addressing to hunter stth, not to you doc holiday :}

Doc-Holiday 08-10-2011 08:02

Re: cl_cmdrate onchange event
 
lol i know what you mean...

fysiks 08-10-2011 16:40

Re: cl_cmdrate onchange event
 
You only need to use sv_minupdaterate, sv_maxupdaterate, sv_minrate, and sv_maxrate to force client's to use your rates. It won't change their settings but will force them to be within the min-max range regardless of their connection.

cl_cmdrate cannot be used to gain an advantage over others like cl_updaterate can hence why HLDS does not have a min/max setting for it.

Therefore anybody who requests crap like this doesn't know enough about their server.

Quote:

Originally Posted by Kreation (Post 1529809)
That's enough for me to believe his intention is not slow-hacking, so what exactly is not working? It's not getting the value?

1. YOu don't know what his "terms" say.
2. See post #5.
3. See my explaination here.

ConnorMcLeod 08-10-2011 17:03

Re: cl_cmdrate onchange event
 
sv_minrate 9999
sv_minupdaterate 30
sv_maxrate 25000
sv_maxupdaterate 101

That's enough.


All times are GMT -4. The time now is 03:23.

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