Code formatiert
This commit is contained in:
@@ -15,18 +15,18 @@ namespace ReallifeGamemode.Server.Wanted
|
||||
User killer = killerPlayer.GetUser();
|
||||
if (killer.FactionId == 1 || killer.FactionId == 3)
|
||||
return;
|
||||
|
||||
User cop = copPlayer.GetUser();
|
||||
if(cop.FactionId == 1 || cop.FactionId == 3)
|
||||
|
||||
User cop = copPlayer.GetUser();
|
||||
if (cop.FactionId == 1 || cop.FactionId == 3)
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
using (var dbContext = new DatabaseContext())
|
||||
{
|
||||
killer = killerPlayer.GetUser(dbContext);
|
||||
killer.GiveWanteds(copPlayer, 10, "Beamten-Mord");
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
killer = killerPlayer.GetUser(dbContext);
|
||||
killer.GiveWanteds(copPlayer, 10, "Beamten-Mord");
|
||||
dbContext.SaveChanges();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user