fix
This commit is contained in:
@@ -57,10 +57,8 @@ namespace ReallifeGamemode.Server.Events
|
|||||||
if (player != killer)
|
if (player != killer)
|
||||||
{
|
{
|
||||||
Autowanted.Check_AutoWanted(killer, player);
|
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();
|
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + Managers.WeaponManager.GetWeaponNameByHash((uint)NAPI.Player.GetPlayerCurrentWeapon(killer)) + ")";
|
||||||
ChatService.Broadcast("test: " + weaponHash);
|
|
||||||
string message = "~y~[HINWEIS]: " + killer.Name + " hat " + player.Name + " getötet (" + Managers.WeaponManager.GetWeaponNameByHash((uint)killer.Weapons.GetHashCode()) + ")";
|
|
||||||
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
|
ChatService.BroadcastAdmin(message, AdminLevel.ADMIN);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -124,7 +124,7 @@ namespace ReallifeGamemode.Server.Managers
|
|||||||
if (!IsValidHash(hash))
|
if (!IsValidHash(hash))
|
||||||
return "unbekannt";
|
return "unbekannt";
|
||||||
|
|
||||||
foreach (var w in _modWeapons)
|
foreach (string w in _modWeapons)
|
||||||
{
|
{
|
||||||
if(NAPI.Util.GetHashKey(w) == hash)
|
if(NAPI.Util.GetHashKey(w) == hash)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user