@@ -344,5 +344,22 @@ namespace ReallifeGamemode.Server.Extensions
|
||||
PositionManager.cuffPoints.Remove(nearestCuffPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
public static void ToggleSurrender(this Player player)
|
||||
{
|
||||
if (player.HasAnimation("hup"))
|
||||
{
|
||||
PositionManager.cuffPoints.Remove(player);
|
||||
player.ClearAnimation();
|
||||
return;
|
||||
}
|
||||
if (player.HasAnimation())
|
||||
return;
|
||||
|
||||
player.SyncAnimation("hup");
|
||||
|
||||
if (player.GetUser().Wanteds > 0)
|
||||
PositionManager.cuffPoints.Add(player);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user