PDA

View Full Version : [TF2] How to use Backpack.tf API in a script?


Ibanezez
10-12-2014, 23:00
I was wondering how I can use the Backpack.tf api, in a script. This is a link to the api page:
http://backpack.tf/api/prices

Basically, I want it to list the price of the item after someone makes a trade, using the normal message after someone traded an item such as:

Ibanezez has traded for: Strange Jarate (.22)

or

Ibanezez has traded for: Strange Jarate
You have traded for Strange Jarate, worth .22 refined metal.


Something along those lines. I have a different plugin I have planned out that I will be using the API for, but wouldn't like to say directly what it is. Thank you for reading this post, and hopefully we can get some answers. :D

ddhoward
10-12-2014, 23:02
https://forums.alliedmods.net/showthread.php?t=194852

Try using this as an example.

Ibanezez
10-12-2014, 23:29
I saw that, but wasn't sure what was what. Is there an easier plugin example that shows how to use an api? (Or backpack.tf api)