[+] Improved and simplified GetWeaponNameByHash Function in WeaponManager
This commit is contained in:
@@ -60,7 +60,7 @@ namespace ReallifeGamemode.Server.Events
|
||||
//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) + ")";
|
||||
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + Managers.WeaponManager.GetWeaponNameByHash((uint)killer.Weapons.GetHashCode()) + ")";
|
||||
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user