new updated by madness fixing so only the client lags and nobody else

This commit is contained in:
jenz
2022-03-13 11:43:04 +01:00
parent 2e25e066ed
commit 1f6abdff6f
4 changed files with 73 additions and 103 deletions
+27
View File
@@ -0,0 +1,27 @@
#pragma semicolon 1
#define PLUGIN_AUTHOR "null138"
#define PLUGIN_VERSION "3.00"
#include <sourcemod>
#pragma newdecls required
public Plugin myinfo =
{
name = "RPT Exploit Fixer",
author = PLUGIN_AUTHOR,
description = "Fixes latest RPT server exploit on linux",
version = PLUGIN_VERSION,
url = "https://steamcommunity.com/id/null138/"
}
public void OnPluginStart()
{
Address aRptServerEnabl = GameConfGetAddress(LoadGameConfigFile("rptfixaddrs.css"), "aRptServerEnabl_ptr");
Address aRptClientEnabl = GameConfGetAddress(LoadGameConfigFile("rptfixaddrs.css"), "aRptClientEnabl_ptr");
if (aRptServerEnabl)
StoreToAddress(aRptServerEnabl, 0x0, NumberType_Int8);
if (aRptClientEnabl)
StoreToAddress(aRptClientEnabl, 0x0, NumberType_Int8);
}