Test /Cuff [id]
This commit is contained in:
@@ -35,7 +35,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
#region Todo
|
||||
|
||||
[Command("cuff", "~m~Benutzung: ~s~/cuff [ID]")]
|
||||
public void CmdSncAnim(Player player, string nameOrId)
|
||||
public void CmdCuffTest(Player player, string nameOrId)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||
{
|
||||
@@ -47,9 +47,9 @@ namespace ReallifeGamemode.Server.Commands
|
||||
return;
|
||||
|
||||
float rad = player.Heading * MathF.PI / 180;
|
||||
Vector3 forward = new Vector3(player.Position.X + (1.2 * MathF.Sin(rad)), player.Position.Y + (1.2 * MathF.Cos(rad)), player.Position.Z);
|
||||
Vector3 forwardV3 = new Vector3(player.Position.X + (1.2 * MathF.Sin(rad)), player.Position.Y + (1.2 * MathF.Cos(rad)), player.Position.Z);
|
||||
|
||||
target.Position = forward;
|
||||
target.Position = forwardV3;
|
||||
|
||||
if (!target.HasAnimation("Cuffed"))
|
||||
{
|
||||
@@ -64,7 +64,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
}
|
||||
|
||||
[Command("syncanim", "~m~Benutzung: ~s~/syncanim [animName]")]
|
||||
public void CmdSncAnim(Player player, string animName = null)
|
||||
public void CmdSyncAnim(Player player, string animName = null)
|
||||
{
|
||||
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user