This commit is contained in:
Lukas Moungos
2019-12-13 19:24:08 +01:00
parent 85b052b729
commit efdf94dd8a
2 changed files with 3 additions and 5 deletions

View File

@@ -57,10 +57,8 @@ namespace ReallifeGamemode.Server.Events
if (player != killer)
{
Autowanted.Check_AutoWanted(killer, player);
//string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + NAPI.Player.GetPlayerCurrentWeapon(killer) + ")";
string weaponHash = NAPI.Player.GetPlayerCurrentWeapon(killer).ToString();
ChatService.Broadcast("test: " + weaponHash);
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + Managers.WeaponManager.GetWeaponNameByHash((uint)killer.Weapons.GetHashCode()) + ")";
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + Managers.WeaponManager.GetWeaponNameByHash((uint)NAPI.Player.GetPlayerCurrentWeapon(killer)) + ")";
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
}
}