SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 21/05/2016, 05:00 PM   #1
TwinkiDaBoss
Gangsta
 
Join Date: Jul 2014
Posts: 823
Reputation: 51
Default [JOB] Dynamic Garbage Collector

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
Y_Less 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 (http://forum.sa-mp.com/showthread.php?t=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

Last edited by TwinkiDaBoss; 21/05/2016 at 05:49 PM.
TwinkiDaBoss is offline   Reply With Quote
Old 21/05/2016, 05:47 PM   #2
TwinkiDaBoss
Gangsta
 
Join Date: Jul 2014
Posts: 823
Reputation: 51
Default Re: [JOB] Dynamic Garbage Collector

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


TwinkiDaBoss is offline   Reply With Quote
Old 21/05/2016, 09:13 PM   #3
Z0MBERTH
Huge Clucker
 
Z0MBERTH's Avatar
 
Join Date: Dec 2015
Location: Venezuela.
Posts: 270
Reputation: 10
Default Respuesta: [JOB] Dynamic Garbage Collector

Good Job Man!
__________________
Sufian x Mario =
Z0MBERTH is offline   Reply With Quote
Old 21/05/2016, 11:14 PM   #4
TwinkiDaBoss
Gangsta
 
Join Date: Jul 2014
Posts: 823
Reputation: 51
Default Re: Respuesta: [JOB] Dynamic Garbage Collector

Quote:
Originally Posted by Zo0mer View Post
Good Job Man!
Thanks bro! Im glad you like it!
TwinkiDaBoss is offline   Reply With Quote
Old 22/05/2016, 12:38 AM   #5
wharlos
Huge Clucker
 
wharlos's Avatar
 
Join Date: Nov 2015
Location: Venezuela
Posts: 461
Reputation: 14
Default Respuesta: [JOB] Dynamic Garbage Collector

Excellent work, very good
wharlos is offline   Reply With Quote
Old 22/05/2016, 01:01 AM   #6
TwinkiDaBoss
Gangsta
 
Join Date: Jul 2014
Posts: 823
Reputation: 51
Default Re: Respuesta: [JOB] Dynamic Garbage Collector

Quote:
Originally Posted by wharlos View Post
Excellent work, very good
Thanks bro!
TwinkiDaBoss is offline   Reply With Quote
Old 25/12/2016, 11:56 PM   #7
Learn
Big Clucker
 
Join Date: Dec 2016
Posts: 119
Reputation: 0
Default Re: [JOB] Dynamic Garbage Collector

Quote:
Originally Posted by TwinkiDaBoss View Post
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?
Learn is offline   Reply With Quote
Old 27/12/2016, 09:14 AM   #8
coool
Huge Clucker
 
Join Date: Feb 2013
Location: Pakistan, Sindh
Posts: 444
Reputation: 23
Default Re: [JOB] Dynamic Garbage Collector

Good.
__________________
My Writing Works
Lost In Future
coool is online now   Reply With Quote
Old 28/08/2017, 06:49 PM   #9
N0FeaR
High-roller
 
N0FeaR's Avatar
 
Join Date: Nov 2011
Location: Los Santos, Idlewood
Posts: 2,252
Reputation: 143
Default Re: [JOB] Dynamic Garbage Collector

Wow awesome work dude, rep +
__________________
Currently working in:
Working on a script from scratch 25%
Things I done:
[GameMode]Prototype Roleplay
[GameMode]Reality Prison Roleplay
[GameMode]Los Santos GangWar


Quote:
Originally Posted by ThaiLuan View Post
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Help me! How to fix error
N0FeaR is offline   Reply With Quote
Old 31/08/2017, 08:32 PM   #10
Astonish
Little Clucker
 
Join Date: Aug 2017
Posts: 5
Reputation: 0
Default Re: [JOB] Dynamic Garbage Collector

Good Filterscript nice work +rep
Astonish 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help] Creating Garbage Job. GBLTeam Scripting Help 0 23/01/2014 12:21 PM
Garbage Job yancarlos4500 Scripting Help 6 09/11/2013 02:23 AM
Garbage Job for RP Server payton326 Screenshots and Videos 38 11/12/2011 08:07 AM


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


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