This commit is contained in:
@@ -510,21 +510,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
}
|
||||
if (nearestCuffPlayer != null)
|
||||
{
|
||||
nearestCuffPlayer.SetInFrontOf(player);
|
||||
nearestCuffPlayer.Heading = player.Heading;
|
||||
|
||||
if (!nearestCuffPlayer.HasAnimation("Cuffed"))
|
||||
{
|
||||
player.SyncAnimation("doArrest");
|
||||
nearestCuffPlayer.SyncAnimation(new List<string>() { "getArrest", "Cuffed" });
|
||||
player.AddAttachment("handcuffs", false);
|
||||
}
|
||||
else
|
||||
{
|
||||
player.AddAttachment("handcuffs", true);
|
||||
player.SyncAnimation("doUncuff");
|
||||
nearestCuffPlayer.SyncAnimation("getUncuff");
|
||||
}
|
||||
player.CuffPlayer(nearestCuffPlayer);
|
||||
}
|
||||
}
|
||||
if (nearestElevatorPoint != null)
|
||||
|
||||
Reference in New Issue
Block a user