ZMarket: Only grab 'zmarket' name on CSGO.
CSS doesnt fuck up capitalization, unlike CSGO...
This commit is contained in:
parent
10461e8ba4
commit
431b444e1f
|
@ -239,7 +239,7 @@ WeaponsMenuTypeWeapons(client)
|
|||
new weaponindex = GetArrayCell(arrayTypeWeapons, x);
|
||||
|
||||
// Get name of weapon.
|
||||
WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), true);
|
||||
WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), (g_Game == Game_CSGO));
|
||||
strcopy(display, sizeof(display), typeweapon);
|
||||
|
||||
if (RestrictIsWeaponRestricted(weaponindex))
|
||||
|
|
|
@ -471,7 +471,7 @@ stock WeaponsEntityToDisplay(const String:entityname[], String:display[], displa
|
|||
}
|
||||
|
||||
// The entity names match, so return display.
|
||||
WeaponsGetName(x, display, displaymaxlen, true);
|
||||
WeaponsGetName(x, display, displaymaxlen, (g_Game == Game_CSGO));
|
||||
|
||||
// Return the weapon index.
|
||||
return x;
|
||||
|
|
|
@ -610,7 +610,7 @@ ZMarketMenuLoadoutWeapons(client, WeaponsSlot:slot)
|
|||
if(wslot != slot)
|
||||
continue;
|
||||
|
||||
WeaponsGetName(weaponindex, weaponname, sizeof(weaponname), true);
|
||||
WeaponsGetName(weaponindex, weaponname, sizeof(weaponname), (g_Game == Game_CSGO));
|
||||
|
||||
// Get restricted status on the weapon.
|
||||
new bool:restricted = RestrictIsWeaponRestricted(weaponindex);
|
||||
|
@ -802,7 +802,7 @@ ZMarketMenuTypeWeapons(client)
|
|||
new weaponindex = GetArrayCell(arrayTypeWeapons, x);
|
||||
|
||||
// Get name of weapon.
|
||||
WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), true);
|
||||
WeaponsGetName(weaponindex, typeweapon, sizeof(typeweapon), (g_Game == Game_CSGO));
|
||||
|
||||
// Get entity name of weapon.
|
||||
WeaponsGetEntity(weaponindex, typeweaponentity, sizeof(typeweaponentity));
|
||||
|
|
Loading…
Reference in New Issue
Block a user