Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*=========================Pizza Boy Job========================================
- ===========================Don't touch the credits or die=======================
- ===========================Made only for SAMP Forums============================
- ===========================Do not re-distribute without premissions=============
- ===========================Credits for scripting: ZackBoolaro===================
- ===========================Credits for mapping: ZackBoolaro=====================
- ===========================Bug Test Result: No BUGS=============================
- ===========================If you find bugs please report on the forums=========
- ===========================Version of the [FS] is 1.0.010=======================
- The last three nubers of the version contains how many times have i compiled the
- script. Do not change the version of the script !
- Modifications/Implemention to/of the script are allowed only if you ask premissions from me -
- ZackBoolaro at the samp forums here: http://forum.sa-mp.com/member.php?u=181716
- PM me about: Editing Premissions
- */
- #define FILTERSCRIPT
- #include <a_samp>
- #include <zcmd>
- #include <streamer>
- #define COLOR_LIGHTRED 0xFF6347AA
- new NPVehicles[8];
- new NPBoy[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Newspaper Boy Job[FS] by ZackBoolaro LOADED ");
- print("--------------------------------------\n");
- NPVehicles[0] = AddStaticVehicleEx(510,1815.5999756,-1285.8000488,13.3000002,45.0000000,42,119,15); //Mountain Bike
- NPVehicles[1] = AddStaticVehicleEx(510,1814.4000244,-1287.0000000,13.3000002,45.0000000,42,119,15); //Mountain Bike
- NPVehicles[2] = AddStaticVehicleEx(510,1813.0000000,-1288.4000244,13.3000002,45.0000000,42,119,15); //Mountain Bike
- NPVehicles[3] = AddStaticVehicleEx(510,1811.4000244,-1290.0000000,13.3000002,45.0000000,42,119,15); //Mountain Bike
- NPVehicles[4] = AddStaticVehicleEx(510,1810.0000000,-1291.4000244,13.3000002,45.0000000,42,119,15); //Mountain Bike
- NPVehicles[5] = AddStaticVehicleEx(510,1808.5999756,-1292.8000488,13.3000002,45.0000000,42,119,15); //Mountain Bike
- NPVehicles[6] = AddStaticVehicleEx(510,1807.0000000,-1294.4000244,13.3000002,45.0000000,42,119,15); //Mountain Bike
- NPVehicles[7] = AddStaticVehicleEx(510,1805.5999756,-1295.8000488,13.3000002,45.0000000,42,119,15); //Mountain Bike
- CreateDynamicObject(970,1816.5000000,-1273.8000488,13.1999998,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (1)
- CreateDynamicObject(970,1815.9000244,-1287.1999512,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (2)
- CreateDynamicObject(970,1817.5000000,-1285.5999756,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (3)
- CreateDynamicObject(970,1814.5000000,-1288.5999756,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (4)
- CreateDynamicObject(970,1813.0999756,-1290.0000000,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (5)
- CreateDynamicObject(970,1811.6999512,-1291.4000244,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (6)
- CreateDynamicObject(970,1810.0999756,-1293.0000000,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (7)
- CreateDynamicObject(970,1808.6999512,-1294.4000244,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (8)
- CreateDynamicObject(970,1807.0999756,-1296.0000000,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (9)
- CreateDynamicObject(970,1805.5000000,-1297.5999756,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (10)
- CreateDynamicObject(1285,1815.8000488,-1274.5000000,13.3000002,0.0000000,0.0000000,95.0000000); //object(newstandnew5) (1)
- CreateDynamicObject(1285,1815.9000244,-1275.1999512,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (2)
- CreateDynamicObject(1285,1816.0000000,-1275.9000244,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (3)
- CreateDynamicObject(1285,1816.0999756,-1276.5999756,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (4)
- CreateDynamicObject(1285,1816.1999512,-1277.3000488,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (5)
- CreateDynamicObject(1285,1816.3000488,-1278.0000000,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (6)
- CreateDynamicObject(1285,1816.4000244,-1278.6999512,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (7)
- CreateDynamicObject(1285,1816.5000000,-1279.4000244,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (8)
- CreateDynamicObject(1285,1816.5999756,-1280.0999756,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (9)
- CreateDynamicObject(1285,1816.6999512,-1280.8000488,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (10)
- CreateDynamicObject(1291,1798.1999512,-1295.3000488,12.8999996,0.0000000,0.0000000,0.0000000); //object(postbox1) (1)
- Create3DTextLabel("/delivernp to start delivering the NewsPaper", COLOR_LIGHTRED, 1815.3312,-1277.5940,13.6641, 30.0, 0, 0); // Text Label
- Create3DTextLabel("/joinnpb to become a NewsPaper Boy", COLOR_LIGHTRED, 1786.7367,-1300.7949,13.6079, 30.0, 0, 0); // Text Label
- return 1;
- }
- stock IsANPBCar(npbid)
- {
- for(new npb = 0; npb < sizeof(NPVehicles); npb++) {
- if(npbid == NPVehicles[npb]) return 1;
- }
- return 0;
- }
- public OnFilterScriptExit()
- {
- print("\n--------------------------------------");
- print(" Newspaper Boy Job[FS] by ZackBoolaro UNLOADED ");
- print("--------------------------------------\n");
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(NPBoy[playerid] == 0 && IsANPBCar(vehicleid))
- {
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- SetPlayerPos(playerid, x, y, z+1.3);
- PlayerPlaySound(playerid, 1130, x, y, z+1.3);
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You can't enter the car, you are not a News Paper Boy !");
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(GetPVarType(playerid, "DeliveringNP") && NPBoy[playerid] == 1)
- {
- DeletePVar(playerid, "DeliveringNP");
- SendClientMessage(playerid, COLOR_LIGHTRED, "You left your bike, and you stopped delivering papers, in order to do so get back to the NP Building.");
- DisablePlayerRaceCheckpoint(playerid);
- }
- return 1;
- }
- CMD:joinnpb(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1786.7367,-1300.7949,13.6079))
- {
- SetPVarInt(playerid, "NPB", 1);
- SendClientMessage(playerid, COLOR_LIGHTRED, "Type /acceptnpb to become a News Paper Boy!");
- } else {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not in Range of SANews building.");
- }
- return 1;
- }
- CMD:acceptnpb(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1786.7367,-1300.7949,13.6079) && GetPVarType(playerid, "NPB"))
- {
- NPBoy[playerid] = 1;
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are now a News Paper Boy!");
- DeletePVar(playerid, "NPB");
- } else {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You gotta type /joinnpb first!");
- }
- return 1;
- }
- CMD:delivernp(playerid, params[])
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1815.3312,-1277.5940,13.6641) && NPBoy[playerid] == 1)
- {
- SetPVarInt(playerid, "DeliveringNP", 1);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are now delivering the city's newspaper.");
- SetPlayerCheckpoint(playerid, 1892.8652,-1128.9633,23.8613, 5.0);
- } else {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not at NP building, in order to start delivering you gotta be there.");
- }
- return 1;
- }
- CMD:stopdelivering(playerid, params[])
- {
- if(GetPVarType(playerid, "DeliveringNP") && NPBoy[playerid] ==1)
- {
- DeletePVar(playerid, "DeliveringNP");
- RemovePlayerFromVehicle(playerid);
- DisablePlayerRaceCheckpoint(playerid);
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are stopped delivering and you've been kicked out of the vehicle.");
- } else {
- SendClientMessage(playerid, COLOR_LIGHTRED, "You are not delivering and/or you are not a News Paper Boy!");
- }
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1892.8652,-1128.9633,23.8613) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0,1910.5698,-1127.7013,24.3153, 0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1910.5698,-1127.7013,24.3153) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 1922.7101,-1127.5437,24.6200,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1922.7101,-1127.5437,24.6200) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 1935.3966,-1127.6398,24.9208,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1935.3966,-1127.6398,24.9208) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 1955.3051,-1127.9552,25.4240,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1955.3051,-1127.9552,25.4240) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 1999.3730,-1129.3199,25.0862,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1999.3730,-1129.3199,25.0862) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2023.0809,-1128.4589,24.4188,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2023.0809,-1128.4589,24.4188) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2052.1731,-1127.4674,23.5879,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2052.1731,-1127.4674,23.5879) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2077.6431,-1122.7905,23.6244,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2077.6431,-1122.7905,23.6244) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2350.9204,-1162.5967,26.9414,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2350.9204,-1162.5967,26.9414) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2366.5081,-1197.6523,26.9864,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2366.5081,-1197.6523,26.9864) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2376.5500,-1275.7950,23.5722,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2376.5500,-1275.7950,23.5722) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2378.4927,-1325.7792,23.5584,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.4927,-1325.7792,23.5584) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2378.3125,-1345.9044,23.5611,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.3125,-1345.9044,23.5611) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2378.0193,-1364.6858,23.5561,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.0193,-1364.6858,23.5561) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2402.4192,-1724.3811,13.1474,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2402.4192,-1724.3811,13.1474) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2390.3557,-1724.2540,13.1269,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2390.3557,-1724.2540,13.1269) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2319.1663,-1723.6019,13.0823,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2319.1663,-1723.6019,13.0823) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2310.2207,-1723.5612,13.1159,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2310.2207,-1723.5612,13.1159) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2262.8872,-1752.5686,12.9525,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2262.8872,-1752.5686,12.9525) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2297.9568,-1752.8525,12.9478,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2297.9568,-1752.8525,12.9478) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2336.1619,-1752.9246,12.9580,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2336.1619,-1752.9246,12.9580) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2371.1050,-1752.9904,12.9387,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2371.1050,-1752.9904,12.9387) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2306.8257,-1665.4425,14.1134,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2306.8257,-1665.4425,14.1134) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2366.1140,-1665.8473,13.1034,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2366.1140,-1665.8473,13.1034) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2385.2559,-1666.3292,13.1172,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2385.2559,-1666.3292,13.1172) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2408.2407,-1666.9655,13.1017,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2408.2407,-1666.9655,13.1017) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2494.3252,-1682.3666,12.8981,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2494.3252,-1682.3666,12.8981) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2505.3652,-1681.6534,13.1084,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.3652,-1681.6534,13.1084) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2511.4209,-1672.6965,13.0089,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2511.4209,-1672.6965,13.0089) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2511.2000,-1663.6833,13.1542,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2511.2000,-1663.6833,13.1542) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2506.1387,-1657.3492,13.1540,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2506.1387,-1657.3492,13.1540) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2497.4653,-1652.5718,13.0224,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2497.4653,-1652.5718,13.0224) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2487.1057,-1652.0659,13.0493,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2487.1057,-1652.0659,13.0493) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2469.5320,-1652.3706,13.0266,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2469.5320,-1652.3706,13.0266) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2452.8955,-1652.2856,12.9471,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2452.8955,-1652.2856,12.9471) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2415.3684,-1651.3464,13.0835,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2415.3684,-1651.3464,13.0835) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2393.8899,-1651.1527,13.1168,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2393.8899,-1651.1527,13.1168) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2363.1104,-1651.2174,13.1096,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2363.1104,-1651.2174,13.1096) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2281.0745,-1651.6519,14.7354,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2281.0745,-1651.6519,14.7354) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2257.1074,-1649.6342,15.0343,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2257.1074,-1649.6342,15.0343) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 2237.9353,-1645.2035,15.0412,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 2237.9353,-1645.2035,15.0412) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- SetPlayerRaceCheckpoint(playerid, 0, 1787.4531,-1294.2441,13.0736,0, 0,0, 5.0);
- }
- if(IsPlayerInRangeOfPoint(playerid, 7.0, 1787.4531,-1294.2441,13.0736) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
- {
- GivePlayerMoney(playerid, 90);
- SetPlayerRaceCheckpoint(playerid, 0, 1892.8652,-1128.9633,23.8613,0, 0,0, 5.0);
- GameTextForPlayer(playerid, "~p~ You delivered all papers, you got ~r~90$ ~p~for that", 3000, 4);
- DisablePlayerRaceCheckpoint(playerid);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement