add tog ip, deathlogs,lc

This commit is contained in:
michael.reiswich
2021-03-24 17:40:42 +01:00
parent d80b58551a
commit 45ce80c139
4 changed files with 60 additions and 6 deletions

View File

@@ -62,8 +62,10 @@ namespace ReallifeGamemode.Server.Events
player.TriggerEvent("SERVER:Login_ShowBrowser", registered, disableLightMode);
string msg = "~m~*** " + player.Name + " [" + player.SocialClubName + "] [ID: " + player.Handle.Value + "] (" + player.Address + ")";
ChatService.BroadcastAdmin(msg, AdminLevel.ADMIN);
if(player.HasData("togip"))
{
ChatService.SendMessage(player, msg);
}
}
private bool IsPlayerBanned(Player player)

View File

@@ -41,13 +41,14 @@ namespace ReallifeGamemode.Server.Events
userisdead.Dead = true;
userDeath.SaveChanges();
}
//TODO: Zum Full Release entfernen
if (player.HasData("togdeath")) {
ChatService.SendMessage(player, "Du bist durch " + (killer?.Name ?? "Niemanden") + " gestorben: " + reason.ToString());
}
int? killerId;
float killerPosX;
float killerPosY;