Raised This Month: $ Target: $400
 0% 

cl_cmdrate onchange event


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hunter_stth
Junior Member
Join Date: Apr 2009
Location: Serbia
Old 08-10-2011 , 06:35   cl_cmdrate onchange event
Reply With Quote #1

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
hunter_stth is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 06:43   Re: cl_cmdrate onchange event
Reply With Quote #2

Changeing a players rates is slow hacking... You must ask them before you can do it.
Doc-Holiday is offline
hunter_stth
Junior Member
Join Date: Apr 2009
Location: Serbia
Old 08-10-2011 , 06:55   Re: cl_cmdrate onchange event
Reply With Quote #3

My server, my rules. If connected players disagree the terms, server will be kick them.
hunter_stth is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-10-2011 , 07:52   Re: cl_cmdrate onchange event
Reply With Quote #4

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.
__________________
Hunter-Digital is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 07:54   Re: cl_cmdrate onchange event
Reply With Quote #5

you do know the rates that are good for your computer/internet wont be good for mine right?
Doc-Holiday is offline
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 08-10-2011 , 07:56   Re: cl_cmdrate onchange event
Reply With Quote #6

Quote:
Originally Posted by Doc-Holiday View Post
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.

PS: if it's not clear, I'm addressing to hunter stth, not to you doc holiday :}
__________________
Hunter-Digital is offline
Old 08-10-2011, 15:33
Kreation
This message has been deleted by Kreation. Reason: fysiks win.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-10-2011 , 16:40   Re: cl_cmdrate onchange event
Reply With Quote #8

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 View Post
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.
__________________

Last edited by fysiks; 08-10-2011 at 16:56.
fysiks is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 08-10-2011 , 17:03   Re: cl_cmdrate onchange event
Reply With Quote #9

sv_minrate 9999
sv_minupdaterate 30
sv_maxrate 25000
sv_maxupdaterate 101

That's enough.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 08-10-2011 , 08:02   Re: cl_cmdrate onchange event
Reply With Quote #10

lol i know what you mean...
Doc-Holiday 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 03:23.


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