PDA

View Full Version : RateChecker


pRED*
06-30-2007, 22:13
Basic Rate Checking Plugin.

Type sm_rate <name or #userid> (!rate and /rate obviously work too)

To display a panel showing that user's rates. Next and previous buttons let you browse through all the current players rates.
Typing sm_rate with no parameter will show your own rates.

Type sm_ratelist to print all players rates to console

http://img209.**************/img209/8127/ratejc6.jpg

API
06-30-2007, 22:18
Approved. Good job.

TSCDan
07-02-2007, 12:00
Could we get a cvar/different command to print the info to the console (server or client)? I used to use the ma_rates command in console from HLSW to see the rates of all of the players, and if it wouldn't be too difficult... :) Thanks!

pRED*
07-02-2007, 17:00
Yup it's on my todo list.. gimme a day.

MeatGrinder
07-04-2007, 01:53
Does this display the actual rates after server enforced rates have been applied or just the player's setting from their config before the restrictions?

And what I mean by restricted rates is sv_minupdaterate, sv_mincmdrate, etc...

Sooooo many server admins are mistaking that the enforced rates are not working because commands such as ma_rates in Mani Admin are reporting only what's in the user's config, not the actual rates, and they are relying on that falsified information.

k3rMz
07-06-2007, 15:29
I Just Tested This And It Doesnt Show Enforced Settings From Server , Only Whats In Users Config ..

ferret
07-06-2007, 15:31
To display a panel showing that user's rates.

Which is what it's suppose to do.

k3rMz
07-06-2007, 16:38
Which is what it's suppose to do.

was answering the post above mine :)

ferret
07-06-2007, 17:51
I should read.

pRED*
07-06-2007, 22:14
Updated with sm_ratelist command.

MeatGrinder
07-08-2007, 17:59
I Just Tested This And It Doesnt Show Enforced Settings From Server , Only Whats In Users Config ..

Which sadly makes this plugin essentially useless unless you don't enforce rates on your server...

pRED*
07-08-2007, 18:14
I don't really understand that..

Your enforced rates should be set reasonably generous in both directions to allow 56k player and people with awesome cable like connections to have suitable rates. (unless you're one of those server admins who think that 56k players lag other people..). The enforced server rates should prevent people from using ridiculously stupid rates and the rate checker (along with their ping) should help you identfy people using incorrect rates for their connection (whether it be malicious or just ignorant) and tell them what to do to fix it.

-GSE-||Obsession^
07-13-2007, 06:14
Anyway just want to say I like this a lot. Thx for the Job

Pursuit
07-16-2007, 12:20
thx alot pred, good job.:up:

MAUGHOLD
10-11-2007, 07:36
can this plugin be made to allow all users to check what other users rates are as well as what the servers rates are, ie sys_ticrate,sv_maxrate,sv_minrate,sv_minupdat erate.

very nice indeed :)

k3rMz
10-11-2007, 10:39
i loaded this onto our server again and although everything seems to be workin ok i noticed the followin in the output in console


] sm_ratelist
Unknown command: sm_ratelist <<<< this one
Name Rate UpdateRate CmdRate Interp
{dbh-Bot} Grover 30000 20
{dbh-Bot} Foo-foo 30000 20
{dbh} K³®mī† 30000 66 66 0.033

dunno why it says unknown but straight after it executes the cmds very weird

Nolongerinthegame
10-11-2007, 15:24
Great plugin, think this will be beneficial and should be added to the sourcemod base IMO

tkaway69
10-13-2007, 21:10
We have a Member on dialup. Hahahaha.. I know it sucks, but he has been with us for years. Is there a config or something that is setting rates to the max? He says his are being changed and causing him much lag. I ask this because he had no probs untill i put your plugin on server. I thought it only allowed you to check rates not set them.

pRED*
10-13-2007, 23:59
this only views rates... Doesn't set or force anything...

tkaway69
10-14-2007, 00:05
Thanks for the reply. It must have been the latest steam update, because something sets rates to the max.

MoggieX
10-14-2007, 02:57
Nice addition Pred, just added to ours!

mongwong
10-14-2007, 09:38
handy script , thankyou.
Is there a way to also add !rates as most people seem to type that not !rate

Gweedo
10-14-2007, 17:16
Would be cool if it showed their SteamID as well. Also maybe format it a little better so things aren't jumbled up and are more easily read.

