AdminDuty Try

This commit is contained in:
Mac_Slash
2020-04-21 14:59:49 +02:00
parent e98150e4c4
commit f5a40c67b5
3 changed files with 32 additions and 10 deletions

View File

@@ -70,6 +70,11 @@ namespace ReallifeGamemode.Server.Extensions
var user = player.GetUser();
return user.GetData("duty", false);
}
public static bool IsAdminDuty(this Player player)
{
var user = player.GetUser();
return user.GetData("Adminduty", false);
}
public static Vector3 GetPositionFromPlayer(Player player, float distance, int offset = 0)
{
var pos = player.Position;