Added /vmod Command (Mod Vehicles by command)
This commit is contained in:
@@ -24,6 +24,25 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
{
|
{
|
||||||
public class Admin : Script
|
public class Admin : Script
|
||||||
{
|
{
|
||||||
|
[Command("vmod", "~m~Benutzung: ~s~/vmod [Slot] [Mod ID]")]
|
||||||
|
public void CmdAdminVmod(Client player, int slot, int mod)
|
||||||
|
{
|
||||||
|
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||||
|
{
|
||||||
|
ChatService.NotAuthorized(player);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!player.IsInVehicle)
|
||||||
|
{
|
||||||
|
player.SendChatMessage("~r~[FEHLER]~s~ Du sitzt momentan nicht in einem Fahrzeug.");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (mod == -1) player.Vehicle.RemoveMod(slot);
|
||||||
|
else player.Vehicle.SetMod(slot, mod);
|
||||||
|
}
|
||||||
|
|
||||||
[Command("clothes", "~m~Benutzung: ~s~/clothes [Slot] [Component ID] (Textur)")]
|
[Command("clothes", "~m~Benutzung: ~s~/clothes [Slot] [Component ID] (Textur)")]
|
||||||
public void CmdAdminClothes(Client player, int slot, int component, int texture = 0)
|
public void CmdAdminClothes(Client player, int slot, int component, int texture = 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user