Raised This Month: $ Target: $400
 0% 

A plugin to check sent/received packets amount


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Qu@dr0
Junior Member
Join Date: Jun 2009
Old 09-16-2014 , 17:21   A plugin to check sent/received packets amount
Reply With Quote #1

Hello! I need a plugin which can check how many packets per second are sent and received by players on a server, i.e. something like this one: https://forums.alliedmods.net/showthread.php?t=70417
Because when I play on a DM server (128tick), there are some lagging/teleporting players with low ping and no loss/choke. They have one thing in common - low fps (30-50), so they send only 30-50 packets to a server and thus are lagging. This one https://forums.alliedmods.net/showthread.php?t=152044 can't actually help me because it's not choke or loss when a player has 30 fps and thus is sending to a server only 30 packets per second. But playing vs them is annoying, so I need a plugin which can kick them.
Qu@dr0 is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 09-18-2014 , 02:25   Re: A plugin to check sent/received packets amount
Reply With Quote #2

You want people with fps under 50 kicked?
Well this plugin will kick anyone bellow 60 fps, if they have set their settings to send under 60 fps.


PHP Code:
public OnClientPostAdminCheck(client

if (!
IsFakeClient(client)) 

QueryClientConVar(client"fps_max"ClientFpsMaxValueclient); 



public 
ClientFpsMaxValue(QueryCookie:cookieclientConVarQueryResult:result, const String:cvarName[], const String:cvarValue[]) 

new 
iFPSMax StringToInt(cvarValue); 

if (
iFPSMax && iFPSMax 60

KickClient(client"[SM] fps_max must be set to at least \"60\""); 


Attached Files
File Type: smx fpskick.smx (2.8 KB, 69 views)

Last edited by checkster; 09-18-2014 at 02:28.
checkster is offline
Qu@dr0
Junior Member
Join Date: Jun 2009
Old 09-18-2014 , 09:02   Re: A plugin to check sent/received packets amount
Reply With Quote #3

The minimum fps_max is already 60, you can't set it lower than 60.
I was talking about those who have bad PC and play with 30-50 fps. Their movement feels choppy for the others, so they're pretty hard to hit.
I wanna them to be kicked for sending 30-50 packets per second and thus being choppy.
Qu@dr0 is offline
checkster
BANNED
Join Date: Apr 2007
Location: Norway
Old 09-18-2014 , 09:06   Re: A plugin to check sent/received packets amount
Reply With Quote #4

Quote:
Originally Posted by Qu@dr0 View Post
The minimum fps_max is already 60, you can't set it lower than 60.
I was talking about those who have bad PC and play with 30-50 fps. Their movement feels choppy for the others, so they're pretty hard to hit.
I wanna them to be kicked for sending 30-50 packets per second and thus being choppy.
yes you can set it under that, why you think I have that plugin? lost of bhopscripts set it under 60, etc.


http://www.sourcemod.net/plugins.php...tion=&search=1

Last edited by checkster; 09-18-2014 at 12:42.
checkster is offline
Qu@dr0
Junior Member
Join Date: Jun 2009
Old 09-21-2014 , 08:08   Re: A plugin to check sent/received packets amount
Reply With Quote #5

I guess very few players actually reduce their fps manually, especially on DM server where I usually play, they can't even open console...

So, the question remains unanswered - how to check if a player sends less than 60 packets and then kick him? I do need a plugin similar to the old HPK...
Qu@dr0 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 16:57.


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