test
This commit is contained in:
@@ -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.");
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user