mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-03-10 00:22:31 +00:00
Update Events.cs
This commit is contained in:
@@ -334,6 +334,9 @@ public partial class CS2_SimpleAdmin
|
|||||||
});
|
});
|
||||||
}, CounterStrikeSharp.API.Modules.Timers.TimerFlags.STOP_ON_MAPCHANGE);
|
}, CounterStrikeSharp.API.Modules.Timers.TimerFlags.STOP_ON_MAPCHANGE);
|
||||||
|
|
||||||
|
|
||||||
|
AddTimer(2.0f, () =>
|
||||||
|
{
|
||||||
ConVar? botQuota = ConVar.Find("bot_quota");
|
ConVar? botQuota = ConVar.Find("bot_quota");
|
||||||
|
|
||||||
if (botQuota != null && botQuota.GetPrimitiveValue<int>() > 0)
|
if (botQuota != null && botQuota.GetPrimitiveValue<int>() > 0)
|
||||||
@@ -342,7 +345,7 @@ public partial class CS2_SimpleAdmin
|
|||||||
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.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.");
|
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]
|
||||||
|
|||||||
Reference in New Issue
Block a user