function hash to weaponname

This commit is contained in:
2019-12-13 00:05:18 +01:00
parent 87baaa6dc9
commit 3589311c6f
2 changed files with 26 additions and 1 deletions

View File

@@ -57,7 +57,10 @@ 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 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(weaponHash) + ")";
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
}
}