This commit is contained in:
@@ -426,21 +426,7 @@ namespace ReallifeGamemode.Server.Commands
|
||||
if (nearestCuffPlayer is null)
|
||||
return;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
[Command("wanted", "~m~Benutzung: ~s~/wa(nted) [Spieler] [Anzahl] [Grund]", Alias = "wa", GreedyArg = true)]
|
||||
|
||||
Reference in New Issue
Block a user