Fix : Cops can't get wanteds from colleagues

This commit is contained in:
Lukas Moungos
2019-07-19 19:37:17 +02:00
parent dba6299f75
commit 31cf6c5ace

View File

@@ -208,6 +208,12 @@ namespace ReallifeGamemode.Server.Commands
return; 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(); User targetUser = target.GetUser();
targetUser.GiveWanteds(player, amount, reason); targetUser.GiveWanteds(player, amount, reason);
} }