Derek
10-17-2007, 08:10
Seems to be working perfect for TF2.

Derek
11-05-2007, 18:54
The interp isnt working correctly maybe you can take a look.

fyckfaco
11-18-2007, 21:59
Is there a way of making this admin accessable only. Although i dont mind the players being able to do it, so far all its done is caused ppl who dont understand rates to bitch about ppl who have slightly different ones.
Was ma_rates admin only hmm?!

jones ray
11-18-2007, 23:38
Simple quick fix just inform the few players that moan why various players rates are different to others rather than hide them.

MoggieX
11-19-2007, 06:54
Is there a way of making this admin accessable only. Although i dont mind the players being able to do it, so far all its done is caused ppl who dont understand rates to bitch about ppl who have slightly different ones.
Was ma_rates admin only hmm?!

yes use overrides and bind it to the admin flag b. Then only admins can use it.

Open admin_overrides.cfg and put this in it:


Overrides
{
"sm_rate" "b"
"sm_ratelist" "b"

}
Matt

fyckfaco
11-19-2007, 08:08
You're a star thx. Sorry source noob here

fyckfaco
11-19-2007, 09:38
Didnt seem to work putting it in admin_overrides, non admins can still use it :S

MoggieX
11-19-2007, 17:14
Didnt seem to work putting it in admin_overrides, non admins can still use it :S

Oops use this


Overrides
{
"sm_rate" "b"
"sm_ratelist" "b"

}some n00b put rates instead of rate :-)

Matt

MAUGHOLD
11-20-2007, 17:10
Is this plugin avilable for HL1 mods and if it isn't can you please make it so.
Also it would really be nice if it showed the servers maxrates and ticrate as well.

tcviper
11-21-2007, 08:50
prED you should update this if possible to make it for admins only (as cvar or something).

mkay_63
01-10-2008, 20:01
prED you should update this if possible to make it for admins only (as cvar or something).

Hi.

Hm, I'm not prED - but anyways, I can help you ;)

What you have to do:

Open the file "ratechecker.sp" (i.e. with Notepad)

Search this (line #39):
"RegConsoleCmd("sm_rate", Cmd_Rate)"

And replace it with:
RegAdminCmd("sm_rate", Cmd_Rate, ADMFLAG_GENERIC)

That's it... Now the "sm_rate" command is for generic admins only (b).
Fine, I have attached the file for the lazy guys out there xD).

PrefeX
01-12-2008, 19:09
or you can use access override ;)

oliverk23
03-23-2008, 16:35
hi,
when i compile that plugin i get a error :

Warning 234 : symbol "SearchForClients" is marked as deprecated: Use Fintarget () or ProcessTargetString()

what does this mean, is there en solution to compile without an error ?

Greats

bl4nk
03-23-2008, 16:42
It's nothing you need to worry about. The function is no longer used, but will still work. The compiler is just telling you that a newer, better function has been released since then. Like I said, nothing to worry about.

BehaartesEtwas
03-29-2008, 19:13
Hi,

I have modified the plugin so it also shows the actual values (not only the values of the CVARS which will might be overridden by server restrictions) and some additional information like loss and choke. Maybe you can integrate it into the "official" version?

Thanks for the great plugin!

BE

oliverk23
03-29-2008, 21:44
tested and i say nice ^^

ajbrun
03-30-2008, 16:03
I've made a tiny tiny change to it on line 61 to include some spacing after the player name, so it's a bit easier to read:

PrintToConsole(client,"%30s %s %s %s %s",name,rate,update,cmd,interp)

BehaartesEtwas
04-09-2008, 08:45
small update to my version: fixed wrong keys for "previous" and "next" in the menu and integrated change of ajbrun

MAUGHOLD
04-09-2008, 15:31
It would be nice if this plugin also printed out the servers sv_maxrate, sv_minrate, sv_minupdaterate, sv_maxupdaterate and sys_ticrate as well.

PStar
04-22-2008, 16:42
Using SM 1.1.0.2089 and when compling it it says:
ratechechker.sp(85) : warning 234: symbol "SearchForClients" is marked as depracated: Use FindTarget() or ProcessTargetString()

Could you fix it, Pred?

