Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*==============================================================================
- * *
- * -PizzaBoy Job Filterscript By: [Phoenix-] *
- * -Yahoo: Mhmmd480@Yahoo.Com *
- * -Skype: Mamad.Venom *
- * *
- ==============================================================================*/
- // This Job Is In SF [ -1812.0 , 937.0 , 24.7422 ]
- #include <a_samp>
- #include <streamer>
- #define SLOT 1
- #pragma tabsize 0
- new FarmerJob[MAX_PLAYERS];
- new Wheats[MAX_PLAYERS];
- new CheckPoint1;
- new CheckPoint2;
- public OnGameModeInit()
- {
- CreateObject(3261, -1439.06335, -1490.83398, 100.77420, 0.00000, 0.00000, 95.00000);
- CreateObject(3261, -1436.05420, -1490.57397, 100.77420, 0.00000, 0.00000, 95.00000);
- CreateObject(1458, -1429.37500, -1528.02844, 100.98650, 0.00000, 0.00000, 0.00000);
- CreateObject(2901, -1429.35974, -1526.50000, 101.27210, 0.00000, 0.00000, 0.00000);
- CreateObject(2901, -1429.35974, -1527.50000, 101.77210, 0.00000, 0.00000, 0.00000);
- CreateObject(2901, -1429.35974, -1528.00000, 101.97210, 0.00000, 0.00000, 0.00000);
- CreateObject(2901, -1429.35974, -1527.00000, 101.57210, 0.00000, 0.00000, 0.00000);
- CreateObject(2237, -1430.24414, -1526.54248, 101.55030, 45.00000, 25.00000, 90.00000);
- CreateObject(3461, -1430.44995, -1527.50000, 102.32000, 0.00000, 0.00000, 0.00000);
- CreateObject(3461, -1428.44995, -1527.48718, 102.32000, 0.00000, 0.00000, 0.00000);
- Create3DTextLabel("{FFA500}First {FFFFFF}CheckPoint",-1,-1437.9021,-1490.7566,101.2376, 50.0, 0, 0);
- Create3DTextLabel("{FF4848}Second {FFFFFF}CheckPoint",-1,-1425.7504,-1527.9706,101.3923, 50.0, 0, 0);
- CheckPoint1 = CreateDynamicCP(-1437.9021,-1490.7566,101.7376,2,-1,-1,-1,4);
- CheckPoint2 = CreateDynamicCP(-1425.7504,-1527.9706,101.8923,2,-1,-1,-1,4);
- print("\n+++++ Farmer Job FilterScript +++++");
- print("**************************************");
- print("* *");
- print("* -Filterscript By: [Phoenix-] *");
- print("* -Yahoo: Mhmmd480@Yahoo.Com *");
- print("* -Skype: Mamad.Venom *");
- print("* *");
- print("**************************************\n");
- return 1;
- }
- public OnPlayerEnterDynamicCP(playerid , checkpointid)
- {
- if(checkpointid == CheckPoint1)
- {
- SendClientMessage(playerid,0x81C0C0AA,"{81C0C0}Press{FFFF00} Left Alt");
- return 1;
- }
- if(checkpointid == CheckPoint2)
- {
- new string[128], PName[MAX_PLAYER_NAME];
- GetPlayerName(playerid,PName,sizeof(PName));
- if(FarmerJob[playerid] == 0)
- {
- SendClientMessage(playerid,0xD2691EAA,"You Must First Be In The First CheckPoint And Then Come Here.");
- return 1;
- }
- if(Wheats[playerid] == 9)
- {
- format(string,sizeof(string),"[FARMERJOB] {f06248}%s(%d) {FFFFFF}Has Done His Farmer Job And Recived {8068df}$500 + 1 Score.",PName,playerid);
- SendClientMessageToAll(0x10F441AA,string);
- GivePlayerMoney(playerid,500);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
- Wheats[playerid] =0;
- FarmerJob[playerid] =0;
- RemovePlayerAttachedObject(playerid, 1);
- return 1;
- }
- RemovePlayerAttachedObject(playerid, 1);
- ApplyAnimation(playerid, "PED", "IDLE_tired", 4.0, 1, 0, 0, 0, 5000, 1);
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_NONE);
- FarmerJob[playerid] =0;
- SendClientMessage(playerid,0x33AA33AA,"Goto The First Checkpoint.");
- Wheats[playerid] +=1;
- format(string,sizeof(string),"Wheats~n~~g~%d/10",Wheats[playerid]);
- GameTextForPlayer(playerid,string,3000,5);
- return 1;
- }
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- FarmerJob[playerid] =0;
- Wheats[playerid] =0;
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- FarmerJob[playerid] =0;
- Wheats[playerid] =0;
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- if(FarmerJob[playerid] == 1)
- {
- SetPlayerAttachedObject(playerid, 1, 2901, 5, 0.101, -0.0, 0.0, 5.50, 90, 90, 1, 1);
- }
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(newkeys == KEY_WALK)
- {
- if(IsPlayerInDynamicCP(playerid , CheckPoint1))
- {
- if(FarmerJob[playerid] == 1)
- {
- SendClientMessage(playerid,0xD2691EAA,"You Are Done Here. Goto The Second Checkpoint.");
- return 1;
- }
- SendClientMessage(playerid,0x33AA33AA,"Goto The Second Checkpoint.");
- FarmerJob[playerid] =1;
- SetPlayerSpecialAction(playerid,SPECIAL_ACTION_CUFFED);
- ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 5000, 1);
- return 1;
- }
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement