[FilterScript] [JOB] Dynamic Garbage Collector
#1

Introduction
Hello. This is a simple job that is entirely dynamic and based on if people work or not on it. Currently there is only 1 part implemented of this system, I am working on the second part of it which will allow players to drive the trash to a factory to get it burned and earn more cash.


How it works

:Server Sided:
-Upon server start/restart/filterscript load trashcans will be spawned with random amount of trash in them
-From 1-10 trash will be filled to every trashcan every 4 minutes
-Price of trash will change every 5 minutes. Price is float therefore it can be for example 1.22$ or 4.35$. Price can be minimum 1.00$ and maximum 5.00$ for each unit of trash. So the price is entirely dynamic and changes every 5 minutes so its best to keep your trash on you and sell at X time to earn more.
-Factory (dumpyard) can hold maximum 10.000 trash at the time

:Player Sided:
Step 1: Walk to some container located in Los Santos (there are 21 spawned at the moment) and type /emptycan. You can have maximum 200 trash on you, therefore you can pick trash from more containers before selling the trash.
Step 2: Once ready go to the trash yard at Los Santos and sell the trash. If the factory is full you wont be able to sell the trash.
Step 3: Depending on your skill you will be charged certain Tax. If you progress to a higher rank there will be less tax. Simple as that!


Commands (v.1.0 only, see my posts on the thread for more)
Current commands are
-/collecttrash <- used to empty a container if there is any trash in it
-/selltrash is used to sell your trash at the LS dumpyard
-/mytrash is used will show you your statistics. If you want to save them, just open up the script and there are notes telling you what to save from it.


Credits
****** for many stuff
Zeex for ZCMD
Incognito for the streamer
Twinki for scripting

Installation
Add filterscripts SAMP_Release into your server.cfg
Add plugins streamer into your server.cfs and add streamer.dll or streamer.so (so for linux) to your plugins folder. Streamer can be found here (https://sampforum.blast.hk/showthread.php?tid=102865)
Add ZCMD.inc to your pawno/include folder. ZCMD can be found here (http://www.filedropper.com/showdownload.php/zcmd)


Download
v.1.1: http://pastebin.com/gRd5yf8n
v.1.1: http://www.filedropper.com/showdownl...ilterscripts_1

v.1.0 http://www.filedropper.com/filterscripts
v.1.0 http://pastebin.com/xeNnPU3R


Screenshots
http://i.imgur.com/0qEi8Vp.png
http://i.imgur.com/OYJK5pB.jpg
http://s32.postimg.org/8ro9ebnlt/sa_mp_004.png
http://s32.postimg.org/8u3jnf1vl/sa_mp_005.png
Reply
#2

Update v.1.1
-Start price will no longer be static aka be 2.00, it will now be random from 1-5
-Added 3 trash trucks
-Added 3d text at the dumpyard where you have to load the trash with your truck
-Factory 3d text will be deleted from the factory once the FS is unloaded now

Addition to the job, truck driving:
Step 1: In order to drive the trash from the dumpyard there is a requirement that the dumpyard needs atleast 1000 materials for you to drive
Step 2: Once you are ready, jump into a Trashmaster type /loadtrash and you will get a message where to drive the trash to dump
Step 3: Type /droptrash and you will receive X amount of money depending on your skill (Trash collecting skill).


Payment tree based on trash collected in total (skill):
Skill 1 -- 0 - 100 Trash Collected = earnings - 100$
Skill 2 -- 101 - 250 Trash Collected = earnings - 120$
Skill 3 -- 251 - 500 Trash Collected = earnings - 150$
Skill 4 -- 501 - 1000 Trash Collected = earnings - 200$
Skill 5 -- 1001 - 9999 Trash Collected = earnings - 250$


Download v.1.1: http://pastebin.com/gRd5yf8n
Download v.1.1: http://www.filedropper.com/showdownl...ilterscripts_1

Images from v.1.1


Reply
#3

Good Job Man!
Reply
#4

Quote:
Originally Posted by Zo0mer
Посмотреть сообщение
Good Job Man!
Thanks bro! Im glad you like it!
Reply
#5

Excellent work, very good
Reply
#6

Quote:
Originally Posted by wharlos
Посмотреть сообщение
Excellent work, very good
Thanks bro!
Reply
#7

Quote:
Originally Posted by TwinkiDaBoss
Посмотреть сообщение
Update v.1.1
-Start price will no longer be static aka be 2.00, it will now be random from 1-5
-Added 3 trash trucks
-Added 3d text at the dumpyard where you have to load the trash with your truck
-Factory 3d text will be deleted from the factory once the FS is unloaded now

Addition to the job, truck driving:
Step 1: In order to drive the trash from the dumpyard there is a requirement that the dumpyard needs atleast 1000 materials for you to drive
Step 2: Once you are ready, jump into a Trashmaster type /loadtrash and you will get a message where to drive the trash to dump
Step 3: Type /droptrash and you will receive X amount of money depending on your skill (Trash collecting skill).


Payment tree based on trash collected in total (skill):
Skill 1 -- 0 - 100 Trash Collected = earnings - 100$
Skill 2 -- 101 - 250 Trash Collected = earnings - 120$
Skill 3 -- 251 - 500 Trash Collected = earnings - 150$
Skill 4 -- 501 - 1000 Trash Collected = earnings - 200$
Skill 5 -- 1001 - 9999 Trash Collected = earnings - 250$


Download v.1.1: http://pastebin.com/gRd5yf8n
Download v.1.1: http://www.filedropper.com/showdownl...ilterscripts_1

Images from v.1.1


why need the veh if the /collecttrash put the trash on you, and It's impossible to put trash in the veh so its also impossible to do the other commands like /loadtrash /droptrash or I dont understand the job?
Reply
#8

Good.
Reply
#9

Wow awesome work dude, rep +
Reply
#10

Good Filterscript nice work +rep
Reply
#11

when i load it as FS my server's comands stops working
Reply
#12

Nice system +Rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)