From 31cf6c5acec6a0d78924d92101cd0fa02e378dbc Mon Sep 17 00:00:00 2001 From: Lukas Moungos Date: Fri, 19 Jul 2019 19:37:17 +0200 Subject: [PATCH] Fix : Cops can't get wanteds from colleagues --- ReallifeGamemode.Server/Commands/FactionCommands.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ReallifeGamemode.Server/Commands/FactionCommands.cs b/ReallifeGamemode.Server/Commands/FactionCommands.cs index 7e9a10d9..7d0b1950 100644 --- a/ReallifeGamemode.Server/Commands/FactionCommands.cs +++ b/ReallifeGamemode.Server/Commands/FactionCommands.cs @@ -208,6 +208,12 @@ namespace ReallifeGamemode.Server.Commands return; } + User targetCop = target.GetUser(); + if(targetCop.FactionId == 1 || targetCop.FactionId == 2) + { + ChatService.ErrorMessage(player, "Du kannst dieser Person keine Wanteds geben."); + return; + } User targetUser = target.GetUser(); targetUser.GiveWanteds(player, amount, reason); }