try fix
This commit is contained in:
@@ -121,16 +121,22 @@ namespace ReallifeGamemode.Server.Managers
|
||||
|
||||
public static String GetWeaponNameByHash(uint hash)
|
||||
{
|
||||
if (!IsValidHash(hash))
|
||||
return "unbekannt";
|
||||
|
||||
foreach (string w in _modWeapons)
|
||||
foreach (WeaponHash vh in Enum.GetValues(typeof(WeaponHash)))
|
||||
{
|
||||
if(NAPI.Util.GetHashKey(w) == hash)
|
||||
if ((uint)vh == hash)
|
||||
{
|
||||
return w;
|
||||
foreach (string w in _modWeapons)
|
||||
{
|
||||
if (NAPI.Util.GetHashKey(w) == hash)
|
||||
{
|
||||
return w;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
return "unbekannt";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user