This commit is contained in:
2021-04-06 18:48:18 +02:00
parent 2b92e7134f
commit 4654638d9e
4 changed files with 6 additions and 27 deletions

View File

@@ -46,27 +46,10 @@ namespace ReallifeGamemode.Server.Commands
if (target.Id == player.Id)
return;
Vector3 front = player.GetInFrontOfPosition();
//front.Z = player.Position.Z;
target.Position = front;
target.SetInFrontOf(player);
target.Heading = player.Heading;
}
[Command("test_cuff2")]
public void TestCuff2(Player player, string nameOrId)
{
if (!player.GetUser()?.IsAdmin(AdminLevel.SUPPORTER) ?? true)
{
ChatService.NotAuthorized(player);
return;
}
Player target = PlayerService.GetPlayerByNameOrId(nameOrId);
if (target.Id == player.Id)
return;
target.TriggerEvent("SERVER:GetInFrontOfPlayer", player);
}
[Command("cuff", "~m~Benutzung: ~s~/cuff [ID]")]
public void CmdCuffTest(Player player, string nameOrId)
{