public static void EnemyHit(int fromClient, Packet packet) { if (!Server.IsRoundStarted()) { return; } int playerId = packet.ReadInt(); Server.clients[playerId].player.SetHealth(fromClient); Console.WriteLine($"{playerId} was hit by player {fromClient}."); Server.clients[fromClient].SendHitIntoGame(playerId); if (Server.clients[playerId].player.IsDead()) { ServerSend.KillCountUpdate(fromClient); } }