Added Clothes and Player Props
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user