SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 24/09/2011, 01:14 AM   #1
PowerPC603
High-roller
 
Join Date: Nov 2010
Location: Belgium
Posts: 1,733
Reputation: 238
Default PPC_Business

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.
http://forum.sa-mp.com/showthread.php?t=102865
It also uses sscanf (I'm still using an older version, as I still use Samp 0.3c):
http://forum.sa-mp.com/showthread.php?t=120356
And zcmd is also required:
http://forum.sa-mp.com/showthread.php?t=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
__________________
Gamemode: PPC_Trucking
Extras-file (for PPC_Trucking): /delproperty, /evict, /propertyid, /porthouse, /portbus, /properties
------------------------------------------------------------------------------------
PPC-Trucking-V2 (home-hosted, only open on occasion for testing purposes): ppctruckingv2.no-ip.info:7777
Youtube channel: https://www.youtube.com/channel/UC-4...Mpglma8f0Ld-YQ
------------------------------------------------------------------------------------
Filterscripts: PPC_Speedometer - PPC_Housing - PPC_Business

Last edited by PowerPC603; 07/01/2015 at 07:00 AM.
PowerPC603 is offline   Reply With Quote
Old 24/09/2011, 03:45 AM   #2
Mark_Weston
Gangsta
 
Mark_Weston's Avatar
 
Join Date: Aug 2010
Location: Winnipeg, Manitoba, Canada
Posts: 952
Reputation: 70
Default Re: PPC_Business

Wow good job, but its too late
I stopped making my own server, and playing SA-MP lol.
But its great!
Mark_Weston is offline   Reply With Quote
Old 24/09/2011, 07:00 AM   #3
Skyny10
Little Clucker
 
Join Date: Jan 2011
Posts: 9
Reputation: 2
Default Re: PPC_Business

Thank you. Good Job.
Skyny10 is offline   Reply With Quote
Old 24/09/2011, 07:05 AM   #4
Ironboy
High-roller
 
Ironboy's Avatar
 
Join Date: Nov 2010
Location: Isle of Man
Posts: 1,942
Reputation: 433
Default Re: PPC_Business

Good Job Power.Keep it up!!!..
__________________
Ironboy is offline   Reply With Quote
Old 28/09/2011, 12:27 PM   #5
Naruto_Emilio
Banned
 
Join Date: Apr 2011
Location: North Africa
Posts: 1,297
Reputation: 365
Default Re : PPC_Business

Nice Release it will be useful.
Naruto_Emilio is offline   Reply With Quote
Old 02/10/2011, 06:05 PM   #6
--tiny--
Little Clucker
 
Join Date: Apr 2010
Posts: 23
Reputation: 0
Default Re: PPC_Business

Is there a way to make it so other people can enter your business?
--tiny-- is offline   Reply With Quote
Old 02/10/2011, 06:13 PM   #7
PowerPC603
High-roller
 
Join Date: Nov 2010
Location: Belgium
Posts: 1,733
Reputation: 238
Default Re: PPC_Business

Quote:
Originally Posted by --tiny-- View Post
Is there a way to make it so other people can enter your business?
Currently, no.
But that can be added if needed.
This script will get updates soon too when gamemode PPC_Trucking V2 gets a new class that uses businesses.
__________________
Gamemode: PPC_Trucking
Extras-file (for PPC_Trucking): /delproperty, /evict, /propertyid, /porthouse, /portbus, /properties
------------------------------------------------------------------------------------
PPC-Trucking-V2 (home-hosted, only open on occasion for testing purposes): ppctruckingv2.no-ip.info:7777
Youtube channel: https://www.youtube.com/channel/UC-4...Mpglma8f0Ld-YQ
------------------------------------------------------------------------------------
Filterscripts: PPC_Speedometer - PPC_Housing - PPC_Business
PowerPC603 is offline   Reply With Quote
Old 02/10/2011, 06:23 PM   #8
--tiny--
Little Clucker
 
Join Date: Apr 2010
Posts: 23
Reputation: 0
Default Re: PPC_Business

ok thank you ill be looking forward to it
--tiny-- is offline   Reply With Quote
Old 02/10/2011, 06:33 PM   #9
Varkoll_
Huge Clucker
 
Varkoll_'s Avatar
 
Join Date: Dec 2009
Location: Peut-Ítre pas sur Terre ?
Posts: 247
Reputation: 61
Default Re : PPC_Business

Good Job ! I will translate it in french =P
__________________
Varkoll_ is offline   Reply With Quote
Old 02/10/2011, 07:26 PM   #10
PowerPC603
High-roller
 
Join Date: Nov 2010
Location: Belgium
Posts: 1,733
Reputation: 238
Default Re: PPC_Business

Quote:
Originally Posted by --tiny-- View Post
ok thank you ill be looking forward to it
But it will take time.
I've just completed the trucker class, which was the biggest class.
I've got 7 more classes to re-write, then new classes will come.
__________________
Gamemode: PPC_Trucking
Extras-file (for PPC_Trucking): /delproperty, /evict, /propertyid, /porthouse, /portbus, /properties
------------------------------------------------------------------------------------
PPC-Trucking-V2 (home-hosted, only open on occasion for testing purposes): ppctruckingv2.no-ip.info:7777
Youtube channel: https://www.youtube.com/channel/UC-4...Mpglma8f0Ld-YQ
------------------------------------------------------------------------------------
Filterscripts: PPC_Speedometer - PPC_Housing - PPC_Business
PowerPC603 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 07:04 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.