FakePopulation: get rid of userstringtable

This commit is contained in:
Dogan 2019-11-03 22:31:59 +01:00
parent 5ebe3f2fec
commit d5d94de662

View File

@ -14,7 +14,6 @@ int g_iBaseLatency[MAXPLAYERS + 1];
int g_iLatency[MAXPLAYERS + 1];
int g_iAdminFakes;
bool g_bCheckRequested;
//int g_iUserInfoStringTable;
//----------------------------------------------------------------------------------------------------
// Purpose:
@ -42,8 +41,6 @@ public void OnPluginStart()
CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT);
RequestFrame(CheckPopulation);
//g_iUserInfoStringTable = FindStringTable("userinfo");
}
//----------------------------------------------------------------------------------------------------
@ -203,25 +200,6 @@ public void OnClientDisconnect(int client)
}
}
/*public void OnClientSettingsChanged(int client)
{
if(!g_bFakePopulation[client])
return;
int len = GetStringTableDataLength(g_iUserInfoStringTable, client - 1);
char[] aData = new char[len];
if(len < 106)
return;
GetStringTableData(g_iUserInfoStringTable, client - 1, aData, len);
// bool fakeplayer;
aData[105] = 0;
SetStringTableData(g_iUserInfoStringTable, client - 1, aData, len);
}*/
//----------------------------------------------------------------------------------------------------
// Purpose:
//----------------------------------------------------------------------------------------------------