Sadeal CS2HvHUtilities (1.5.1)
If you use this plugin, you do NOT need RapidFireFix, TeleportFix and WeaponResctrict anymore.
This CS2HvHUtilities plugin is the only plugin you need to run a successful HvH server. It includes basic features like money fix, reset score, reset death as well as optional restrictions or allowence for weapons, rapid fire meta/sm/cssharp commands and other exploit/crash fixes.
- Reset score
!rs - Reset death
!rd - Restrict weapons (awp, scout, autosniper)
- Money fix for newly joined player
- Insta defuse if condition are met
- AWP bullets changer (5-30)
- Restrict ghost exploit
- Restrict rapid fire (0 allows rapid fire, 1 blocks rapid fire from registering shot, 2-4 enables server RapidFire)
- Restrict players from access MetaMod, CSSharp and SM commands in console (even while connecting).
- Linux only: Restrict teleport/airstuck/fake-pitch exploits (enabling this will also prevent the server crash exploit)
- Install Metamod:Source and CounterStrikeSharp
- Place the
addonsfolder in your serversgame/csgo/directory
- Edit the config file to your liking
3.1. Located ataddons/counterstrikesharp/configs/plugins/CS2HvHUtilities/CS2HvHUtilities.json - Restart your server
{
"RapidFireFixMethod": 1, // 0 - allow doubletap, 1 - restrict doubletap, 2-4 - rapidfire feature
"RapidFirePrintMessage": false, // true - will print message to all that someone using doubletap, false - not
"RapidFireReflectScale": 1, // 0-1 - scale for second bullet of doubletap (0 - 0%, 1 - 100%)
"FixMoneyOnJoin": true, // if cvar mp_afterroundmoney is set to 0 and you have pistol rounds - this will fix that someone joining server and have 800 instead of 16000
"AllowedAwpCount": -1, // -1 - allow all awp, 0 - awp not allowed, 1 - 1 to each team, 2....
"AllowedScoutCount": -1, // -1 - allow all ssg - ssg not allowed, 1 - 1 to each team, 2....
"AllowedAutoSniperCount": -1, // -1 - allow all autos, 0 - autos not allowed, 1 - 1 to each team, 2....
"AllowAllWeaponsOnWarmup": true, // removes restriction on warmup period for everyone
"AllowWeaponsForFlag": "@css/restrict", // flag that ignore weapon restrictions
"AllowedOnlyWeapons": "", // list of weapons that ONLY allowed. "weapon_ssg08" - will allow only ssg08, not AK, not AWP and etc. (pistols, nades etc always accessable)
"AwpBullets": 10, // amount of AWP clip max bullets
"InstantDefuse": true, // insta defuse feature if condition are met
"RestrictTeleport": true, // true - restrict teleport, fakepitch, crash
"TeleportPrintMessage": false, // will print in chat if someone using exploit
"RestrictGhost": true, // will restrict ghost exploit
"AllowAdPrint": false, // my ad
"AdvertiseBlockerName": true, // will block AD names (neverlose.cc, market/, funpay, ...)
"AdvertiseBlockerChat": true, // will block AD in chat
"AllowSettingsPrint": true, // will print current server settings (for this plugin) in chat
"AllowResetScore": true, // allow !rs
"ShowResetScorePrint": true, // will show in chat to all that someone !rs
"AllowResetDeath": 0, // 0 - not allowed, 1 - allowed !rd for ResetDeathFlag only, 2 - allow !rd to all
"ResetDeathFlag": "@css/general", // flag for !rd
"ShowResetDeathPrint": false, // will print message to all that someone !rd
"RestrictMetaCommands": true, // restrict anyone except @css/root to type "meta", "css_plugins" etc to game console and get result
"ChatPrefix": "[{Red}Utils{Default}]", // chat prefix for !rs, resticts and etc for this plugin
"CustomPhrasesSettings": {
"AdvertiseBlockerMessage": "Advertisement is prohibited!",
"AdvertiseNameChangeTo": "[Player1],[Player2],[Player3]",
"ResetScorePhrase": "Player {Orange}{PlayerName}{Grey} has reset their stats!",
"ResetScoreAlreadyPhrase": "Your stats are already 0.",
"ResetDeathPhrase": "Player {Orange}{PlayerName}{Grey} has reset their deaths!",
"ResetDeathAlreadyPhrase": "Your deaths are already 0.",
"RapidFirePhrase": "Player {Orange}{PlayerName}{Grey} tried using {Orange}double tap{Grey}!",
"TeleportPhrase": "Player {Orange}{PlayerName}{Grey} tried using {Orange}Teleport{Grey}!",
"WeaponRestrictPhrase": "{Orange}{WeaponName}{Grey} is restricted to {Orange}{RestrictAmount}{Grey} per team!",
"ServerRules": "Server rules: ",
"GrenadesFF": "Grenades only friendly fire: ",
"TeleportFP": "Teleport/FakePitch: ",
"RapidDT": "RapidFire/DoubleTap: ",
"Method": "Method:",
"MethodIgnore": "Method: {Orange}blocking shot registration",
"MethodRapid": "Method: {Orange}enabling server-side RapidFire",
"WeaponResctriction": "Weapon restriction: ",
"WeaponResctrictionPerTeam": "per team.",
"HelpMessage": "Type {Orange}!rules{Grey} to see these settings again"
},
"ConfigVersion": 11 // not to change
}Instead of editing the config file, you can also use the following ConVars to change certain settings on the fly. These changes will NOT be saved to th+e config file and will be reset after a server restart.
hvh_restrict_rapidfire0 allows rapid fire, 1 blocks rapid fire, 2 reflects damage scaled, 3 reflects damage but keeps the player alivehvh_rapidfire_reflect_scaledamage reflect percentage, 0.0 - 1.0hvh_rapidfire_print_messageif true, then all players will see in chat if someone using rapidfire (shows only when reflect type selected)hvh_money_fixif true, player that join in any round (except pistol, both halfs) will be given {mp_maxmoney}hvh_restrict_teleportif true, the teleport and airstuck exploit will be restricted. This will also prevent the server crash exploithvh_teleport_print_messageif true, then all players will see in chat if someone using teleport/airstuck/fakepitch exploitshvh_restrict_awphow many awps are allowed per team, 0 for none, -1 for unlimitedhvh_restrict_scouthow many scouts are allowed per team, 0 for none, -1 for unlimitedhvh_restrict_autohow many auto snipers are allowed per team, 0 for none, -1 for unlimitedhvh_allow_only_weaponswhich weapons will be only allowed (not includes pistols, utilities etc.). For example: "weapon_ssg08,weapon_scar20,weapon_g3sg1"hvh_utilities_friendlyfireif true, only utility damage will be dealt to teammateshvh_resetscore 0/1if true, players will be able to reset their score with!rshvh_resetdeath 0/1/20 - off, 1 - admin only, 2 - everyonehvh_restrict_meta_commands- if true then nobody unless @css/root will access meta/css_plugins/sm commands
You can use all available colors from CounterStrikeSharp in the chat prefix.
If you have iksAdmin installed you have to specialize word defenition to a custom flag that you typed in config
For example:
...
"p": {
"@css/restrict"
}
...- Press "Load Default Config"
- Paste your previous version config to "Your Current Config"
- Press "Merge results"
- Copy or edit results in "Merged Configuration" window
- HvH.gg - plugin code base
- EXHVH - servers for testing
- Metamod:Source
- CounterStrikeSharp
- MagicBulletFix
- RapidFireFix
- MetaCommandsBlocker
Discord: Sadeal_Dev
