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

Detect player with fake ping


Post New Thread Reply   
 
Thread Tools Display Modes
aceofspades
Member
Join Date: Aug 2005
Old 11-13-2007 , 16:11   Re: Detect player with fake ping
Reply With Quote #11

Jesus you guys dont know about this? About 1 in 10 people do this on my server, nobody gets 1-5 ping unless you are literally living right next to the server, or you are the host.

I guess you could just check for differences in the ping in respect to time, everbodys ping changes no matter how low it is, but with the cl_cmdrate set to 0 it wont budge, thats the thing to check for.
aceofspades is offline
KMFrog
Senior Member
Join Date: Oct 2007
Old 11-14-2007 , 22:09   Re: Detect player with fake ping
Reply With Quote #12

easy to detect it - but other than kicking/banning the player, there's nothing you can do.

Code:
GetClientInfo(client, "cl_interp", my_cl_interp, 9);
GetClientInfo(client, "cl_updaterate", my_cl_update, 9);
GetClientInfo(client, "cl_cmdrate",my_cl_cmd, 9);
GetClientInfo(client, "rate", my_rate, 9);
KMFrog is offline
BAILOPAN
Join Date: Jan 2004
Old 11-15-2007 , 04:15   Re: Detect player with fake ping
Reply With Quote #13

There shouldn't be any need to do any of this. Valve supplies sv_min* and sv_max* cvars for valid cmdrate ranges. If they're not working, post on hlds or hlds_linux mailing lists.

But if you still want to write your own solution, KMFrog is correct.
__________________
egg
BAILOPAN is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 11-15-2007 , 14:05   Re: Detect player with fake ping
Reply With Quote #14

Er... My ping is frequently 5-15 on some of the servers I play on. And I don't think my neighbors are the ones hosting the server.
I wouldn't like to get kicked just for having good latency.
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
blade81
Senior Member
Join Date: Apr 2005
Old 11-15-2007 , 16:36   Re: Detect player with fake ping
Reply With Quote #15

Quote:
Originally Posted by KMFrog View Post
easy to detect it - but other than kicking/banning the player, there's nothing you can do.

Code:
GetClientInfo(client, "cl_interp", my_cl_interp, 9);
GetClientInfo(client, "cl_updaterate", my_cl_update, 9);
GetClientInfo(client, "cl_cmdrate",my_cl_cmd, 9);
GetClientInfo(client, "rate", my_rate, 9);
I can set cl_cmdrate to 999999 to fake my ping but the console will still show the max cl_cmdrate allowed on the server. I guess your suggestion wont work.
blade81 is offline
KMFrog
Senior Member
Join Date: Oct 2007
Old 11-15-2007 , 16:43   Re: Detect player with fake ping
Reply With Quote #16

the code retrieves the client rate settings, its a copy and paste from a plugin so i can tell you it does work because ive been using it ;]
KMFrog is offline
lhffan
Senior Member
Join Date: Jul 2008
Old 03-16-2022 , 09:24   Re: Detect player with fake ping
Reply With Quote #17

Quote:
Originally Posted by BAILOPAN View Post
Code:
] cvarlist sv_min
cvar list
--------------
sv_mincmdrate                            : 30       : , "rep"          : This sets the minimum value for cl_cmdrate. 0 == unlimited.
sv_minrate                               : 15000    : , "rep"          : Min bandwidth rate allowed on server, 0 == unlimited
sv_minupdaterate                         : 30       : , "rep"          : Minimum updates per second that the server will allow
--------------
replace sv_mincmdrate value with non numbers. Like a space.

"30"
va
" 30"
lhffan 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 13:26.


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