ZMarket: Only grab 'zmarket' name on CSGO.

CSS doesnt fuck up capitalization, unlike CSGO...
This commit is contained in:
zaCade 2019-03-09 13:54:06 +01:00
parent 10461e8ba4
commit 431b444e1f
3 changed files with 4 additions and 4 deletions

View File

@ -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))

View File

@ -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;

View File

@ -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));