24.09.2011, 01:14
(
Последний раз редактировалось PowerPC603; 07.01.2015 в 07:00.
)
Hi,
I've completed my business script, like it was implemented in the PPC_Trucking gamemode.
The filterscript uses Incognito's streamer for the pickups and 3DText labels, so you need it for this script to work.
https://sampforum.blast.hk/showthread.php?tid=102865
It also uses sscanf (I'm still using an older version, as I still use Samp 0.3c):
https://sampforum.blast.hk/showthread.php?tid=120356
And zcmd is also required:
https://sampforum.blast.hk/showthread.php?tid=91354
NOTE: You need to create a folder "PPC_Business" in your scriptfiles folder, or your server will crash.
Also, when combined with the PPC_Housing script, update the housing script with the latest version which has been uploaded.
This needs to be done because the housing script and the business script both use the /enter command.
If you keep the old housing script, there is a chance you won't be able to enter your business.
Also, do not combine this script with the PPC_Trucking gamemode, as it's built-in.
The only thing that has changed, is the earnings, all the rest is the same.
So no need to use 2 identical systems at once, as they may conflict with eachother.
To create a business, just use the command /createbusiness.
Then you'll be shown a dialog which asks you which type of business you want to create.
They all work the same, the only difference is:
- the buying price (which is also the price to pay for upgrading it, max level is 5)
- the earnings per minute
- the interior shown when you enter it
- the map-icon on your radar
Every business earns a little money every minute.
"Burger Shot" for example costs $700K to buy it. It earns $7 every minute, even when you're offline.
$7 every minute * 60 = $420 every hour. Or $420 * 24 = $10080 every day.
To get your investment back, you'll need about 70 days (the business-system in the gamemode required more than a year, the earnings have been upped because of this).
After that, you've earned your investment back (the buying price of $700K) and you can start making money.
There are a few functions that you need to copy and modify to your gamemode or other filterscripts if you use server-sided money.
The filterscript normally has no access to your account-data that your gamemode might hold, but these functions allow the business script to get data from your gamemode if you copy them to your gamemode.
They are near the bottom of the filterscript.
If you don't copy and edit them, the script will automatically use client-sided money.
Screenshot (a few businesses together):
Screenshot (inside the business, showing the businessmenu):
Download it here:
http://users.telenet.be/vge/download...C_Business.pwn
I've completed my business script, like it was implemented in the PPC_Trucking gamemode.
The filterscript uses Incognito's streamer for the pickups and 3DText labels, so you need it for this script to work.
https://sampforum.blast.hk/showthread.php?tid=102865
It also uses sscanf (I'm still using an older version, as I still use Samp 0.3c):
https://sampforum.blast.hk/showthread.php?tid=120356
And zcmd is also required:
https://sampforum.blast.hk/showthread.php?tid=91354
NOTE: You need to create a folder "PPC_Business" in your scriptfiles folder, or your server will crash.
Also, when combined with the PPC_Housing script, update the housing script with the latest version which has been uploaded.
This needs to be done because the housing script and the business script both use the /enter command.
If you keep the old housing script, there is a chance you won't be able to enter your business.
Also, do not combine this script with the PPC_Trucking gamemode, as it's built-in.
The only thing that has changed, is the earnings, all the rest is the same.
So no need to use 2 identical systems at once, as they may conflict with eachother.
To create a business, just use the command /createbusiness.
Then you'll be shown a dialog which asks you which type of business you want to create.
They all work the same, the only difference is:
- the buying price (which is also the price to pay for upgrading it, max level is 5)
- the earnings per minute
- the interior shown when you enter it
- the map-icon on your radar
Every business earns a little money every minute.
"Burger Shot" for example costs $700K to buy it. It earns $7 every minute, even when you're offline.
$7 every minute * 60 = $420 every hour. Or $420 * 24 = $10080 every day.
To get your investment back, you'll need about 70 days (the business-system in the gamemode required more than a year, the earnings have been upped because of this).
After that, you've earned your investment back (the buying price of $700K) and you can start making money.
There are a few functions that you need to copy and modify to your gamemode or other filterscripts if you use server-sided money.
The filterscript normally has no access to your account-data that your gamemode might hold, but these functions allow the business script to get data from your gamemode if you copy them to your gamemode.
They are near the bottom of the filterscript.
If you don't copy and edit them, the script will automatically use client-sided money.
Screenshot (a few businesses together):
Screenshot (inside the business, showing the businessmenu):
Download it here:
http://users.telenet.be/vge/download...C_Business.pwn