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>
- new PizzaJob[MAX_PLAYERS];
- new PJPickup;
- new Float: CheckPoints[5][4] =
- {
- {-1820.5520, 1113.3737, 45.4375, 3.0},
- {-2016.4229, 970.1193, 45.5578, 3.0},
- {-2210.8459, 908.2916, 69.0007, 3.0},
- {-1706.9905, 785.6998, 24.7344, 3.0},
- {-2094.2607, 798.5289, 69.5576, 3.0}
- };
- public OnGameModeInit()
- {
- AddStaticVehicleEx(448, -1810.0000, 941.0000, 24.3700, -180.0000, -1, -1, 100);
- AddStaticVehicleEx(448, -1812.0000, 941.0000, 24.3700, -180.0000, -1, -1, 100);
- AddStaticVehicleEx(448, -1814.0000, 941.0000, 24.3700, -180.0000, -1, -1, 100);
- PJPickup = CreatePickup(1274,1,-1812.0,937.0,24.7422,0);
- print("\n+++++ PizzaBoy Job FilterScript +++++");
- print("**************************************");
- print("* *");
- print("* -Filterscript By: [Phoenix-] *");
- print("* -Yahoo: Mhmmd480@Yahoo.Com *");
- print("* -Skype: Mamad.Venom *");
- print("* *");
- print("**************************************\n");
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- RemoveBuildingForPlayer(playerid, 1226, -1814.4453, 938.3359, 27.7031, 0.25);
- return 1;
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- PizzaJob[playerid] =0;
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if (strcmp("/Pizza", cmdtext, true, 10) == 0)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
- {
- new rand = random(sizeof(CheckPoints)), PName[MAX_PLAYER_NAME], string[128];
- GetPlayerName(playerid, PName, sizeof(PName));
- PizzaJob[playerid] =1;
- SetPlayerCheckpoint(playerid,CheckPoints[rand][0],CheckPoints[rand][1],CheckPoints[rand][2],CheckPoints[rand][3]);
- GameTextForPlayer(playerid, "~w~Follow The ~w~CheckPoints", 5000, 5);
- format(string, sizeof(string), "[PIZZAJOB] {ffc8ff}%s(%d) {FFFFFF}Is Now A PizzaBoy.",PName,playerid);
- SendClientMessageToAll(0xFFA500AA, string);
- return 1;
- }
- SendClientMessage(playerid, 0xD2691EAA,"You Must Be On A Pizza Bike To Start The Job.");
- return 1;
- }
- return 0;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(PizzaJob[playerid] == 1)
- {
- PizzaJob[playerid] =0;
- DisablePlayerCheckpoint(playerid);
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 448)
- {
- if(PizzaJob[playerid] == 1)
- {
- new string[128];
- new PName[MAX_PLAYER_NAME];
- GetPlayerName(playerid, PName, sizeof(PName));
- PizzaJob[playerid] =0;
- DisablePlayerCheckpoint(playerid);
- GameTextForPlayer(playerid, "~w~You Have Done You Job~n~And Recived ~g~$500 + 1 Score", 5000, 5);
- GivePlayerMoney(playerid,500);
- SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
- format(string, sizeof(string), "[PIZZAJOB] {ffc8ff}%s(%d) {FFFFFF}Has Done His Pizza Job And Recived {00ae00}$500 + 1 Score ",PName,playerid);
- SendClientMessageToAll(0xFFA500AA, string);
- return 1;
- }
- DisablePlayerCheckpoint(playerid);
- PizzaJob[playerid] =0;
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == PJPickup)
- {
- GameTextForPlayer(playerid, "/Pizza", 5000, 1);
- return 1;
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement