Quote:
Originally Posted by ZmaXy
How to make command /createbizz ? (Ingame)
|
To make a business you have to make a system, EVEN if you want someone to make it you have to explain how you want it, you haven't done it, nor you have checked if what you want is a filterscript.
Your post is 1-lined while the system will take more than 100 lines (if a good one).
Now, first, for a bizz system this is what you will need:
-dini/djson or any other saving method
- strtok/zcmd or any other command processing system
-Advanced knowledge on file systems
-Advanced knowledge on variables
and this is how to do it:
When admin / user / anyone types /createbizz a file is saved with the x, y, z coords + a random interior.
When user approaches the bizz and types /enter / presses CTRL / presses ALT then it checks the int id and sets them inside the x, y, z of the business ( if(interior==1){SetPlayerPos(...))... )
Then if user /buys something, add the income + price.
Thats a 4-lined explanation