add adminCMD /anim & add UserCMD /hub

This commit is contained in:
michael.reiswich
2021-03-24 22:53:36 +01:00
parent 41b0cf0ac0
commit c0120bfbf5
12 changed files with 36 additions and 11 deletions

View File

@@ -81,6 +81,17 @@ namespace ReallifeGamemode.Server.Commands
{
player.TriggerEvent("showUserhelp");
}
[Command("hub")]
public void CmdAnim(Player player)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
player.PlayAnimation("mp_am_hold_up", "handsup_base", (int)(AnimationFlags.Loop | AnimationFlags.OnlyAnimateUpperBody | AnimationFlags.AllowPlayerControl | AnimationFlags.Cancellable));
}
}
}