Raised This Month: $410 Target: $400
 102% 

Ping Faker 1.5


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Hawk552 (427)
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 02-22-2009 , 22:34   Ping Faker 1.5
Reply With Quote #1

Ping Faker

Description

This plugin can fake the display of a player's latency (ping) shown on the scoreboard. Unlike the "fakelag" command, it does not affect the player's real latency in any way.

You can have all players report the same ping, or only fake it for those having a specific IP/SteamID. This last feature is especially useful when running a dedicated server from your own computer, when you don't want people to guess you're an admin/owner by looking at your low ping.

Installation
  • Extract .amxx file to your plugins folder, and add its name to plugins.ini
  • Extract .ini file to your amxmodx/configs folder
CVARS
  • pingfake_enable <0/1> - Enable/disable ping faking
  • pingfake_ping <1337> - The ping you want displayed (min: 0 // max: 4095)
  • pingfake_flux <0> - Fake ping fluctuation amount (0 = none)
  • pingfake_target <0/1> - Whether to display fake ping to its target too
  • pingfake_bots <0/1/2> - Affect bots too (set to 2 for bots ONLY setting)
  • pingfake_multiplier <0.0> - Set this to have the fake ping be a multiple of the player's real ping instead of fixed values (0.0 = disabled)
  • pingfake_fileonly <0/1> - Enable this to fake pings ONLY for players listed on the .INI file

Commands
  • amx_fakeping <target> <ping> - Toggle fake ping override for player (use -1 to disable)
You can also have players automatically get fake pings according to IP/SteamID by editing the "fakepings.ini" file in your configs folder.

Changelog

Code:
- Version: 1.5a (Jun 11, 2014)
* Fixed to send a single SVC_PINGS message using the real arguments from HL (this just means the code is now much simpler to understand)

- Version: 1.5 (Jun 06, 2011)
* Fixed plugin so that it works on all HL mods
* Removed CVAR pingfake_flags (not really needed anymore)
* Added feature (+CVAR) to have the plugin fake pings ONLY for players listed on the .INI file
* Fixed fake pings overriden after DeathMsg/TeamInfo events in CS

- Version: 1.4 (Mar 15, 2009)
* Added feature (+CVAR) to have the fake ping be a multiple of the player's real ping

- Version: 1.3 (Feb 24, 2009)
* Added admin command to manually toggle fake ping for players
* Added feature to automatically load fake pings from file

- Version: 1.2a (Feb 24, 2009)
* Fixed is_user_bot flag not being reset on disconnect

- Version: 1.2 (Feb 23, 2009)
* Added fake ping fluctuation and affect bots settings

- Version: 1.1 (Feb 23, 2009)
* Managed to send up to 3 pings on a single message, thus reducing bandwidth usage by 26%

- Version: 1.0 (Feb 23, 2009)
* Public release
Attached Thumbnails
Click image for larger version

Name:	pings.jpg
Views:	68391
Size:	74.2 KB
ID:	37737  
Attached Files
File Type: ini fakepings.ini (181 Bytes, 32774 views)
File Type: sma Get Plugin or Get Source (pingfaker.sma - 22997 views - 13.1 KB)
__________________

Last edited by MeRcyLeZZ; 06-11-2014 at 02:41. Reason: small fix 1.5a
MeRcyLeZZ is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 02-22-2009 , 23:22   Re: Ping Faker
Reply With Quote #2

Really cool and good idea! If i still used my dedicated server i would for surely use this. (too bad i have a job and school haha) +karma
__________________
[B]
{PHILMAGROIN} is offline
letgoofmyeggs
Senior Member
Join Date: Aug 2006
Old 02-22-2009 , 23:23   Re: Ping Faker
Reply With Quote #3

is ther a way to make it have a random range.meaning noones ping stays the same for the whole time theyr playin in the server. so can it bounce around from a range like 20-30. this would b useful if you don want people to no your runin bots lol
letgoofmyeggs is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 02-23-2009 , 00:37   Re: Ping Faker
Reply With Quote #4

This plugin is well done.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
ScHrAnZ DiNgEnS
Senior Member
Join Date: Sep 2007
Old 02-23-2009 , 04:30   Re: Ping Faker
Reply With Quote #5

A command for set pings of other players was nice, and a command that u whrite /1337 in chat and after that the plugin change ure ping to 1337 =)
ScHrAnZ DiNgEnS is offline
Send a message via ICQ to ScHrAnZ DiNgEnS Send a message via AIM to ScHrAnZ DiNgEnS
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-23-2009 , 04:38   Re: Ping Faker
Reply With Quote #6

Illl lovin it
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
C.H.U.D.
BANNED
Join Date: Apr 2008
Location: Long Island, NY
Old 02-23-2009 , 05:13   Re: Ping Faker
Reply With Quote #7

A couple of questions


1. Anyway to get the pings to randomly fluctuate between 2 sets of numbers?
2. Is there anyway to have this applied only to bots?
3. How does this affect a High Ping Kicker?

Last edited by C.H.U.D.; 02-23-2009 at 05:16.
C.H.U.D. is offline
ExKiLL
Senior Member
Join Date: Nov 2005
Location: Germany
Old 02-23-2009 , 05:31   Re: Ping Faker
Reply With Quote #8

nice idea!

a random ping would be nice
between x and y
or
+5 & -5 of x
__________________
193.192.59.43:27015 ----- italy ( 20 )
85.25.150.62:27015 ------ sHclachthaus ( 14 )
85.25.150.62:27055 ------ DeathMatch ( 20 )
85.25.150.62:27035 ------ Kreedz Hangout ( 18 )
85.214.100.160:27015 ---- 24/7 full house | **GG + DM** ( 32 )
93.190.64.150:27015 ----- Superhero (12)
ExKiLL is offline
Owyn
Veteran Member
Join Date: Nov 2007
Old 02-23-2009 , 08:18   Re: Ping Faker
Reply With Quote #9

does it affect high ping kickers?
Owyn is offline
Send a message via ICQ to Owyn
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 02-23-2009 , 08:26   Re: Ping Faker
Reply With Quote #10

So i wannt to give my members fake ping, how can i add for members special pings?
4example :

on user with id : STEAM_ID_234234234 ping 2
on user with id : STEAM_ID_234234234 ping 2345234
& ....
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Reply


Thread Tools
Display Modes

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 20:31.


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