BehaartesEtwas
04-23-2008, 03:24
It's a warning, not an error, so this does not need to concern you, it will run anyway. (Of course this need to be fixed sooner or later as the function might vanish in a future version of SM, but this is nothing to worry about as a user...)

Kahless
05-04-2008, 03:57
How can i Get this to show up as an option on the admin list?

BehaartesEtwas
05-04-2008, 06:21
You mean, in the admin menu? You will need to set up the dynamic admin menu (http://wiki.alliedmods.net/Dynamic_Admin_Menu_%28SourceMod%29) to show an entry which will execute the sm_rate command on the client.

Kahless
05-05-2008, 10:06
Ah okay because most plugins do it by default except for this one. Is there a code I can just add to the plugin to get it to show up? And a way to make it so just admins can view it?

BehaartesEtwas
05-05-2008, 10:27
If only admins should be able to show it, it might help to change the following line: RegConsoleCmd("sm_rate", Cmd_Rate) into: RegAdminCmd("sm_rate", Cmd_Rate, ADMFLAG_GENERIC) But I did not test this, it is only a guess ;-)
I don't know how to make this automatically appear in the admin menu, but as long as everybody can run the command I see no point in doing this ;-) Anyway, this information is not really sensitive, so why keep normal players from viewing it?
PS: You might want to use the modified version which displays the real values and not only the values of the CVARS (see my post above)...

disconnect81
05-10-2008, 21:44
Nice plugin, seems to work great.

It would be sweet if this was a part of the admin menu. I read over the dynamic menu stuff, it seems a little heavy. Perhaps in a future update you could have this automatically go in the admin menu :)

nilaro
05-24-2008, 17:14
Hi !
I have a serious request.
I really need to have this plugin checking these rates :
ex_interp
cl_resend
cl_smooth
cl_smoothtime

A mod (iosoccer.com) really needs that because it's full of cheaters that can't be banned without proofs and we're pretty sure that they use these commands.
It would be really nice if you do it..

BehaartesEtwas
05-25-2008, 03:54
If I am not mistaken, those cvars are blocked by sv_cheats. That means changing those cvars will require a "real" cheat, you cannot do this in the config file or console. Most certainly such cheat will pretend to the server that all cvars are on allowed values. You should probably use some "real" anti-cheat tool like zBlock oder detox.

nilaro
05-25-2008, 12:13
If I am not mistaken, those cvars are blocked by sv_cheats. That means changing those cvars will require a "real" cheat, you cannot do this in the config file or console. Most certainly such cheat will pretend to the server that all cvars are on allowed values. You should probably use some "real" anti-cheat tool like zBlock oder detox.
Hi, thanks for your answer.
It seems that i found the cheat on the web..

International Online Soccer Source sv_cheats Bypass

NO VIRUS INCLUDED

checked on virustotal.com



############################################# ############################################# ###################
################# #################
################ International Online Soccer:Source sv_cheats BYPASS HACK ################
############## ##############
############ ############
############################################# ############################################# ###################


Features:
________________________

sv_cheats bypass




What can i do with sv_cheats bypass?

You can use commands like cl_interp, cl_interpolate and stopsound



HOW TO USE:
_________________________


start ioss_bypass.exe
start International Online soccer Source
type cl_interp or other commands and console
Own Anti-Pushers :)


I tried on my server to turn sv_cheats to 1, then I tried cl_interpolate 0.
It is so much easier to play with that and i'm pretty sure this is the cheat they use.
So, I tried to remplace all "interp" words in the ratechecker plugin by the word "interpolate", but when I try in game it only shows 0.000 (even when I have cl_interpolate 1).
Help would be really appreciated !

eric0279
05-25-2008, 18:15
Hi,

a error :
rcon sm_rate
L 05/26/2008 - 00:14:02: [SM] Native "GetClientInfo" reported: Client index 0 is invalid
L 05/26/2008 - 00:14:02: [SM] Displaying call stack trace for plugin "ratechecker.smx":
L 05/26/2008 - 00:14:02: [SM] [0] Line 112, /home/groups/sourcemod/upload_tmp/textTkQ3XZ.sp::RatesPrint()
L 05/26/2008 - 00:14:02: [SM] [1] Line 77, /home/groups/sourcemod/upload_tmp/textTkQ3XZ.sp::Cmd_Rate()

