[FilterScript] Lumberjack Job
#1


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

Reply
#2

Nice one
Reply
#3

Oh really nice.
Reply
#4

"Yet another" Good system, Great work pal.
Reply
#5

It's really nice!
Reply
#6

Where do u get your inspiration from? GoodWork..
Reply
#7

Nice Again and Again .. Uhh So Sweet..
Reply
#8

Best stuff ever, keep it up bud
Reply
#9

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

imagination life is your creation
wp kid 5-Star
Reply
#11

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

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?
Reply
#13

Nice
Reply
#14

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?
Reply
#15

-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.
Reply
#16

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.
Reply
#17

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?
Reply
#18

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
Reply
#19

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.
Reply
#20

Can someone upload a .amx please?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)