Add /freekh, /arevive, Chat on Death, fix DeathAdminMsg

This commit is contained in:
xSprite
2018-10-22 00:16:34 +02:00
parent 78f4919e12
commit d6e3d90127
4 changed files with 64 additions and 5 deletions

View File

@@ -49,8 +49,11 @@ namespace reallife_gamemode.Server.Events
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);
if(player != killer)
{
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())