Hello Guys , i want to add Buy Message to Extra Weapons (when you buy fire, frost, light grenade, auto sniper, magnup etc.) but i have 1 problem with code , i want real name of weapon like in Extra Items Menu!
CODE:
PHP Code:
default:
{
if (itemid >= EXTRA_WEAPONS_STARTID && itemid <= EXTRAS_CUSTOM_STARTID-1) // Weapons
{
// Get weapon's id and name
static weaponid, wname[32]
ArrayGetString(g_extraweapon_items, itemid - EXTRA_WEAPONS_STARTID, wname, charsmax(wname))
weaponid = cs_weapon_name_to_id(wname)
zp_colored_print(0, "^x04[ZP]^x01 You bought^x04 %s^x01!", wname)
SCREEN: