To add an npc the actual buy thing so not the model try this: Step 1.
Go onto your server and stand where you want the buy spot. So where people can type /buy to buy something from the npc. Step 2.
Use amxmodx (amxmodxmenu in console) go to teleport and say use current location. Write those coords down.
Step 3.
Shutdown TS or use alt+tab. Start navicat and goto the npc table.
- ID: Must be unique
- Name: Name of the npc
- Itemid's: Wich item's should the npc sell? You can get the itemid's ingame by using amx_itemlist in console or open the item table in navicat.
- Quantities: If someone wants to buy an item. How much item's should he get for his money? 1/10/100?
- Prices: The price an item should cost.
- XYZ: The coord where the npc should spawn look at step 1
4. Example
ID: 10
Name: Confused Shopkeeper
Itemid's: 10|12|43
Quantities: 1|1|10
Prices: 100|100|250 Description:
Like this npc sell's 3 item's. If you buy item 1 you get the item wich is assigned to ID 10. You get 1 item for 100 dollar. If you buy item 3 you get the item wich is assigned to ID 43 you get 10x Item 43 for 250 dollar.