I was just under the assumption that get_weaponname( ) would return the "weapon_name". But, I'm not sure.
As for the const thing I was talking about earlier, I would just do something like this:
PHP Code:
new const gszWeaponNames[][] =
{
"p228",
"",
"scout",
"grenade",
"xm1014",
"C4",
"mac10",
"aug",
"",
"dual elites",
"fiveseven",
"ump45"
"sg550",
"galil",
"famas",
"usp",
"glock",
"awp",
"mp5",
"m249",
"m3",
"m4a1",
"tmp",
"g3sg1",
"",
"deagle",
"sg552",
"ak-47",
"knife",
"p90"
}
^If wrecked's version doesn't work. Then, do use a weapon, just do gszWeaponNames[wepid].