spacedkadet
05-25-2008, 20:05
Installed this plugin on my dod:S beta server (ob) and the server crashes at map change. Removed the plugin and its ok again. Sry dont know how to get the log etc.

BehaartesEtwas
05-26-2008, 11:09
eric0279: try without rcon. you need to be an sourcemod admin, but you do not need rcon. !rate or /rate in chat should also be working. (sm_rate displays a menu, so it does not make any sense running this command from the server console)

eric0279
05-26-2008, 11:39
I type in the chat /rate or !rate or sm_rate and doesn't work.


admins.cfg :
Admins
{
"Aplha"
{
"auth" "steam"
"identity" "STEAM_0:1:12157180"
"flags" "z"
}
}
Could you make a file so that have can translate?

to translate the following words :

Previous, Next and Exit

If I translate the words, error:

http://img357.**************/img357/5597/errornr9.jpg

Gweedo
05-27-2008, 16:58
nilaro: Set sv_client_interpolate 1 in your server.cfg if you haven't already. This forces cl_interpolate 1 to clients. The line of code you'd add to show interpolate in the rates output would be the this:

GetClientInfo(i, "cl_interpolate", interpolate, sizeof(interpolate)); If you need help implementing this let me know.

eric0279: Enter what it says there to enable debug mode and then run the command again. It will tell you specifically what line the error is occurring on.

eric0279
05-27-2008, 17:41
but the problem occurs only when I translate into French…


see my screen :
http://img357.**************/img357/5597/errornr9.jpg

Gweedo
05-27-2008, 18:49
You need to add the translations to core.phrases.txt in your translations folder.

nilaro
05-27-2008, 19:13
nilaro: Set sv_client_interpolate 1 in your server.cfg if you haven't already. This forces cl_interpolate 1 to clients. The line of code you'd add to show interpolate in the rates output would be the this:

GetClientInfo(i, "cl_interpolate", interpolate, sizeof(interpolate)); If you need help implementing this let me know.

Wow, thanks for your help :) !
But indeed, i'd need you to tell me how to show cl_interpolate at least printed in the console ?
The best would be of course you that gives me the source with all already made but well, i'm not gonna ask you that :D

eric0279
05-28-2008, 06:11
Yessssssss tanks for answer ;)

Gweedo
05-28-2008, 12:38
nilaro: Here's the original code with cl_interpolate added to console. I would add it to the panel, but I'm at work and can't test it.

If you'd like me to post my modified plugin that outputs a formatted table and shows users IPs (only to admins) I can do that. However I didn't modify the panel view.

EDIT: nilaro, I just saw your PM. I will look into smoothtime later today if I can. I'll also take a look at modifying the panel so it's the same as the console output.

nilaro
05-28-2008, 13:15
Thank you a lot lot lot !
But, it seems there's a problem since when I type sm_ratelist, i got :


Name Rate UpdateRate CmdRate Interp Interpolate
KEEPER1(bot) 30000 20 0
playernick 25000 101 100 0.1

So i don't get interpolate rate for the human player :o
I don't have time to look at the source, i'll do after.
But still, thanks a lot for what you do :)

Gweedo
05-29-2008, 11:27
Interpolate should show up just fine unless that mod doesn't like it, but I don't know why it would be any different from CSS.

I can also implement checking of cl_smoothtime and I will get you something later today.

nilaro
05-29-2008, 15:03
Interpolate should show up just fine unless that mod doesn't like it, but I don't know why it would be any different from CSS.

I can also implement checking of cl_smoothtime and I will get you something later today.
Yeah, i don't understand why it doesn't work.
Anyway, I really hope you're gonna do it with cl_smoothtime cause actually many players use it :/

Gweedo
05-29-2008, 17:17
Give this a try. It's a copy of my version (formatted output and replaced a deprecated function) with the changes you requested.

nilaro
05-29-2008, 19:28
This is really great, thanks for the time you're giving for us; but still, it doesn't show players cl_smoothtime and interpolate :/
When i try "sm_rate playername", it gives me "unable to target this player", maybe it is linked ?
I really think the mod's author has changed some things that makes it impossible to see these cvars :/
Thanks again.


Edit : I talked to some coders in my mod's community. Apparently it seems that sourcemod doesn't work at 100% with this mod.

Jokerz99
06-02-2008, 23:44
can you add ping to the display? and sm_ratelist

BehaartesEtwas
06-03-2008, 03:38
In reply #41 (http://forums.alliedmods.net/showpost.php?p=608731&postcount=41) I had attached a version which could do that, but only in the menu display.

Jokerz99
06-04-2008, 12:31
can you add it to the sm_ratelist also?

Gweedo
06-04-2008, 13:47
Jokerz99: Try this. I altered BehaartesEtwas copy to add ping to the sm_ratelist.

oliverk23
06-04-2008, 14:14
i get a lot of warnings by compiling your version

Gweedo
06-04-2008, 22:04
Ok, I updated the one I posted above. I forgot to change the variable used which caused it to not compile and I fixed the indentation errors and the deprecated function.

ruddernz
08-02-2008, 23:39
cool plugin, im a sourcemod nub, is there a way to get this into a menu rather than typing sm_rate everytime?

thx

ruds

GyroTarzan
08-03-2008, 04:01
"Commands"
{
"ServerCommands"
{
"Show Rates"
{
"cmd" "sm_rate #1"
"admin" "sm_ban"
"1"
{
"type" "player"
}
}
}




Copy this in to your adminmenu_custom.txt in youre config folder

BehaartesEtwas
08-03-2008, 12:46
or just type !rate in the chat (rather than sm_rate into the console). you can also bind a key if you want (put something like bind r "sm_rate" into your client config)

ruddernz
08-04-2008, 00:38
ahh cool thx for that will try tonight

thx

ruds

charly
12-13-2008, 08:14
Hello
Some command exists to force the rates on having entered server
thank you

BehaartesEtwas
12-13-2008, 10:21
sv_mincmdrate and sv_minupdaterate can be used to set the lower bounds, while sv_maxcmdrate and sv_maxupdaterate are for the upper bounds. But you have to take several thinks into account:
Forcing too high rates might produce loss and/or choke, which is much worse than "low" rates like 30/30. The rate settings have to match the client's connection, so you should not decide on server side which rates the player have to use.
The client CVARs keep their values even if they are out-of-range. But of course the effective values are changed according to the server settings. Keep this in mind before kicking players off your server because this tool (or zblock/mani/...) reports values which are not allowed.
The actual rates depend not only on settings. Especially the update rate cannot exceed the client's fps. So if you force a cmdrate 100 only a fraction of your players will really have a cmdrate of 100. Only very recent PCs are capable of keeping their fps > 100 in a real battle. Also hacker which use some hack to lower their real cmdrate will not be affected by these settings.If you want to see the real rates, I have posted some time ago a version which can do that: #41 (https://forums.alliedmods.net/showpost.php?p=608731&postcount=41)

blik
12-13-2008, 11:32
[/LIST]If you want to see the real rates, I have posted some time ago a version which can do that: #41 (https://forums.alliedmods.net/showpost.php?p=608731&postcount=41)
Thanks.

DontWannaName
12-25-2008, 19:13
L 12/24/2008 - 22:25:14: [SM] Native "CanUserTarget" reported: Client index 0 is invalid
L 12/24/2008 - 22:25:14: [SM] Displaying call stack trace for plugin "ratechecker.smx":
L 12/24/2008 - 22:25:14: [SM] [0] Line 98, /home/groups/alliedmodders/forums/files/3/0/2/3/6/27334.attach::Cmd_Rate()

lhffan
01-20-2009, 13:45
But still with sv_minrate 15000

This plugin shows that some of my users are using rate 7500

BehaartesEtwas
01-20-2009, 14:58
The plugin does not show you the actual rates. It only shows you the values of the client's CVARs. The actual rates will be changed according to the server settings. Again, in #41 (https://forums.alliedmods.net/showpost.php?p=608731&postcount=41) I have posted a version that can show the actual rates.

lhffan
01-20-2009, 17:01
Thats the version im using and there still it says rate 10000 even if the server is set to 15000 minimum

BehaartesEtwas
01-20-2009, 17:07
Thats the version im using and there still it says rate 10000 even if the server is set to 15000 minimum
can you make a screenshot?

lhffan
01-21-2009, 10:12
I know that my sv_minrate works but it feels lol even to have that row there if it is not showing the actual rate that the user have:

http://www.sg1.se/upload/rate.JPG

and my settings forcing the users lowest rates works:

http://www.sg1.se/upload/rate2.JPG (http://www.sg1.se/upload/rate.JPG)

BehaartesEtwas
01-21-2009, 10:21
well, the actual rates are listed in line 6. "rate" defines an upper limit, so "sv_minrate" defines the lower limit of the upper limit. maybe it's not nice that the plugin shows what the user has in his config, but it does not really matter... knowing that CVAR is only important if you want to help someone who has problems with choke. the only important values are given in lines 2 and 3.

lhffan
01-21-2009, 16:55
thank you wery much for that explanation

JohnSmith
01-31-2009, 16:43
They no longer exist? Anyone re-upload?

BehaartesEtwas
02-01-2009, 05:32
They no longer exist?
What does not exist anymore?

Faust_mateo
03-07-2009, 22:45
is there anyway to integrate this into the admin menu ?

BehaartesEtwas
03-08-2009, 05:21
you can integrate any command into the admin menu... http://wiki.alliedmods.net/Dynamic_Admin_Menu_(SourceMod)

Faust_mateo
03-08-2009, 13:37
you can integrate any command into the admin menu... http://wiki.alliedmods.net/Dynamic_Admin_Menu_(SourceMod (http://wiki.alliedmods.net/Dynamic_Admin_Menu_%28SourceMod))

Is there another link?



Dynamic Admin Menu (SourceMod

From AMWiki

Jump to: navigation (http://wiki.alliedmods.net/Dynamic_Admin_Menu_%28SourceMod#column-one), search (http://wiki.alliedmods.net/Dynamic_Admin_Menu_%28SourceMod#searchInput)
There is currently no text in this page, you can search for this page title (http://wiki.alliedmods.net/Special:Search/Dynamic_Admin_Menu_%28SourceMod) in other pages or edit this page (http://wiki.alliedmods.net/index.php?title=Dynamic_Admin_Menu_%28SourceM od&action=edit).

blik
03-08-2009, 14:05
The url missed the closing parenthesis...

http://wiki.alliedmods.net/Dynamic_Admin_Menu_(SourceMod)

Lebson506th
03-08-2009, 14:07
I changed it to redirect so even if you miss the ) it will still go now. =)

Dog_Pound
03-18-2009, 21:59
Here's a question for you, what do you make of this showing up in the rates:
PlayerName speed 30 20 30 0.1

I did the check 5 times, once was a general check and asked someone to change a million rate and for that one this guy showed 20000 20 30 0.1

The second I did to confirm the first guy's correction and then I noticed that speed entry. Did three more at different points, for two during the game he had the same. His last one at end of game was 1000 20 30 0.01

Not sure what to make of this.

lhffan
03-19-2009, 12:55
is there anyway to integrate this into the admin menu ?

Yes and it is more easy than it looks

Open:
/orangebox/dod/addons/sourcemod/configs/

Edit:
adminmenu_custom.txt

Change from this:


"Commands"
{

}

Change to this:


"Commands"
{
"ServerCommands"
{
"Show Rates"
{
"cmd" "sm_rate #1"
"admin" "sm_ban"
"1"
{
"type" "player"
}
}
}

lhffan
04-17-2009, 06:49
The plugin does not show you the actual rates. It only shows you the values of the client's CVARs. The actual rates will be changed according to the server settings. Again, in #41 (https://forums.alliedmods.net/showpost.php?p=608731&postcount=41) I have posted a version that can show the actual rates.


hello guru

is it possible to add fps_max value to your version so i can 'spy' on my users fps_max value.. some of them sets there value to low

BehaartesEtwas
04-17-2009, 07:20
if they are set too low, the cmdrate will be low as well. in fact, the only possible exploit with low fps_max uses the fact that the cmdrate is limited by the fps and thus can be lowered below sv_mincmdrate. meaning, it's enough if you look at the real cmdrate in my modified version.

beware, low fps can well be produced by old hardware. only values constantly below ~30 would be a hint for some possible hacking (still not a proof). btw: fps_max cannot be lowered below 30, you need a real cheat for this.

lhffan
04-17-2009, 10:51
I know. Im aware of it. But still i think several users on my server uses fpx_max 30... and if i can se that they uses it i would know that they cheats. There are imo no meaning to set fps_max to 30 or similar. IF u do not want to lower your cmdrate. So if i sees a low cmdrate (real) and a locked low fps_max i would know for sure who i would like to ban.

Could u add it?

And also thanx for the nice kernel wiki ;) We have talked over srcds also.. im one of those linux noobs :)

BehaartesEtwas
04-17-2009, 14:37
you will see this if someone has a constant OUT of 30 despite sv_mincmdrate > 30
so I dont see any point in doing this ^^ also, fps_max 30 will give you more disadvantages than advantages. try it for your self.

lhffan
04-19-2009, 12:46
ok thanx

tnbporsche911
06-11-2009, 11:31
Using fps_max 30 is a real problem on a couple of my servers such as minigames and deathrun. It makes bunny hopping 10x easier. So BehaartesEtwas I do agree on the disadvantages of using it there are also some advantages in certain cases.

Pietje
06-13-2009, 04:53
Would be sweet if u can make it like a menu like kicking or banning, meaning u select check rates, and u get a players list.
Specially when they use strange characters as name it is impossible to type them in ur console.

BehaartesEtwas
06-14-2009, 02:46
just !rate in chat gives you a menu...

krolus
06-14-2009, 02:58
For what is that plugin if server enforcing minrate/maxrate?

BehaartesEtwas
06-14-2009, 03:07
to see the actual rates.
the server cannot enforce minimum/maximum rates, but only minimum/maximum rate settings. the actual rates might be different (especially lower), e.g. due to low fps.

p3c4
06-28-2009, 16:20
Thanks nice.

Sir_knumskull
01-15-2010, 09:15
Is it possible to get the average fps of a client?

Would be nice to know if a player has set fps_max too low or if his/her Computer cant provide more fps.

shady2k2
06-24-2010, 17:05
u can make this plugin to enforce player rates?

BehaartesEtwas
06-25-2010, 03:06
you can enforce them by sv_mincmdrate and sv_minupdaterate. if clients go below those rates they are simply not capable of running that rates. especially the cmdrate is limited by client fps!

lhffan
06-25-2010, 04:45
No you can never enforce player rates. The rates is dependent on the fps of the client.

The only you can do is to limit the upper part of the rates, but the lower ones you canot mixture with.

shady2k2
06-25-2010, 05:29
it's a plugin on eventscripts called forceratemod..but now that plugin is not working

jF_k
07-10-2010, 15:13
Hi guys,

I have downloaded the file but I have no idea where in my server do I place it. Could someone please help.

Thanks in advance

Bacardi
07-10-2010, 15:28
you can enforce them by sv_mincmdrate and sv_minupdaterate. if clients go below those rates they are simply not capable of running that rates. especially the cmdrate is limited by client fps!

wicked123
02-13-2011, 12:47
Cant get the code right in my custom menu. Can anybody see whats wrong? The other codes work fine, but this new one dosent even appear in the menu.



"Commands"
{
"ServerCommands"
{
"Live on three"
{
"cmd" "sm_lo3"
"admin" "sm_kick"
"execute" "server"
}
}
"ServerCommands"
{
"Restart game"
{
"cmd" "mp_restartgame 1"
"admin" "sm_kick"
"execute" "server"
}
}
"ServerCommands"
{
"admin" "sm_kick"
"Headshot only"
{
"cmd" "sm_headshotonly_enabled #1"
"admin" "sm_kick"
"execute" "server"
"1"
{
"type" "list"
"title" "HS only:"
"1" "1"
"1." "ON"
"2" "0"
"2." "OFF"
}
}
"ServerCommands"
{
"Show Rates"
{
"cmd" "sm_rate #1"
"admin" "sm_ban"
"1"
{
"type" "player"
}
}
}

sipster19
08-24-2011, 00:07
Loose indentation fixed with BehaartesEtwas version. Also only admins can access sm_rate.

PlayBoy31
08-29-2011, 15:53
Here a bette version from me:
- Fix deprecatded call
- add command listener rate rates (say, ...)
- fix format of sp file
- add steam id next to name

=> to fix: add check for client level when use say of rate/rates

enjoy !

sipster19
08-29-2011, 22:41
Both your version and my version has the same issue. When there's 2 or more players, and you type !rate playername, it says:

[SM] More than one client matches the pattern "playername"

It does the same thing when you type !rate #3 (the player's userid).

But when it's just me connected and I type !rate myname, the rate menu comes up and shows me. I have stopped using it because of this. It's very annoying because I coded my admin panel to select a player.

Bacardi
08-30-2011, 02:04
Why you even need this plugin... ?
Server can cap min/max rates and all you want do is look players faulty rates what are client side.
They still can't play lower or higher than server settings.

sipster19
08-30-2011, 02:12
That's true but it displays other things like ping and choke.

TnTSCS
08-30-2011, 10:21
Then it's just something in my mind. I have this plugin and when I notice a choppy player I look at their rates and they are usually set to rate=7500, cl_cmdrate=20, cl_updaterate=30... I tell them to fix their rates to rate=60000, cl_cmdrate=66, cl_updaterate=66 and their choppiness goes away.

server.cfg has the following:
sv_minrate 25000
sv_maxrate 60000
sv_minupdaterate 66
sv_maxupdaterate 101
sv_mincmdrate 66
sv_maxcmdrate 101

Maybe there's another command I'm missing to truly enforce the rates or valve isn't enforcing them properly. But I tell you, when I see players who are glitchy and teleporty, and I have them adjust their rates, those issues go away.

And just so you can see that I don't have rate settings anywhere else that may be overriding the server.cfg, here is the output of console:

07:19:44 sv_minrate
07:19:44 "sv_minrate" = "25000" ( def. "3500" )
replicated
- Min bandwidth rate allowed on server, 0 == unlimited
07:19:47 sv_maxrate
07:19:47 "sv_maxrate" = "60000" ( def. "0" )
replicated
- Max bandwidth rate allowed on server, 0 == unlimited
07:20:08 sv_mincmdrate
07:20:08 "sv_mincmdrate" = "66" ( def. "10" )
replicated
- This sets the minimum value for cl_cmdrate. 0 == unlimited.
07:20:11 sv_maxcmdrate
07:20:11 "sv_maxcmdrate" = "101" ( def. "66" )
replicated
- (If sv_mincmdrate is > 0), this sets the maximum value for cl_cmdrate.
07:20:19 sv_minupdaterate
07:20:19 "sv_minupdaterate" = "66" ( def. "10" )
replicated
- Minimum updates per second that the server will allow
07:20:22 sv_maxupdaterate
07:20:22 "sv_maxupdaterate" = "101" ( def. "66" )
replicated
- Maximum updates per second that the server will allow


....

Or, maybe the player just turns off their pingloss hax when I ask them to fix their rates - LoL

mentor
10-13-2011, 04:02
currently i should use this ? http://forums.alliedmods.net/showpost.php?p=1543545&postcount=118

gH0sTy
04-08-2012, 10:08
currently i should use this ? http://forums.alliedmods.net/showpost.php?p=1543545&postcount=118
Nope, it's faulty.
The attached one will work.

teamafia88
04-09-2012, 05:55
Hi ,
it would be possible to have an option when a player enters the server to have the display in the chat of these rate

Noitartsiger
02-06-2013, 09:00
Hi ,
it would be possible to have an option when a player enters the server to have the display in the chat of these rate
Would like that as admin notification too!

But more important, can you add: cl_interp_ratio and/or lerp value ?

Thanks in advance!
Regard,

Catwoman
10-07-2013, 14:34
Oops use this


Overrides
{
"sm_rate" "b"
"sm_ratelist" "b"

}some n00b put rates instead of rate :-)

Matt


this is my non-working overrides:

Overrides
{
"admin_allspec_flag" "z"
"sm_rate" "b"
"sm_ratelist" "b"

}

what's wrong here?
i made it admin-only, but everyone can check rates.

anyone?

Bacardi
10-07-2013, 14:51
@Catwoman
You have SourceMod 1.5.x ?

Catwoman
10-08-2013, 05:01
bac, its 1.5.1

Sopano
10-02-2014, 09:39
Is it possible to add something like this to console print message .. sm_ratelist


Name Interp UpdateRate CmdRate Rate
---------------------------------------------------------
IamNOOB 0.1 66 66 50000
LittleBo0 0.1 66 66 100000

Becouse now it just looks ugly

Trice
01-02-2023, 11:49
o my god is this Thread old, but 1 question, is there a chance to make it only see Admins or only Admins can use the commands?

Many Thanks