SA-MP Forums Archive
[HELP] Command - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Command (/showthread.php?tid=197367)



[HELP] Command - ZmaXy - 08.12.2010

How to make command /createbizz ? (Ingame)


Re: [HELP] Command - ZmaXy - 08.12.2010

Someone help me ?


Re: [HELP] Command - Larsey123IsMe - 08.12.2010

More info about it?

It should create a, a What? (bizz is?)


Re: [HELP] Command - XePloiT - 08.12.2010

business you mean?... dude its a whole system

This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.
I don't like it ^^^
This forum requires that you wait 120 seconds between posts. Please try again in 34 seconds.
Come on!
This forum requires that you wait 120 seconds between posts. Please try again in 22 seconds.
DUDE!


Re: [HELP] Command - 6d - 08.12.2010

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


Re: [HELP] Command - ZmaXy - 08.12.2010

Yes, I need a script to make businesses ingame


Re: [HELP] Command - XePloiT - 09.12.2010

if you want a script but you don't know how to make it take one which is already done...
[but don't remove credits!!!]


Re: [HELP] Command - 6d - 09.12.2010

Maybe this helps.