This commit is contained in:
xSprite
2018-10-21 05:57:13 +02:00
parent 780e602a76
commit 14e5aef46e
2 changed files with 11 additions and 11 deletions

View File

@@ -581,7 +581,6 @@ namespace reallife_gamemode.Server.Commands
if (f == null && faction != 0)
{
player.SendChatMessage("~r~[FEHLER]~s~ Diese Fraktion existiert nicht (Liste: ~m~/factionlist).");
CmdAdminFactionlist(player);
return;
}
@@ -1281,7 +1280,7 @@ namespace reallife_gamemode.Server.Commands
using (var dbContext = new DatabaseContext())
{
target.GetUser().GetUserBankAccount(dbContext).Balance =+ amount;
amount = +target.GetUser().GetUserBankAccount(dbContext).Balance;
dbContext.SaveChanges();
}
player.SendChatMessage("~b~[ADMIN]~s~ Du hast " + target.Name + " ~g~$" + amount + "~s~ gegeben.");

View File

@@ -25,9 +25,6 @@ namespace reallife_gamemode.Server.Events
//TODO: Zum Full Release entfernen
NAPI.Chat.SendChatMessageToPlayer(player, "Du bist durch " + killer.Name + " gestorben: " + reason.ToString());
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet.("+NAPI.Player.GetPlayerCurrentWeapon(killer)+")";
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
int? killerId;
float killerPosX;
float killerPosY;
@@ -41,12 +38,16 @@ namespace reallife_gamemode.Server.Events
killerPosY = -1;
killerPosZ = -1;
killerHeading = -1;
} else {
}
else
{
killerId = killer.GetUser().Id;
killerPosX = killer.Position.X;
killerPosY = killer.Position.Y;
killerPosZ = killer.Position.Z;
killerHeading = killer.Heading;
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + NAPI.Player.GetPlayerCurrentWeapon(killer) + ")";
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
}
using (var userDeath = new DatabaseContext())