This is for TF2, I have a plugin that i'm making to check the respawnwavetime for each team on round start and on player death (and change it if some conditions are met). Every now and then (usually once a day) I get a server crash from it, it looks like its always on round start.
I have an accelerator log if helps:
https://crash.limetech.org/f5nlq5veivgn
Example of what im trying to do.
Code:
#define OWAVE 6.0
public void Event_Round_Start(Event event, const char[] name, bool dontBroadcast)
{
if (changeplayerspawntime) {
float RedTime = Get_Time(2);
float BlueTime = Get_Time(3);
Set_Time(2, OWAVE + RedTime);
Set_Time(3, OWAVE + BlueTime);
}
}
public void Set_Time(int team, float wave)
{
GameRules_SetPropFloat("m_TeamRespawnWaveTimes", wave, team, true);
}
stock float Get_Time(int team)
{
return GameRules_GetPropFloat("m_TeamRespawnWaveTimes", team);
}