FakePopulation: get rid of userstringtable
This commit is contained in:
parent
5ebe3f2fec
commit
d5d94de662
@ -14,7 +14,6 @@ int g_iBaseLatency[MAXPLAYERS + 1];
|
|||||||
int g_iLatency[MAXPLAYERS + 1];
|
int g_iLatency[MAXPLAYERS + 1];
|
||||||
int g_iAdminFakes;
|
int g_iAdminFakes;
|
||||||
bool g_bCheckRequested;
|
bool g_bCheckRequested;
|
||||||
//int g_iUserInfoStringTable;
|
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
// Purpose:
|
// Purpose:
|
||||||
@ -42,8 +41,6 @@ public void OnPluginStart()
|
|||||||
CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT);
|
CreateTimer(3.0, RandomizePing, _, TIMER_REPEAT);
|
||||||
|
|
||||||
RequestFrame(CheckPopulation);
|
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:
|
// Purpose:
|
||||||
//----------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------
|
||||||
|
Loading…
Reference in New Issue
Block a user