fix clothes/props command help
This commit is contained in:
@@ -834,7 +834,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
ChatService.SendMessage(player, "~b~Du hast die HP von " + target.Name + " auf " + hp + " gesetzt.");
|
ChatService.SendMessage(player, "~b~Du hast die HP von " + target.Name + " auf " + hp + " gesetzt.");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("clothes", "~m~Benutzung: ~s~/clothes [Spieler] [Slot] [Component ID] (Textur)")]
|
[Command("clothes", "~m~Benutzung: ~s~/clothes [Spieler] [Component ID] [Drawable] (Textur)")]
|
||||||
public void CmdAdminClothes(Client player, string name, int slot, int component, int texture = 0)
|
public void CmdAdminClothes(Client player, string name, int slot, int component, int texture = 0)
|
||||||
{
|
{
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true)
|
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true)
|
||||||
@@ -853,7 +853,7 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
target.SetClothes(slot, component, texture);
|
target.SetClothes(slot, component, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("props", "~m~Benutzung: ~s~/props [Spieler] [Slot] [Component ID] (Textur)")]
|
[Command("props", "~m~Benutzung: ~s~/props [Spieler] [Component ID] [Drawable] (Textur)")]
|
||||||
public void CmdAdminProps(Client player, string name, int slot, int component, int texture = 0)
|
public void CmdAdminProps(Client player, string name, int slot, int component, int texture = 0)
|
||||||
{
|
{
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true)
|
if (!player.GetUser()?.IsAdmin(AdminLevel.ADMIN2) ?? true)
|
||||||
@@ -869,6 +869,11 @@ namespace ReallifeGamemode.Server.Commands
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(component == -1)
|
||||||
|
{
|
||||||
|
target.ClearAccessory(slot);
|
||||||
|
return;
|
||||||
|
}
|
||||||
target.SetAccessories(slot, component, texture);
|
target.SetAccessories(slot, component, texture);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user