Removed setskin command
This commit is contained in:
@@ -941,28 +941,6 @@ namespace reallife_gamemode.Server.Commands
|
|||||||
NAPI.Data.SetWorldData("blipTemplate", newTempBlip);
|
NAPI.Data.SetWorldData("blipTemplate", newTempBlip);
|
||||||
}
|
}
|
||||||
|
|
||||||
[Command("setskin", "~m~Benutzung: ~s~/setskin [Spieler] [Skin]")]
|
|
||||||
public void CmdAdminSetSkin(Client player, string name, string Skin)
|
|
||||||
{
|
|
||||||
if (!player.GetUser()?.IsAdmin(AdminLevel.HEADADMIN) ?? true)
|
|
||||||
{
|
|
||||||
ChatService.NotAuthorized(player);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Client target = ClientService.GetClientByNameOrId(name);
|
|
||||||
if (target == null || !target.IsLoggedIn())
|
|
||||||
{
|
|
||||||
ChatService.PlayerNotFound(player);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
var skin = NAPI.Util.PedNameToModel(Skin);
|
|
||||||
target.SendChatMessage("~b~Dein Skin wurde von " + player.Name + " zu " + skin + " gesetzt.");
|
|
||||||
player.SendChatMessage("~b~Du hast den Skin von " + target.Name + " zu " + skin + " gesetzt.");
|
|
||||||
target.SetSkin(skin);
|
|
||||||
}
|
|
||||||
|
|
||||||
[Command("vmod", "~m~Benutzung: ~s~/vmod [Slot] [Mod ID]")]
|
[Command("vmod", "~m~Benutzung: ~s~/vmod [Slot] [Mod ID]")]
|
||||||
public void CmdAdminVmod(Client player, int slot, int mod)
|
public void CmdAdminVmod(Client player, int slot, int mod)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user