diff --git a/ReallifeGamemode.Server/Managers/InteractionManager.cs b/ReallifeGamemode.Server/Managers/InteractionManager.cs index ac26a282..0a21293a 100644 --- a/ReallifeGamemode.Server/Managers/InteractionManager.cs +++ b/ReallifeGamemode.Server/Managers/InteractionManager.cs @@ -447,6 +447,9 @@ namespace ReallifeGamemode.Server.Managers Player target = PlayerService.GetPlayerByNameOrId(nameOrId); string playername = NAPI.Player.GetPlayerName(player); string targetname = NAPI.Player.GetPlayerName(target); + + List nearPlayers = NAPI.Player.GetPlayersInRadiusOfPlayer(10, player); + if (target == null || !target.IsLoggedIn()) { ChatService.PlayerNotFound(player); @@ -456,6 +459,10 @@ namespace ReallifeGamemode.Server.Managers { player.SendNotification("~r~Du kannst dir selbst kein Ticket geben!"); } + else if (!nearPlayers.Contains(target)) + { + player.SendNotification("~r~Der Spieler ist nicht in deiner Nähe!"); + } else { if (amount > 0 && amount <= 10000)