Added Clothes and Player Props

This commit is contained in:
hydrant
2018-10-14 23:04:08 +02:00
parent eaebb81d37
commit e1e3caaf6b

View File

@@ -24,6 +24,30 @@ namespace reallife_gamemode.Server.Commands
{
public class Admin : Script
{
[Command("clothes", "~m~Benutzung: ~s~/clothes [Slot] [Component ID]")]
public void CmdAdminClothes(Client player, int slot, int component)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
player.SetClothes(slot, component, 0);
}
[Command("props", "~m~Benutzung: ~s~/props [Slot] [Component ID]")]
public void CmdAdminProps(Client player, int slot, int component)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
player.SetAccessories(slot, component, 0);
}
[Command("o", "~m~Benutzung: ~s~/o [Nachricht]", GreedyArg = true)]
public void CmdAdminO(Client player, string message)
{