Jump to content
Sign in to follow this  
DemOnJR

[Plugin] Ping Faker 1.5

Recommended Posts

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

 

File Type: ini

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
(181 Bytes)
File Type: sma

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
or

Hidden Content

    Give reaction or reply to this topic to see the hidden content.
(pingfaker.sma - 13.1 KB)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×