- Removed message of checking server ip
- Fixed some commands
- Changed workshopmaps config
- Probably fixed votes (untested)  - let me know if not
- Minimum css version - 246
This commit is contained in:
Dawid Bepierszcz
2024-06-29 11:33:41 +02:00
parent cdd771511b
commit a395a7d9c8
9 changed files with 13 additions and 23 deletions

View File

@@ -207,7 +207,7 @@ namespace CS2_SimpleAdmin
public void SetHp(CCSPlayerController? caller, CCSPlayerController? player, int health, CommandInfo? command = null)
{
if (player != null && !player.IsBot && player.Connected == PlayerConnectedState.PlayerConnected)
if (player == null || !player.IsValid || player.IsHLTV)
return;
var callerName = caller == null ? "Console" : caller.PlayerName;