This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Display item/attribute names


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
PC Gamer
Veteran Member
Join Date: Mar 2014
Old 09-08-2022 , 17:46   Re: Display item/attribute names
Reply With Quote #2

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(itemindexitemnamesizeof(itemname));
            
PrintToChat(client"%N received item %d (%s)"clientitemindexitemname); 
PC Gamer is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode