fix FakePopulation userinfo

This commit is contained in:
BotoX 2019-10-04 13:27:14 +02:00
parent 69f2867c95
commit 66088cf6c1

View File

@ -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);
}
//----------------------------------------------------------------------------------------------------