How to make buyable interiors system?
#1

Hi sa-mp forum!

I have question that, how to make buyable interiors system?
I use https://sampforum.blast.hk/showthread.php?tid=287541 this tutorial, and i want to make that system that player can buy interiors /interiors command or something but i don't know how to do it, can you please help me? When somebody help me i give him credits in my server for helping and rep++.

Thanks for reading!
Reply
#2

Somebody help me please?
Reply
#3

Add an "interiorid" to your enum, this will save the interiorid per house.
In your MySQL database add column "interiorid" and add a dialog with a list of available interiors which will open somehow(by command /interiors or something), check if he owns a house and give him numerous options, when he choose one, find the option and save to your database as ID of the interior he chose.
After then, when wants to enter the house, fetch the interior id from the arrays and depend on it set his position.

If so what, feel free to ask.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)