You can use TFEconData by the very talented nosoop to get an item name. It allows you to input an item index and it will return an item name. Here's a link:
https://github.com/nosoop/SM-TFEconData
partial code example:
PHP Code:
char itemname[64];
TF2Econ_GetItemName(itemindex, itemname, sizeof(itemname));
PrintToChat(client, "%N received item %d (%s)", client, itemindex, itemname);