[FilterScript] Farmer job(Sowing/Harvest/Transport,etc..)
#1

Farmer Job

Script by Gasman
pawn Code:
|------------INFOMATION---------------|
                   |   SCRIPT NAME: Farmer Job Beta1     |
                   |   Author     : Gasman(NhatNguyen)   |
                   |   Credits   :+Team SA-MP for SAMP   |
                   |      +Incognito for Streamer plugin |
                               |      +Zeex for ZCMD                 |
                   |   Version Language: English         |
                   |   sorry for my very bad English     |
                   |-------------------------------------|
                Please don\'t remove the credits and author
Features:
pawn Code:
*Sowing
*Harvest
*Transport
*Sprinklers (in next update)
*Etc(Pickup/drop/key)
Edit Script
pawn Code:
/*---------------------------------SCRIPT EDIT---------------------------------*/
/*
FJ Pos hire vehicle is positions to rent vehicle
FJ Pos Get paddy sack is positions to get paddy sack
FJ Transport is positions to transport paddy
Time_Updatepaddy is time paddy grow default is 5000ms(5s)
*/

#define MAX_PADDYS 100

#define FJPosHireVehicle -123.0217,-32.4668,3.1172
#define FJPosGetPaddySack -102.7191,-35.4960,3.9605
#define FJPosTransport  1350.87219, -1771.08533, 12.48870
#define FJAreaPos       -273.4105,-60.5778,-122.2512,60.6611//minx,miny,maxx,maxy

#define DIALOG_FJHIREVEHICLE        (2322)
#define DIALOG_FJGETPADDYSACK       (2323)
#define DIALOG_FJUNHIREVEHICLE      (2324)

#define TIME_UPDATEPADDY            (5000)
/*-----------------------------------------------------------------------------*/
Tutorial

*Install

-Put "eng-farmerjob" to folder \'filterscripts\' and complie it

-Open server.cfg and add "eng-farmerjob" in line filterscripts

-Download Plugin Streamer and put streamer.dll(windown) or

streamer.so(linux) to folder \'Plugins\' add "streamer.dll" in line plugins (if no have write this line)
pawn Code:
filterscripts eng-farmerjob
plugins streamer
*Use
pawn Code:
Key and Command
CMD:transport to get checkpoint transport
CMD:info to show infomation
(\'Y\') to show action(dialog rent vehicle/get paddy sack
(\'LATL\') On foot to put paddy sack on hand to trailer
(\'LATL\') In vehicle to (Sowing/harvest)
(\'N\')to pickup or drop Sack
(\'H\') to add/remove paddy harvers sack in vehicle or Selling paddy harvest sack at point transport
VIDEO

Video #1 (Sowing and Harvest)

[ame]http://www.youtube.com/watch?v=P6ALwNh_4dc[/ame]

Video #2 (Transport)

[ame]http://www.youtube.com/watch?v=zJvm3yPPBFQ[/ame]
Download

BETA 1:https://github.com/gasmanvnn/SA-MP/b...-farmerjob.pwn
Road Map:
pawn Code:
Sprinklers
 Dynamic Positions
Save/Load when player disconnect
Sorry for my bad English.
Reply
#2

Good job.
Reply
#3

Nice job !
Reply
#4

Nice work
Reply
#5

Good work 9/10.
Reply
#6

You have some really weird setup with your player data and system data they are basically pooled together creating an excessive amount of indexes.


I don\'t know what you were thinking but you completely over thought your entire system it should look more like this. On a 500 player server what you have will create 50,000 indexes for each enum entry that is indexed!

Code:
	Float:pPaddyPosY[MAX_PADDYS],
	Float:pPaddyPosZ[MAX_PADDYS],
	Text3D:pPaddyText[MAX_PADDYS],
Code:
enum gPaddyData
{
	pPaddyUsed = 0,
	pPaddyObject,
	pPaddyProgress,
	pPaddyFillWater,
	Float:pPaddyPosX,
	Float:pPaddyPosY,
	Float:pPaddyPosZ,
	Text3D:pPaddyText,
	/////////////////////////////
	pPaddyHarvestUsed,
	pPaddyHarvestObject,
	Float:pPaddyHarvestPosX,
	Float:pPaddyHarvestPosY,
	Float:pPaddyHarvestPosZ,
	Text3D:pPaddyHarvestText,
}

new SystemInfo[MAX_PADDYS][gPaddyData];


enum fj
{
	/////////////////////////////
	pHasHireVehicle,
	pVehicleHire,
	pTrailerVehicleHire,
	pPaddyInTrailer,
	Text3D:pTrailerText,
	////////////////////////////
	pPaddyHarvestInVehicle,
	pPaddyHarvestInVehicleObject[5],
	////////////////////////////
	pUpdateTime,
}
Reply
#7

Quote:
Originally Posted by Pottus
View Post
You have some really weird setup with your player data and system data they are basically pooled together creating an excessive amount of indexes.


I don\'t know what you were thinking but you completely over thought your entire system it should look more like this. On a 500 player server what you have will create 50,000 indexes for each enum entry that is indexed!
Thank you Pottus.
Reply
#8

Nice Work
+rep
Reply
#9

Nice job!
Reply
#10

Great Jobbbb Love it.
Reply
#11

Waiting for next update sir!.
Reply
#12

I\'ll copy and paste this in my folders nice job
Reply
#13

Thank all.
Reply
#14

Wow very good! I will use it!
Reply
#15

Really nice job, do I have permission to use it in my server (and translate it to portuguese)? The server will open in more then 7 months and we will put your name in the credits of course.
Reply
#16

Thank you for credits.
Good Luck.
Reply
#17

Great job.
Reply
#18

nice job love it
Reply
#19

I like it. But why i get problem if i use it one my RP server?
Reply
#20

Please show me your problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)