Update Events.cs
This commit is contained in:
parent
e401fe7c8b
commit
01ceb104c5
1 changed files with 9 additions and 6 deletions
15
Events.cs
15
Events.cs
|
|
@ -334,15 +334,18 @@ public partial class CS2_SimpleAdmin
|
||||||
});
|
});
|
||||||
}, CounterStrikeSharp.API.Modules.Timers.TimerFlags.STOP_ON_MAPCHANGE);
|
}, CounterStrikeSharp.API.Modules.Timers.TimerFlags.STOP_ON_MAPCHANGE);
|
||||||
|
|
||||||
ConVar? botQuota = ConVar.Find("bot_quota");
|
|
||||||
|
|
||||||
if (botQuota != null && botQuota.GetPrimitiveValue<int>() > 0)
|
AddTimer(2.0f, () =>
|
||||||
{
|
{
|
||||||
Logger.LogInformation("Due to bugs with bots (game bug), consider disabling bots by setting `bot_quota 0` in the gamemode config if your server crashes after a map change.");
|
ConVar? botQuota = ConVar.Find("bot_quota");
|
||||||
Logger.LogWarning("Due to bugs with bots (game bug), consider disabling bots by setting `bot_quota 0` in the gamemode config if your server crashes after a map change.");
|
|
||||||
Logger.LogCritical("Due to bugs with bots (game bug), consider disabling bots by setting `bot_quota 0` in the gamemode config if your server crashes after a map change.");
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (botQuota != null && botQuota.GetPrimitiveValue<int>() > 0)
|
||||||
|
{
|
||||||
|
Logger.LogInformation("Due to bugs with bots (game bug), consider disabling bots by setting `bot_quota 0` in the gamemode config if your server crashes after a map change.");
|
||||||
|
Logger.LogWarning("Due to bugs with bots (game bug), consider disabling bots by setting `bot_quota 0` in the gamemode config if your server crashes after a map change.");
|
||||||
|
Logger.LogCritical("Due to bugs with bots (game bug), consider disabling bots by setting `bot_quota 0` in the gamemode config if your server crashes after a map change.");
|
||||||
|
}
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
[GameEventHandler]
|
[GameEventHandler]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue