/cuff Command (not tested)
This commit is contained in:
@@ -22,6 +22,11 @@ namespace ReallifeGamemode.Server.Util
|
||||
player.SetSharedData("AnimationData", newAnimation);
|
||||
}
|
||||
|
||||
public static bool HasAnimation(this Player player, string animationName)
|
||||
{
|
||||
return player.HasData("Animation") && (player.GetData<string>("AnimationData") == animationName);
|
||||
}
|
||||
|
||||
public static void ClearAnimation(this Player player)
|
||||
{
|
||||
if (!player.HasData("Animation"))
|
||||
|
||||
Reference in New Issue
Block a user