SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 05/06/2016, 05:23 PM   #1
rootcause
Big Clucker
 
rootcause's Avatar
 
Join Date: Feb 2015
Location: /
Posts: 114
Reputation: 188
Default Lumberjack Job




Information

You can cut trees and load the logs into your Bobcat, then sell them to Log Buyers.

To cut a tree, you must go near one and press N while holding a chainsaw. You can buy a chainsaw from Log Buyers using /chainsaw command.

Config

#define CUTTING_TIME - Time required to cut a tree, in seconds. (Default: 8)
#define LOG_LIMIT - How many logs can players load to a Bobcat. (Default: 10)
#define ATTACH_INDEX - SetPlayerAttachedObject index for the log object, you can change it to avoid conflicts if you get any. (Default: 7)
#define TREE_RESPAWN - Time required to respawn a tree, in seconds. (Default: 300)
#define LOG_LIFETIME - Life time of a dropped log, in seconds. (Default: 120)
#define LOG_PRICE - Price of a log. (Default: 50)
#define CSAW_PRICE - Price of a chainsaw. (Default: 500)

Commands

/chainsaw - Allows you to buy a chainsaw from Log Buyers.

/log - Has 5 options which are load, take, takefromcar, takefromtree and sell.
-> /log load Loads the log you're carrying into a Bobcat.
-> /log take Takes a log from the ground.
-> /log takefromcar Takes a log from a Bobcat.
-> /log takefromtree Takes a log from a cut tree.
-> /log sell Sells the log you're carrying to a Log Buyer.

N Key - Drops the log you're carrying.

RCON Only:

Tree Related:
/createtree - Creates a tree on your location.
/edittree [tree id] - Allows you to edit the specified tree's position.
/removetree [tree id] - Removes the specified tree.

Log Buyer Related:
/createbuyer [skin id] - Creates a log buyer on your location.
/setbuyerskin [buyer id] [skin id] - Changes the specified buyer's skin.
/setbuyerpos [buyer id] - Changes the specified buyer's position to your position.
/removebuyer [buyer id] - Removes the specified log buyer.

Notes

* This script doesn't create any Bobcats, you have to add them.
* If you're getting compile errors, make sure you're using the latest versions of everything.

Credits

Emmet_ for Extended vehicle functions (although he removed the pastebin in the thread, you can get it from here)
[HLF]Southclaw for Progress Bars v2
Slice for SQLite Improved
Incognito for Streamer Plugin
Yashas for Improved ZCMD
Y_Less & maddinat0r & Misiur for sscanf and YSI.

Downloads

__________________
All Releases | YouTube

Last edited by rootcause; 05/07/2016 at 04:52 PM. Reason: video re-added
rootcause is offline   Reply With Quote
Old 05/06/2016, 05:23 PM   #2
TopShooter
Big Clucker
 
TopShooter's Avatar
 
Join Date: Jan 2016
Location: Unknown
Posts: 85
Reputation: 88
Default Re: Lumberjack Job

Nice one
TopShooter is offline   Reply With Quote
Old 05/06/2016, 05:42 PM   #3
Mijata
Gangsta
 
Mijata's Avatar
 
Join Date: Mar 2014
Location: Serbia
Posts: 632
Reputation: 8
Default Re: Lumberjack Job

Oh really nice.
Mijata is offline   Reply With Quote
Old 05/06/2016, 05:57 PM   #4
Stev
Big Clucker
 
Stev's Avatar
 
Join Date: Oct 2013
Location: United Kingdom
Posts: 112
Reputation: 15
Default Re: Lumberjack Job

"Yet another" Good system, Great work pal.
Stev is offline   Reply With Quote
Old 06/06/2016, 12:13 AM   #5
Dice_
Huge Clucker
 
Dice_'s Avatar
 
Join Date: Sep 2015
Location: Indonesia
Posts: 399
Reputation: 48
Default Re: Lumberjack Job

It's really nice!
__________________
quit
Dice_ is offline   Reply With Quote
Old 06/06/2016, 12:18 AM   #6
WhiteGhost
Guest
 
Posts: n/a
Default Re: Lumberjack Job

Where do u get your inspiration from? GoodWork..
  Reply With Quote
Old 06/06/2016, 12:42 AM   #7
Amunra
Gangsta
 
Amunra's Avatar
 
Join Date: Nov 2015
Location: Indonesian
Posts: 527
Reputation: 12
Default Re: Lumberjack Job

Nice Again and Again .. Uhh So Sweet..
__________________
Legendary Criminals


Amunra is offline   Reply With Quote
Old 06/06/2016, 04:05 PM   #8
Deniz1467
Little Clucker
 
Deniz1467's Avatar
 
Join Date: Aug 2012
Location: Republic of Turkey
Posts: 41
Reputation: 3
Default Re: Lumberjack Job

Best stuff ever, keep it up bud
Deniz1467 is offline   Reply With Quote
Old 06/06/2016, 04:28 PM   #9
PrO.GameR
Gangsta
 
PrO.GameR's Avatar
 
Join Date: Oct 2012
Posts: 734
Reputation: 121
Default Re: Lumberjack Job

Wow you are active lately! Scrapping your server project and releasing parts? or just bored and creating random things?
n1 either way.
__________________
Blueberry Prison Roleplay will be back soon!
Follow the forums for more information about opening day.

Forums
PrO.GameR is offline   Reply With Quote
Old 06/06/2016, 04:33 PM   #10
yarakstyle91
Little Clucker
 
yarakstyle91's Avatar
 
Join Date: May 2016
Posts: 8
Reputation: 0
Default Re: Lumberjack Job

imagination life is your creation
wp kid 5-Star
__________________
SAMET FOR MEN
yarakstyle91 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
Lumberjack Job help[rep] GeorgeMcReary Scripting Help 3 05/05/2016 12:56 PM
[JOB] Lumberjack mirza1221 Screenshots and Videos 2 04/09/2014 10:04 PM
Lumberjack B-Matt Screenshots and Videos 2 14/04/2014 04:05 PM
LumberJack ToX1c Romānă/Romanian 2 15/01/2014 01:04 PM
IM-RP: Lumberjack job. kvann Screenshots and Videos 8 21/11/2013 12:09 PM


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


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