Advertisement
Guest User

News Paper Boy Job FS by ZackBoolaro

a guest
Jan 1st, 2013
1,317
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 18.66 KB | None | 0 0
  1. /*=========================Pizza Boy Job========================================
  2. ===========================Don't touch the credits or die=======================
  3. ===========================Made only for SAMP Forums============================
  4. ===========================Do not re-distribute without premissions=============
  5. ===========================Credits for scripting: ZackBoolaro===================
  6. ===========================Credits for mapping: ZackBoolaro=====================
  7. ===========================Bug Test Result: No BUGS=============================
  8. ===========================If you find bugs please report on the forums=========
  9. ===========================Version of the [FS] is 1.0.010=======================
  10. The last three nubers of the version contains how many times have i compiled the
  11. script. Do not change the version of the script !
  12. Modifications/Implemention to/of the script are allowed only if you ask premissions from me -
  13. ZackBoolaro at the samp forums here: http://forum.sa-mp.com/member.php?u=181716
  14. PM me about: Editing Premissions
  15. */
  16. #define FILTERSCRIPT
  17.  
  18. #include <a_samp>
  19. #include <zcmd>
  20. #include <streamer>
  21.  
  22. #define COLOR_LIGHTRED 0xFF6347AA
  23.  
  24. new NPVehicles[8];
  25.  
  26. new NPBoy[MAX_PLAYERS];
  27.  
  28. public OnFilterScriptInit()
  29. {
  30.     print("\n--------------------------------------");
  31.     print(" Newspaper Boy Job[FS] by ZackBoolaro LOADED ");
  32.     print("--------------------------------------\n");
  33.     NPVehicles[0] = AddStaticVehicleEx(510,1815.5999756,-1285.8000488,13.3000002,45.0000000,42,119,15); //Mountain Bike
  34.     NPVehicles[1] = AddStaticVehicleEx(510,1814.4000244,-1287.0000000,13.3000002,45.0000000,42,119,15); //Mountain Bike
  35.     NPVehicles[2] = AddStaticVehicleEx(510,1813.0000000,-1288.4000244,13.3000002,45.0000000,42,119,15); //Mountain Bike
  36.     NPVehicles[3] = AddStaticVehicleEx(510,1811.4000244,-1290.0000000,13.3000002,45.0000000,42,119,15); //Mountain Bike
  37.     NPVehicles[4] = AddStaticVehicleEx(510,1810.0000000,-1291.4000244,13.3000002,45.0000000,42,119,15); //Mountain Bike
  38.     NPVehicles[5] = AddStaticVehicleEx(510,1808.5999756,-1292.8000488,13.3000002,45.0000000,42,119,15); //Mountain Bike
  39.     NPVehicles[6] = AddStaticVehicleEx(510,1807.0000000,-1294.4000244,13.3000002,45.0000000,42,119,15); //Mountain Bike
  40.     NPVehicles[7] = AddStaticVehicleEx(510,1805.5999756,-1295.8000488,13.3000002,45.0000000,42,119,15); //Mountain Bike
  41.     CreateDynamicObject(970,1816.5000000,-1273.8000488,13.1999998,0.0000000,0.0000000,90.0000000); //object(fencesmallb) (1)
  42.     CreateDynamicObject(970,1815.9000244,-1287.1999512,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (2)
  43.     CreateDynamicObject(970,1817.5000000,-1285.5999756,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (3)
  44.     CreateDynamicObject(970,1814.5000000,-1288.5999756,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (4)
  45.     CreateDynamicObject(970,1813.0999756,-1290.0000000,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (5)
  46.     CreateDynamicObject(970,1811.6999512,-1291.4000244,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (6)
  47.     CreateDynamicObject(970,1810.0999756,-1293.0000000,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (7)
  48.     CreateDynamicObject(970,1808.6999512,-1294.4000244,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (8)
  49.     CreateDynamicObject(970,1807.0999756,-1296.0000000,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (9)
  50.     CreateDynamicObject(970,1805.5000000,-1297.5999756,13.1000004,0.0000000,0.0000000,315.0000000); //object(fencesmallb) (10)
  51.     CreateDynamicObject(1285,1815.8000488,-1274.5000000,13.3000002,0.0000000,0.0000000,95.0000000); //object(newstandnew5) (1)
  52.     CreateDynamicObject(1285,1815.9000244,-1275.1999512,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (2)
  53.     CreateDynamicObject(1285,1816.0000000,-1275.9000244,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (3)
  54.     CreateDynamicObject(1285,1816.0999756,-1276.5999756,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (4)
  55.     CreateDynamicObject(1285,1816.1999512,-1277.3000488,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (5)
  56.     CreateDynamicObject(1285,1816.3000488,-1278.0000000,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (6)
  57.     CreateDynamicObject(1285,1816.4000244,-1278.6999512,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (7)
  58.     CreateDynamicObject(1285,1816.5000000,-1279.4000244,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (8)
  59.     CreateDynamicObject(1285,1816.5999756,-1280.0999756,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (9)
  60.     CreateDynamicObject(1285,1816.6999512,-1280.8000488,13.3000002,0.0000000,0.0000000,94.9987793); //object(newstandnew5) (10)
  61.     CreateDynamicObject(1291,1798.1999512,-1295.3000488,12.8999996,0.0000000,0.0000000,0.0000000); //object(postbox1) (1)
  62.     Create3DTextLabel("/delivernp to start delivering the NewsPaper", COLOR_LIGHTRED, 1815.3312,-1277.5940,13.6641, 30.0, 0, 0); // Text Label
  63.     Create3DTextLabel("/joinnpb to become a NewsPaper Boy", COLOR_LIGHTRED, 1786.7367,-1300.7949,13.6079, 30.0, 0, 0); // Text Label
  64.     return 1;
  65. }
  66.  
  67. stock IsANPBCar(npbid)
  68. {
  69.     for(new npb = 0; npb < sizeof(NPVehicles); npb++) {
  70.         if(npbid == NPVehicles[npb]) return 1;
  71.     }
  72.     return 0;
  73. }
  74.  
  75. public OnFilterScriptExit()
  76. {
  77.     print("\n--------------------------------------");
  78.     print(" Newspaper Boy Job[FS] by ZackBoolaro UNLOADED ");
  79.     print("--------------------------------------\n");
  80.     return 1;
  81. }
  82.  
  83.  
  84. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  85. {
  86.     if(NPBoy[playerid] == 0 && IsANPBCar(vehicleid))
  87.     {
  88.         new Float:x, Float:y, Float:z;
  89.         GetPlayerPos(playerid, x, y, z);
  90.         SetPlayerPos(playerid, x, y, z+1.3);
  91.         PlayerPlaySound(playerid, 1130, x, y, z+1.3);
  92.         RemovePlayerFromVehicle(playerid);
  93.         SendClientMessage(playerid, COLOR_LIGHTRED, "You can't enter the car, you are not a News Paper Boy !");
  94.     }
  95.     return 1;
  96. }
  97.  
  98. public OnPlayerExitVehicle(playerid, vehicleid)
  99. {
  100.     if(GetPVarType(playerid, "DeliveringNP") && NPBoy[playerid] == 1)
  101.     {
  102.     DeletePVar(playerid, "DeliveringNP");
  103.     SendClientMessage(playerid, COLOR_LIGHTRED, "You left your bike, and you stopped delivering papers, in order to do so get back to the NP Building.");
  104.     DisablePlayerRaceCheckpoint(playerid);
  105.     }
  106.     return 1;
  107. }
  108.  
  109. CMD:joinnpb(playerid, params[])
  110. {
  111.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1786.7367,-1300.7949,13.6079))
  112.     {
  113.         SetPVarInt(playerid, "NPB", 1);
  114.         SendClientMessage(playerid, COLOR_LIGHTRED, "Type /acceptnpb to become a News Paper Boy!");
  115.     } else {
  116.     SendClientMessage(playerid, COLOR_LIGHTRED, "You are not in Range of SANews building.");
  117.     }
  118.     return 1;
  119. }
  120.  
  121. CMD:acceptnpb(playerid, params[])
  122. {
  123.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1786.7367,-1300.7949,13.6079) && GetPVarType(playerid, "NPB"))
  124.     {
  125.         NPBoy[playerid] = 1;
  126.         SendClientMessage(playerid, COLOR_LIGHTRED, "You are now a News Paper Boy!");
  127.         DeletePVar(playerid, "NPB");
  128.     } else {
  129.     SendClientMessage(playerid, COLOR_LIGHTRED, "You gotta type /joinnpb first!");
  130.     }
  131.     return 1;
  132. }
  133.  
  134. CMD:delivernp(playerid, params[])
  135. {
  136.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1815.3312,-1277.5940,13.6641) && NPBoy[playerid] == 1)
  137.     {
  138.     SetPVarInt(playerid, "DeliveringNP", 1);
  139.     SendClientMessage(playerid, COLOR_LIGHTRED, "You are now delivering the city's newspaper.");
  140.     SetPlayerCheckpoint(playerid, 1892.8652,-1128.9633,23.8613, 5.0);
  141.     } else {
  142.     SendClientMessage(playerid, COLOR_LIGHTRED, "You are not at NP building, in order to start delivering you gotta be there.");
  143.     }
  144.     return 1;
  145. }
  146.  
  147. CMD:stopdelivering(playerid, params[])
  148. {
  149.     if(GetPVarType(playerid, "DeliveringNP") && NPBoy[playerid] ==1)
  150.     {
  151.     DeletePVar(playerid, "DeliveringNP");
  152.     RemovePlayerFromVehicle(playerid);
  153.     DisablePlayerRaceCheckpoint(playerid);
  154.     SendClientMessage(playerid, COLOR_LIGHTRED, "You are stopped delivering and you've been kicked out of the vehicle.");
  155.     } else {
  156.     SendClientMessage(playerid, COLOR_LIGHTRED, "You are not delivering and/or you are not a News Paper Boy!");
  157.     }
  158.     return 1;
  159. }
  160.  
  161. public OnPlayerEnterRaceCheckpoint(playerid)
  162. {
  163.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1892.8652,-1128.9633,23.8613) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  164.     {
  165.     SetPlayerRaceCheckpoint(playerid, 0,1910.5698,-1127.7013,24.3153, 0, 0,0, 5.0);
  166.     }
  167.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1910.5698,-1127.7013,24.3153) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  168.     {
  169.     SetPlayerRaceCheckpoint(playerid, 0, 1922.7101,-1127.5437,24.6200,0, 0,0, 5.0);
  170.     }
  171.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1922.7101,-1127.5437,24.6200) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  172.     {
  173.     SetPlayerRaceCheckpoint(playerid, 0, 1935.3966,-1127.6398,24.9208,0, 0,0, 5.0);
  174.     }
  175.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1935.3966,-1127.6398,24.9208) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  176.     {
  177.     SetPlayerRaceCheckpoint(playerid, 0, 1955.3051,-1127.9552,25.4240,0, 0,0, 5.0);
  178.     }
  179.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1955.3051,-1127.9552,25.4240) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  180.     {
  181.     SetPlayerRaceCheckpoint(playerid, 0, 1999.3730,-1129.3199,25.0862,0, 0,0, 5.0);
  182.     }
  183.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1999.3730,-1129.3199,25.0862) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  184.     {
  185.     SetPlayerRaceCheckpoint(playerid, 0, 2023.0809,-1128.4589,24.4188,0, 0,0, 5.0);
  186.     }
  187.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2023.0809,-1128.4589,24.4188) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  188.     {
  189.     SetPlayerRaceCheckpoint(playerid, 0, 2052.1731,-1127.4674,23.5879,0, 0,0, 5.0);
  190.     }
  191.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2052.1731,-1127.4674,23.5879) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  192.     {
  193.     SetPlayerRaceCheckpoint(playerid, 0, 2077.6431,-1122.7905,23.6244,0, 0,0, 5.0);
  194.     }
  195.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2077.6431,-1122.7905,23.6244) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  196.     {
  197.     SetPlayerRaceCheckpoint(playerid, 0, 2350.9204,-1162.5967,26.9414,0, 0,0, 5.0);
  198.     }
  199.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2350.9204,-1162.5967,26.9414) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  200.     {
  201.     SetPlayerRaceCheckpoint(playerid, 0, 2366.5081,-1197.6523,26.9864,0, 0,0, 5.0);
  202.     }
  203.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2366.5081,-1197.6523,26.9864) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  204.     {
  205.     SetPlayerRaceCheckpoint(playerid, 0, 2376.5500,-1275.7950,23.5722,0, 0,0, 5.0);
  206.     }
  207.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2376.5500,-1275.7950,23.5722) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  208.     {
  209.     SetPlayerRaceCheckpoint(playerid, 0, 2378.4927,-1325.7792,23.5584,0, 0,0, 5.0);
  210.     }
  211.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.4927,-1325.7792,23.5584) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  212.     {
  213.     SetPlayerRaceCheckpoint(playerid, 0, 2378.3125,-1345.9044,23.5611,0, 0,0, 5.0);
  214.     }
  215.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.3125,-1345.9044,23.5611) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  216.     {
  217.     SetPlayerRaceCheckpoint(playerid, 0, 2378.0193,-1364.6858,23.5561,0, 0,0, 5.0);
  218.     }
  219.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2378.0193,-1364.6858,23.5561) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  220.     {
  221.     SetPlayerRaceCheckpoint(playerid, 0, 2402.4192,-1724.3811,13.1474,0, 0,0, 5.0);
  222.     }
  223.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2402.4192,-1724.3811,13.1474) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  224.     {
  225.     SetPlayerRaceCheckpoint(playerid, 0, 2390.3557,-1724.2540,13.1269,0, 0,0, 5.0);
  226.     }
  227.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2390.3557,-1724.2540,13.1269) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  228.     {
  229.     SetPlayerRaceCheckpoint(playerid, 0, 2319.1663,-1723.6019,13.0823,0, 0,0, 5.0);
  230.     }
  231.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2319.1663,-1723.6019,13.0823) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  232.     {
  233.     SetPlayerRaceCheckpoint(playerid, 0, 2310.2207,-1723.5612,13.1159,0, 0,0, 5.0);
  234.     }
  235.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2310.2207,-1723.5612,13.1159) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  236.     {
  237.     SetPlayerRaceCheckpoint(playerid, 0, 2262.8872,-1752.5686,12.9525,0, 0,0, 5.0);
  238.     }
  239.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2262.8872,-1752.5686,12.9525) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  240.     {
  241.     SetPlayerRaceCheckpoint(playerid, 0, 2297.9568,-1752.8525,12.9478,0, 0,0, 5.0);
  242.     }
  243.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2297.9568,-1752.8525,12.9478) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  244.     {
  245.     SetPlayerRaceCheckpoint(playerid, 0, 2336.1619,-1752.9246,12.9580,0, 0,0, 5.0);
  246.     }
  247.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2336.1619,-1752.9246,12.9580) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  248.     {
  249.     SetPlayerRaceCheckpoint(playerid, 0, 2371.1050,-1752.9904,12.9387,0, 0,0, 5.0);
  250.     }
  251.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2371.1050,-1752.9904,12.9387) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  252.     {
  253.     SetPlayerRaceCheckpoint(playerid, 0, 2306.8257,-1665.4425,14.1134,0, 0,0, 5.0);
  254.     }
  255.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2306.8257,-1665.4425,14.1134) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  256.     {
  257.     SetPlayerRaceCheckpoint(playerid, 0, 2366.1140,-1665.8473,13.1034,0, 0,0, 5.0);
  258.     }
  259.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2366.1140,-1665.8473,13.1034) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  260.     {
  261.     SetPlayerRaceCheckpoint(playerid, 0, 2385.2559,-1666.3292,13.1172,0, 0,0, 5.0);
  262.     }
  263.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2385.2559,-1666.3292,13.1172) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  264.     {
  265.     SetPlayerRaceCheckpoint(playerid, 0, 2408.2407,-1666.9655,13.1017,0, 0,0, 5.0);
  266.     }
  267.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2408.2407,-1666.9655,13.1017) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  268.     {
  269.     SetPlayerRaceCheckpoint(playerid, 0, 2494.3252,-1682.3666,12.8981,0, 0,0, 5.0);
  270.     }
  271.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2494.3252,-1682.3666,12.8981) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  272.     {
  273.     SetPlayerRaceCheckpoint(playerid, 0, 2505.3652,-1681.6534,13.1084,0, 0,0, 5.0);
  274.     }
  275.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2505.3652,-1681.6534,13.1084) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  276.     {
  277.     SetPlayerRaceCheckpoint(playerid, 0, 2511.4209,-1672.6965,13.0089,0, 0,0, 5.0);
  278.     }
  279.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2511.4209,-1672.6965,13.0089) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  280.     {
  281.     SetPlayerRaceCheckpoint(playerid, 0, 2511.2000,-1663.6833,13.1542,0, 0,0, 5.0);
  282.     }
  283.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2511.2000,-1663.6833,13.1542) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  284.     {
  285.     SetPlayerRaceCheckpoint(playerid, 0, 2506.1387,-1657.3492,13.1540,0, 0,0, 5.0);
  286.     }
  287.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2506.1387,-1657.3492,13.1540) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  288.     {
  289.     SetPlayerRaceCheckpoint(playerid, 0, 2497.4653,-1652.5718,13.0224,0, 0,0, 5.0);
  290.     }
  291.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2497.4653,-1652.5718,13.0224) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  292.     {
  293.     SetPlayerRaceCheckpoint(playerid, 0, 2487.1057,-1652.0659,13.0493,0, 0,0, 5.0);
  294.     }
  295.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2487.1057,-1652.0659,13.0493) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  296.     {
  297.     SetPlayerRaceCheckpoint(playerid, 0, 2469.5320,-1652.3706,13.0266,0, 0,0, 5.0);
  298.     }
  299.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2469.5320,-1652.3706,13.0266) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  300.     {
  301.     SetPlayerRaceCheckpoint(playerid, 0, 2452.8955,-1652.2856,12.9471,0, 0,0, 5.0);
  302.     }
  303.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2452.8955,-1652.2856,12.9471) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  304.     {
  305.     SetPlayerRaceCheckpoint(playerid, 0, 2415.3684,-1651.3464,13.0835,0, 0,0, 5.0);
  306.     }
  307.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2415.3684,-1651.3464,13.0835) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  308.     {
  309.     SetPlayerRaceCheckpoint(playerid, 0, 2393.8899,-1651.1527,13.1168,0, 0,0, 5.0);
  310.     }
  311.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2393.8899,-1651.1527,13.1168) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  312.     {
  313.     SetPlayerRaceCheckpoint(playerid, 0, 2363.1104,-1651.2174,13.1096,0, 0,0, 5.0);
  314.     }
  315.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2363.1104,-1651.2174,13.1096) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  316.     {
  317.     SetPlayerRaceCheckpoint(playerid, 0, 2281.0745,-1651.6519,14.7354,0, 0,0, 5.0);
  318.     }
  319.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2281.0745,-1651.6519,14.7354) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  320.     {
  321.     SetPlayerRaceCheckpoint(playerid, 0, 2257.1074,-1649.6342,15.0343,0, 0,0, 5.0);
  322.     }
  323.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2257.1074,-1649.6342,15.0343) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  324.     {
  325.     SetPlayerRaceCheckpoint(playerid, 0, 2237.9353,-1645.2035,15.0412,0, 0,0, 5.0);
  326.     }
  327.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 2237.9353,-1645.2035,15.0412) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  328.     {
  329.     SetPlayerRaceCheckpoint(playerid, 0, 1787.4531,-1294.2441,13.0736,0, 0,0, 5.0);
  330.     }
  331.     if(IsPlayerInRangeOfPoint(playerid, 7.0, 1787.4531,-1294.2441,13.0736) && GetPVarType(playerid, "DeliveringNP") && IsPlayerInRaceCheckpoint(playerid))
  332.     {
  333.     GivePlayerMoney(playerid, 90);
  334.     SetPlayerRaceCheckpoint(playerid, 0, 1892.8652,-1128.9633,23.8613,0, 0,0, 5.0);
  335.     GameTextForPlayer(playerid, "~p~ You delivered all papers, you got ~r~90$ ~p~for that", 3000, 4);
  336.     DisablePlayerRaceCheckpoint(playerid);
  337.     }
  338.     return 1;
  339. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement