fix FakePopulation userinfo
This commit is contained in:
parent
69f2867c95
commit
66088cf6c1
@ -175,15 +175,18 @@ public void OnClientSettingsChanged(int client)
|
||||
if(!g_bFakePopulation[client])
|
||||
return;
|
||||
|
||||
int len = GetStringTableDataLength(g_iUserInfoStringTable, client);
|
||||
int len = GetStringTableDataLength(g_iUserInfoStringTable, client - 1);
|
||||
char[] aData = new char[len];
|
||||
|
||||
GetStringTableData(g_iUserInfoStringTable, client, aData, len);
|
||||
if(len < 106)
|
||||
return;
|
||||
|
||||
GetStringTableData(g_iUserInfoStringTable, client - 1, aData, len);
|
||||
|
||||
// bool fakeplayer;
|
||||
aData[105] = 0;
|
||||
|
||||
SetStringTableData(g_iUserInfoStringTable, client, aData, len);
|
||||
SetStringTableData(g_iUserInfoStringTable, client - 1, aData, len);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user