Farmer job(Sowing/Harvest/Transport,etc..) -
Gasman - 09.06.2015
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.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Dangjai - 09.06.2015
Good job.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
kalanerik99 - 09.06.2015
Nice job !
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
rainbowPUKE - 09.06.2015
Nice work
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
bgedition - 09.06.2015
Good work 9/10.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Pottus - 09.06.2015
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,
}
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Gasman - 10.06.2015
Quote:
Originally Posted by Pottus
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.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
z0n - 10.06.2015
Nice Work
+rep
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
FplayerGR - 10.06.2015
Nice job!
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
VladimirMark - 10.06.2015
Great Jobbbb
Love it.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Jonggol - 10.06.2015
Waiting for next update sir!.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Konverse - 10.06.2015
I\'ll copy and paste this in my folders nice job
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Gasman - 11.06.2015
Thank all.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
HoangNam - 11.06.2015
Wow very good! I will use it!
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
MonstrinhoVerde - 11.06.2015
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.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Gasman - 12.06.2015
Thank you for credits.
Good Luck.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Irish - 12.06.2015
Great job.
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Airblog - 12.06.2015
nice job love it
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
SoFahim - 12.06.2015
I like it. But why i get problem if i use it one my RP server?
Re: Farmer job(Sowing/Harvest/Transport,etc..) -
Gasman - 12.06.2015
Please show me your problem.