SA-MP Forums Archive
[FilterScript] Lumberjack Job - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Lumberjack Job (/showthread.php?tid=608851)

Pages: 1 2


Lumberjack Job - rootcause - 05.06.2016


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
****** & maddinat0r & Misiur for sscanf and YSI.

Downloads

Mediafire || Pastebin



Re: Lumberjack Job - TopShooter - 05.06.2016

Nice one


Re: Lumberjack Job - Mijata - 05.06.2016

Oh really nice.


Re: Lumberjack Job - Stev - 05.06.2016

"Yet another" Good system, Great work pal.


Re: Lumberjack Job - Fairuz - 06.06.2016

It's really nice!


Re: Lumberjack Job - WhiteGhost - 06.06.2016

Where do u get your inspiration from? GoodWork..


Re: Lumberjack Job - Amunra - 06.06.2016

Nice Again and Again .. Uhh So Sweet..


Re: Lumberjack Job - Deniz1467 - 06.06.2016

Best stuff ever, keep it up bud


Re: Lumberjack Job - PrO.GameR - 06.06.2016

Wow you are active lately! Scrapping your server project and releasing parts? or just bored and creating random things?
n1 either way.


Re: Lumberjack Job - yarakstyle91 - 06.06.2016

imagination life is your creation
wp kid 5-Star


Re: Lumberjack Job - GTLS - 10.06.2016

I got the same compiling errors too. can you upload a .amx file please?


Re: Lumberjack Job - ManIsHere - 11.06.2016

Can someone upload .amx file? i dont able to compile it. sometime i get error unable to wite to file: lumberjack.amx and sometimes my pawno crash. this script has many bugs. so please if someone has compiled to .amx, upload it here?


Re: Lumberjack Job - brianvans089 - 11.06.2016

Nice


Re: Lumberjack Job - GeorgeMcReary - 12.06.2016

i need a amx file or rootcause can you Zip up your pawno folder and share it with me? please i really need help
i cant compile... i tried other than pawno compilers but it failed in every. so please give me your Pawno Folder, may be using your Includes, i can compile it?


Re: Lumberjack Job - ManIsHere - 14.06.2016

-1 for you. this filterscript does not compiles. there are too many problems in sqlitei. you have to fix it or delete this thread. NOT RECOMMENDED for anyone. thats not only with me, others are having same problem.

https://sampforum.blast.hk/showthread.php?tid=609531 see here.


Re: Lumberjack Job - Fairuz - 14.06.2016

Quote:
Originally Posted by ManIsHere
View Post
-1 for you. this filterscript does not compiles. there are too many problems in sqlitei. you have to fix it or delete this thread. NOT RECOMMENDED for anyone. thats not only with me, others are having same problem.

https://sampforum.blast.hk/showthread.php?tid=609531 see here.
lmao.

It compiles for me.


Re: Lumberjack Job - ManIsHere - 14.06.2016

Quote:
Originally Posted by Bradley7
View Post
lmao.

It compiles for me.
Can you give me .amx please? or give me your pawno folder zip so that i can compile it my self? please?


Re: Lumberjack Job - SecretBoss - 14.06.2016

Convert it to MySQL if it doesn't work for you. You are probably a newbie scripter (maybe not even a scripter) who tries to judge other's work. Respect their time and effort they putted to release the current system. @ManIsHere


Re: Lumberjack Job - ManIsHere - 14.06.2016

I didnt mean to disrespect his efforts. i am just saying, why i cant compile his script, with includes given by him self. if you hav already compiled so please give me its .amx file. also i tried compilig to MySQL but got errors.


Re: Lumberjack Job - GeorgeMcReary - 17.06.2016

Can someone upload a .amx please?