Raised This Month: $32 Target: $400
 8% 

Anti-Ping Mask


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 05-26-2010 , 09:41   Re: Anti-Ping Mask
Reply With Quote #71

Quote:
Originally Posted by Cep}|{ View Post
Put this plugin. Sometimes it became a hang server immediately after kick.
Update MM:S and SM to the latest releases.
psychonic is offline
Cep}|{
Member
Join Date: Nov 2009
Old 05-26-2010 , 13:48   Re: Anti-Ping Mask
Reply With Quote #72

Ok. Current versions:

Quote:
Originally Posted by meta version

Metamod:Source version 1.8.0
Build ID: 691:92ea98d22d75
Loaded As: Valve Server Plugin
Compiled on: Dec 19 2009
Plugin interface version: 11:7
SourceHook version: 4:4
Quote:
Originally Posted by sm version

SourceMod Version: 1.3.1
SourcePawn Engine: SourcePawn 1.1, jit-x86 (build 1.3.1)
SourcePawn API: v1 = 4, v2 = 3
Compiled on: Feb 9 2010 23:20:47
Build ID: 2917f33d01fcc28
__________________

Last edited by Cep}|{; 05-26-2010 at 13:51.
Cep}|{ is offline
Cadav0r
Senior Member
Join Date: Jan 2006
Location: France
Old 05-26-2010 , 16:22   Re: Anti-Ping Mask
Reply With Quote #73

Current version are :
Metamod:Source 1.8.1
Sourcemod 1.3.2
__________________
P.S : Sorry for my english but I'm French

My plugins : Admin Sounds




Cadav0r is offline
Darkthrone
Senior Member
Join Date: Jun 2009
Old 05-27-2010 , 11:32   Re: Anti-Ping Mask
Reply With Quote #74

instead of this plugin, you can use kac open beta and add to the server.cfg:
Code:
kac_addcvar cl_cmdrate greater kick 30
it will be kick clients with incorrect or lower than 30 cl_cmdrate
__________________
all the best for your Zombie:Reloaded server
Auto !zspawn | ZProp | Infinite Ammo | Anti-Doorblock

Darkthrone is offline
atom0s
Senior Member
Join Date: Jul 2009
Old 05-30-2010 , 18:15   Re: Anti-Ping Mask
Reply With Quote #75

The reason your server hangs is probably due to your languages translation message is too long of a disconnect message and crashes the server/clients.

Try altering the translations file to make the kick/ban messages shorter and see if that helps.

I personally only tested the English version, since I wrote the plugin and its the only language I speak, so I asked others for their help with the translations.

If you can confirm the issue is with the length of the messages, please post some shorter ones and I will update the main posts translation file with the shorter messages.
atom0s is offline
-=CsFF=- Eagle
SourceMod Donor
Join Date: May 2005
Old 06-07-2010 , 13:15   Re: Anti-Ping Mask
Reply With Quote #76

Hi there,

there is a bug if u place a + before the cmdrate it kicks and dont let u on the server again until it is fixed.

On all other /*- etc. it kicks but you can reconnect. without any reaction.

Eagle
-=CsFF=- Eagle is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 07-14-2010 , 22:44   Re: Anti-Ping Mask
Reply With Quote #77

I've made a tweak to your plugin for my own purposes, but I am sharing it here for others in case they find it useful.

In your version, it checks for any characters other than spaces, periods, and digits.

My version checks for anything that isn't a digit or period, and then if it's all numerical, it checks if the number is >= 30. A space in front of the cl_cmdrate (like cl_cmdrate " 30") will indeed affect ping-masking from my tests. The new regex also reflects that.

A very low cl_cmdrate will show an incorrect ping the same way other characters in the cl_cmdrate will. On a 100-tick server, with a cl_cmdrate of 10, my latency on the scoreboard goes to 5. 30 is the Valve default, so I figured it was a safe number to use, but even with a cl_cmdrate of 30, your ping shows somewhat lower than would be if you had a higher cl_cmdrate.

I changed your IsValidCmdRate function as follows:

Old:
Code:
bool:IsValidCmdRate( String:CmdRate[] )
{
	/* Check command rate for invalid characters. */
	new nMatches = SimpleRegexMatch( CmdRate, "[^\\d\\s\\.]+" );
	if( nMatches >= 1 )
		return false;
	return true;
}
New:
Code:
bool:IsValidCmdRate( String:CmdRate[] ) {
  /* Check command rate for invalid characters. */
  new nMatches = SimpleRegexMatch( CmdRate, "[^0-9.]" );
  if (nMatches == 0 && StringToInt(CmdRate) >= 30) {
    return true;
  }
  else {
    return false;
  }
}
I also changed the English translation for "Kicked By Rate" to "cl_cmdrate must be numbers only and 30+". Your original didn't fit in the little box that users are shown when they are kicked (in CS:S anyway), and this explains concisely what they need to do to get back. Previously when I've told people they have an incorrect cl_cmdrate or that they're ping-masking, many of them don't even understand what I'm talking about.

UPDATE:
I fixed my version to allow periods and allow numbers above 100.
Attached Files
File Type: sp Get Plugin or Get Source (antipingmask.sp - 1256 views - 8.6 KB)
File Type: txt antipingmask.phrases.txt (2.6 KB, 549 views)

Last edited by Mister_Magotchi; 11-29-2010 at 23:13.
Mister_Magotchi is offline
krolus
Senior Member
Join Date: May 2009
Location: Russia, Omsk
Old 07-15-2010 , 00:13   Re: Anti-Ping Mask
Reply With Quote #78

You shouldn't check if cl_cmdrate is lower than some value. There is a server cvar sv_mincmdrate, which will enforce client cmdrate if it's lower than value of cvar.
__________________
kAmmomod is deprecated. Take a look at MGE Training
krolus is offline
Mister_Magotchi
SourceMod Donor
Join Date: Dec 2006
Location: Nampa, Idaho
Old 07-15-2010 , 00:28   Re: Anti-Ping Mask
Reply With Quote #79

You are incorrect. On my server, sv_mincmdrate is set to 45, and the server indeed forces the client to send updates at at least 45 per second, but it has no effect on ping-masking. For some reason, the game uses their actual typed value of cl_cmdrate to calculate latency as it's shown in the scoreboard.
Mister_Magotchi is offline
Ares Veteran
Senior Member
Join Date: Jul 2010
Location: Hungary
Old 09-04-2010 , 16:04   Re: Anti-Ping Mask
Reply With Quote #80

Tank you! This is working fine!
__________________
P.M.C Clan
pmcfighters.co.nr

Ares Veteran is offline
Send a message via MSN to Ares Veteran
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