add adminCMD /anim & add UserCMD /hub
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user