PHP Code:
new const g_IconNames[31][] =
{
"",
"p228",
"", // shield
"scout",
"hegrenade",
"xm1014",
"", // c4
"mac10",
"aug",
"smokegrenade",
"elites",
"fiveseven",
"ump45",
"sg550",
"galil",
"famas",
"usp45",
"glock18",
"awp",
"mp5",
"m249",
"m3",
"m4a1",
"tmp",
"g3sg1",
"flashbang",
"deagle",
"sg552",
"ak47",
"not_available", // knife
"p90"
}
enum _:DeadData
{
g_KilledBy,
g_KilledWeap,
g_KilledTime
}
On client death:
g_StoredInfo[victim][g_KilledWeap] = get_user_weapon(killer)
When I kill with glock,
g_StoredInfo[victim][g_KilledWeap] shows 18 which is right, but when I do
g_IconNames[g_StoredInfo[victim][g_KilledWeap]] it shows me 103 but it should show me the string which is glock18, right? What I'm doing wrong? :/
__________________