Code:
public Action Event_PlayerSpawn(Event event, const char[] name, bool dontBroadcast) {
if (g_GameState == GameState_WarmupWaitingForPlayers) {
int client = GetClientOfUserId(event.GetInt("userid"));
if (IsValidClient(client) && !IsFakeClient(client)) {
LogDebug("Try setting client %L to $16000", client);
SetEntProp(client, Prop_Send, "m_iAccount", 16000);
LogDebug("Set client %L to $16000", client);
}
}
}
For some reason, this SetEntProp call has been crashing my server on occasion for the past few weeks.
Has anyone seen this happen? It only seems to occur a few times out of hundreds of connections.
Edit: I had tried upgrading to the latest debug sourcemod and it's still happening on occasion.