private void SetHealth(Client client, short health) { if (health > 20) { health = 20; } client.SendPacket(new UpdateHealthPacket { Health = health }); }
private static void ChangeGameMode(Client client, int mode) { client.SendPacket(new NewInvalidStatePacket { GameMode = client.Owner.GameMode = Convert.ToByte(mode), Reason = NewInvalidStatePacket.NewInvalidReason.ChangeGameMode }); }