Advertisement
Yossef_Jones

toysjob

May 15th, 2013
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 33.87 KB | None | 0 0
  1. /*
  2. ||////////// * Filterscript * ////////////||
  3. ||                                        ||
  4. ||    ****  ****   ****   ****   ****     ||
  5. ||                                        ||
  6. ||          By     (*_*)     Teddy        ||
  7. ||                                        ||
  8. ||    ****  ****   ****   ****   ****     ||
  9. ||                                        ||
  10. ||\\\\\\\\\\ * Filterscript * \\\\\\\\\\\\||
  11.  
  12.    This filterscript is a Job [ToysJob]
  13.    - Put a IceCream.amx on Filterscript
  14.     and in server.cfg on Filterscript
  15.    and restart your server [* Enjoy *]
  16. */
  17. #include <a_samp>
  18. #include <streamer>
  19. #include <dcmd>
  20. #define COLOR_DARKGOLD 0x808000AA
  21. #define COLOR_RED 0xFF0000AA
  22. #define COLOR_YELLOW 0xFFFF00AA
  23. #define COLOR_AQUA 0x00FFFFFF
  24. #define COLOR_GREEN   "{6EF83C}"
  25. #define color_green                       "{6EF83C}"
  26. #define color_white                       "{FFFFFF}"
  27. new ToysJob[256];
  28. new payy = 40000;
  29. new info;
  30. public OnFilterScriptInit()
  31. {
  32.    info = CreatePickup(1239,1,1381.6631,-1653.1331,13.5469,-1);
  33.    AddStaticVehicleEx(606, 1359.9990, -1658.6787, 13.2808, 271.3005, 175, 1,100);//
  34.    AddStaticVehicleEx(606, 1359.9703, -1651.0188, 13.2808, 268.6176, 224, 1,100);//
  35.    AddStaticVehicleEx(606, 1360.0640, -1643.3961, 13.2808, 268.6176, 223, 1,100);//
  36.    AddStaticVehicleEx(606, 1360.0640, -1635.4344, 13.2808, 268.6176, 175, 1,100);//
  37.    AddStaticVehicle(485, 1364.2739, -1658.5023, 12.9839, 268.3798, 226, 226);//
  38.    AddStaticVehicle(485, 1364.3210, -1651.1115, 12.9839, 268.3798, 226, 226);//
  39.    AddStaticVehicle(485, 1364.3669, -1643.4794, 12.9839, 268.3798, 226, 226);//
  40.    AddStaticVehicle(485, 1364.4948, -1635.5806, 12.9839, 268.3798, 226, 221);//
  41.    new reclama2 = CreateObject(4735, 1358.53821, -1648.58777, 19.37672,   0.00000, 0.00000, 180.65437);
  42.    SetObjectMaterialText(reclama2, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
  43.    new reclama22 = CreateObject(4735, 1368.33899, -1663.24841, 15.21950,   0.00000, 0.00000, 91.54780);
  44.    SetObjectMaterialText(reclama22, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
  45.    new reclama222 = CreateObject(4735, 1369.60559, -1632.65588, 15.25549,   0.00000, 0.00000, 91.14181);
  46.    SetObjectMaterialText(reclama222, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
  47.    new reclama2222 = CreateObject(4735, 1368.43079, -1661.92639, 15.18750,   0.00000, 0.00000, 271.52191);
  48.    SetObjectMaterialText(reclama2222, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
  49.    new reclama22222 = CreateObject(4735, 1369.78491, -1630.70435, 15.45951,   0.00000, 0.00000, 271.52188);
  50.    SetObjectMaterialText(reclama22222, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
  51.    Create3DTextLabel(""color_green"Info Job \n "color_white" Toys ", COLOR_RED ,1381.6631,-1653.1331,13.5469,100.0,0);
  52.        //===================job jucari==========================================
  53.    CreateDynamicObject(11431, 1380.71, -1655.27, 13.79,   0.00, 0.00, 359.46);
  54.    CreateDynamicObject(2465, 1359.47, -1655.93, 12.75,   0.00, 0.00, 96.04);
  55.    CreateDynamicObject(2465, 1358.95, -1655.03, 12.75,   0.00, 0.00, 96.04);
  56.    CreateDynamicObject(2465, 1360.83, -1654.70, 13.38,   0.00, 0.00, 96.04);
  57.    CreateDynamicObject(2465, 1360.33, -1655.75, 12.75,   0.00, 0.00, 96.04);
  58.    CreateDynamicObject(2465, 1360.16, -1653.42, 12.75,   0.00, 0.00, 96.04);
  59.    CreateDynamicObject(2465, 1359.41, -1654.15, 12.75,   0.00, 0.00, 96.04);
  60.    CreateDynamicObject(2465, 1359.01, -1656.62, 12.75,   0.00, 0.00, 96.04);
  61.    CreateDynamicObject(2454, 1360.78, -1655.31, 12.14,   0.00, 0.00, 2.01);
  62.    CreateDynamicObject(2454, 1360.89, -1654.24, 12.14,   0.00, 0.00, 93.32);
  63.    CreateDynamicObject(2454, 1360.74, -1646.27, 12.14,   0.00, 0.00, 93.32);
  64.    CreateDynamicObject(2454, 1360.66, -1647.33, 12.14,   0.00, 0.00, 2.01);
  65.    CreateDynamicObject(2454, 1361.29, -1638.21, 12.14,   0.00, 0.00, 93.32);
  66.    CreateDynamicObject(2454, 1361.20, -1639.30, 12.14,   0.00, 0.00, 2.01);
  67.    CreateDynamicObject(2465, 1359.01, -1646.83, 12.75,   0.00, 0.00, 96.04);
  68.    CreateDynamicObject(2465, 1360.74, -1646.78, 13.38,   0.00, 0.00, 96.04);
  69.    CreateDynamicObject(2465, 1361.21, -1638.66, 13.38,   0.00, 0.00, 96.04);
  70.    CreateDynamicObject(2465, 1358.93, -1648.23, 12.75,   0.00, 0.00, 96.04);
  71.    CreateDynamicObject(2465, 1359.51, -1648.24, 12.75,   0.00, 0.00, 96.04);
  72.    CreateDynamicObject(2465, 1359.40, -1646.40, 12.75,   0.00, 0.00, 96.04);
  73.    CreateDynamicObject(2465, 1358.68, -1645.84, 12.75,   0.00, 0.00, 96.04);
  74.    CreateDynamicObject(2465, 1359.53, -1645.56, 12.75,   0.00, 0.00, 96.04);
  75.    CreateDynamicObject(2465, 1358.58, -1639.31, 12.75,   0.00, 0.00, 96.04);
  76.    CreateDynamicObject(2465, 1359.33, -1640.39, 12.75,   0.00, 0.00, 96.04);
  77.    CreateDynamicObject(2465, 1359.00, -1638.70, 12.75,   0.00, 0.00, 96.04);
  78.    CreateDynamicObject(2465, 1358.68, -1637.67, 12.75,   0.00, 0.00, 96.04);
  79.    CreateDynamicObject(2465, 1359.34, -1637.81, 12.75,   0.00, 0.00, 96.04);
  80.    CreateDynamicObject(2465, 1359.66, -1639.36, 12.75,   0.00, 0.00, 96.04);
  81.    CreateDynamicObject(2465, 1360.19, -1640.14, 12.75,   0.00, 0.00, 96.04);
  82.    CreateDynamicObject(19313, 1365.03, -1631.51, 15.25,   356.86, 0.00, 359.66);
  83.    CreateDynamicObject(19313, 1378.97, -1631.60, 15.25,   356.86, 0.00, 359.66);
  84.    CreateDynamicObject(19313, 1365.23, -1662.89, 15.25,   356.86, 0.00, 359.66);
  85.    CreateDynamicObject(19313, 1379.22, -1662.97, 15.25,   356.86, 0.00, 359.66);
  86.    return 1;
  87. }
  88. public OnPlayerCommandText(playerid, cmdtext[])
  89. {
  90.     if(strcmp("/Toys", cmdtext, true, 10) == 0)
  91.     {
  92.         new carid = GetPlayerVehicleID(playerid);
  93.         if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need to attach a trailer!!!");
  94.         if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
  95.         {
  96.             ToysJob[playerid] = 1;
  97.             new name[MAX_PLAYER_NAME], string[90];
  98.             GetPlayerName(playerid, name, sizeof(name));
  99.             format(string, sizeof(string), "* %s Distribute Toys.", name );
  100.             SendClientMessageToAll(COLOR_AQUA, string);
  101.             SetPlayerCheckpoint(playerid,1389.2355,-1648.4885,13.0308 ,4);
  102.             SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points Red on mapa!");
  103.             SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer *!");
  104.             return 1;
  105.         }
  106.         SendClientMessage(playerid, COLOR_RED,"Only Toys car Start jobs!");
  107.     }
  108.     return 0;
  109. }
  110.  
  111. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  112. {
  113.     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
  114.     {
  115.         SendClientMessage(playerid, COLOR_RED, "* Type /toys ");
  116.     }
  117.     return 0;
  118. }
  119. public OnPlayerEnterCheckpoint(playerid)
  120. {
  121.     new carid = GetPlayerVehicleID(playerid); //gets called on the next line
  122.     if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
  123.     {
  124.         if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  125.         if(ToysJob[playerid] == 1)
  126.         {
  127.         ToysJob[playerid] = 2;
  128.         SetTimerEx("Download", 1000, 0, "i", playerid);
  129.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  130.         CreateDynamicCP(1427.5007, -1672.4432, 14.4774, 3, -1, -1, playerid, 100.0);
  131.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  132.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  133.         }
  134.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  135.         else if(ToysJob[playerid] == 2)
  136.         {
  137.         ToysJob[playerid] = 3;
  138.         SetTimerEx("Download", 1000, 0, "i", playerid);
  139.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  140.         CreateDynamicCP(1425.1027, -1721.5803, 14.5483, 7, -1, -1, playerid, 100.0);
  141.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  142.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  143.         }
  144.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  145.         else if(ToysJob[playerid] == 3)
  146.         {
  147.         ToysJob[playerid] = 4;
  148.         SetTimerEx("Download", 1000, 0, "i", playerid);
  149.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  150.         CreateDynamicCP(1410.6516, -1730.3811, 14.2151, 7, -1, -1, playerid, 100.0);
  151.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  152.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  153.         }
  154.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  155.         else if(ToysJob[playerid] == 4)
  156.         {
  157.         ToysJob[playerid] = 5;
  158.         SetTimerEx("Download", 1000, 0, "i", playerid);
  159.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  160.         CreateDynamicCP(1387.4572, -1741.1908, 13.5979, 4, -1, -1, playerid, 100.0);
  161.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  162.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  163.         }
  164.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  165.         else if(ToysJob[playerid] == 5)
  166.         {
  167.         ToysJob[playerid] = 6;
  168.         SetTimerEx("Download", 1000, 0, "i", playerid);
  169.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  170.         CreateDynamicCP(1387.2692, -1782.8169, 13.8451, 3, -1, -1, playerid, 100.0);
  171.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  172.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  173.         }
  174.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  175.         else if(ToysJob[playerid] == 6)
  176.         {
  177.         ToysJob[playerid] = 7;
  178.         SetTimerEx("Download", 1000, 0, "i", playerid);
  179.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  180.         CreateDynamicCP(1393.7872, -1792.9460, 13.4968, 3, -1, -1, playerid, 100.0);
  181.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  182.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  183.         }
  184.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  185.         else if(ToysJob[playerid] == 7)
  186.         {
  187.         ToysJob[playerid] = 8;
  188.         SetTimerEx("Download", 1000, 0, "i", playerid);
  189.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  190.         CreateDynamicCP(1408.8057, -1806.2340, 14.0545, 3, -1, -1, playerid, 100.0);
  191.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  192.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  193.         }
  194.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  195.         else if(ToysJob[playerid] == 8)
  196.         {
  197.         ToysJob[playerid] = 9;
  198.         SetTimerEx("Download", 1000, 0, "i", playerid);
  199.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  200.         CreateDynamicCP(1413.4655, -1822.6245, 13.9238, 3, -1, -1, playerid, 100.0);
  201.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  202.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  203.         }
  204.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  205.         else if(ToysJob[playerid] == 9)
  206.         {
  207.         ToysJob[playerid] = 10;
  208.         SetTimerEx("Download", 1000, 0, "i", playerid);
  209.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  210.         CreateDynamicCP(1429.4153, -1833.5415, 14.0950, 3, -1, -1, playerid, 100.0);
  211.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  212.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  213.         }
  214.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  215.         else if(ToysJob[playerid] == 10)
  216.         {
  217.         ToysJob[playerid] = 11;
  218.         SetTimerEx("Download", 1000, 0, "i", playerid);
  219.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  220.         CreateDynamicCP(1445.0980, -1845.6223, 13.9536, 3, -1, -1, playerid, 100.0);
  221.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  222.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  223.         }
  224.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  225.         else if(ToysJob[playerid] == 11)
  226.         {
  227.         ToysJob[playerid] = 12;
  228.         SetTimerEx("Download", 1000, 0, "i", playerid);
  229.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  230.         CreateDynamicCP(1472.7076, -1844.8206, 13.6045, 3, -1, -1, playerid, 100.0);
  231.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  232.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  233.         }
  234.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  235.         else if(ToysJob[playerid] == 12)
  236.         {
  237.         ToysJob[playerid] = 13;
  238.         SetTimerEx("Download", 1000, 0, "i", playerid);
  239.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  240.         CreateDynamicCP(820.2725, -1615.4255, 10.7464, 3, -1, -1, playerid, 100.0);
  241.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  242.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  243.         }
  244.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  245.         else if(ToysJob[playerid] == 13)
  246.         {
  247.         ToysJob[playerid] = 14;
  248.         SetTimerEx("Download", 1000, 0, "i", playerid);
  249.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  250.         CreateDynamicCP(2865.2769, -1440.7775, 10.6242, 3, -1, -1, playerid, 100.0);
  251.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  252.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  253.         }
  254.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  255.         else if(ToysJob[playerid] == 14)
  256.         {
  257.         ToysJob[playerid] = 15;
  258.         SetTimerEx("Download", 1000, 0, "i", playerid);
  259.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  260.         CreateDynamicCP(2679.7996, -1249.2714, 54.1941, 3, -1, -1, playerid, 100.0);
  261.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  262.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  263.         }
  264.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  265.         else if(ToysJob[playerid] == 15)
  266.         {
  267.         ToysJob[playerid] = 16;
  268.         SetTimerEx("Download", 1000, 0, "i", playerid);
  269.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  270.         CreateDynamicCP(2505.9185, -1250.1543, 34.7091, 3, -1, -1, playerid, 100.0);
  271.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  272.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  273.         }
  274.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  275.         else if(ToysJob[playerid] == 16)
  276.         {
  277.         ToysJob[playerid] = 17;
  278.         SetTimerEx("Download", 1000, 0, "i", playerid);
  279.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  280.         CreateDynamicCP(2341.0293, -1242.0608, 22.1585, 3, -1, -1, playerid, 100.0);
  281.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  282.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  283.         }
  284.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  285.         else if(ToysJob[playerid] == 17)
  286.         {
  287.         ToysJob[playerid] = 18;
  288.         SetTimerEx("Download", 1000, 0, "i", playerid);
  289.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  290.         CreateDynamicCP(2230.8752, -1333.4706, 23.6404, 3, -1, -1, playerid, 100.0);
  291.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  292.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  293.         }
  294.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  295.         else if(ToysJob[playerid] == 18)
  296.         {
  297.         ToysJob[playerid] = 19;
  298.         SetTimerEx("Download", 1000, 0, "i", playerid);
  299.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  300.         CreateDynamicCP(2098.6406, -1361.5381, 23.6412, 3, -1, -1, playerid, 100.0);
  301.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  302.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  303.         }
  304.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  305.         else if(ToysJob[playerid] == 19)
  306.         {
  307.         ToysJob[playerid] = 20;
  308.         SetTimerEx("Download", 1000, 0, "i", playerid);
  309.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  310.         CreateDynamicCP(1858.7340, -1289.5017, 13.2060, 3, -1, -1, playerid, 100.0);
  311.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  312.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  313.         }
  314.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  315.         else if(ToysJob[playerid] == 20)
  316.         {
  317.         ToysJob[playerid] = 21;
  318.         SetTimerEx("Download", 1000, 0, "i", playerid);
  319.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  320.         CreateDynamicCP(1809.9296, -1169.9958, 23.4822, 3, -1, -1, playerid, 100.0);
  321.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  322.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  323.         }
  324.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  325.         else if(ToysJob[playerid] == 21)
  326.         {
  327.         ToysJob[playerid] = 22;
  328.         SetTimerEx("Download", 1000, 0, "i", playerid);
  329.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  330.         CreateDynamicCP(1544.4893, -1169.7684, 23.7384, 3, -1, -1, playerid, 100.0);
  331.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  332.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  333.         }
  334.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  335.         else if(ToysJob[playerid] == 22)
  336.         {
  337.         ToysJob[playerid] = 23;
  338.         SetTimerEx("Download", 1000, 0, "i", playerid);
  339.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  340.         CreateDynamicCP(1270.3984, -916.2643, 41.9841, 3, -1, -1, playerid, 100.0);
  341.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  342.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  343.         }
  344.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  345.         else if(ToysJob[playerid] == 23)
  346.         {
  347.         ToysJob[playerid] = 24;
  348.         SetTimerEx("Download", 1000, 0, "i", playerid);
  349.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  350.         CreateDynamicCP(1047.5726, -943.9327, 42.5170, 3, -1, -1, playerid, 100.0);
  351.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  352.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  353.         }
  354.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  355.         else if(ToysJob[playerid] == 24)
  356.         {
  357.         ToysJob[playerid] = 25;
  358.         SetTimerEx("Download", 1000, 0, "i", playerid);
  359.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  360.         CreateDynamicCP(777.2374, -1038.4222, 23.9280, 3, -1, -1, playerid, 100.0);
  361.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  362.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  363.         }
  364.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  365.         else if(ToysJob[playerid] == 25)
  366.         {
  367.         ToysJob[playerid] = 26;
  368.         SetTimerEx("Download", 1000, 0, "i", playerid);
  369.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  370.         CreateDynamicCP(476.7122, -1281.5980, 15.2099, 3, -1, -1, playerid, 100.0);
  371.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  372.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  373.         }
  374.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  375.         else if(ToysJob[playerid] == 26)
  376.         {
  377.         ToysJob[playerid] = 27;
  378.         SetTimerEx("Download", 1000, 0, "i", playerid);
  379.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  380.         CreateDynamicCP(110.3901, -1614.3202, 10.1964, 3, -1, -1, playerid, 100.0);
  381.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  382.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  383.         }
  384.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  385.         else if(ToysJob[playerid] == 27)
  386.         {
  387.         ToysJob[playerid] = 28;
  388.         SetTimerEx("Download", 1000, 0, "i", playerid);
  389.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  390.         CreateDynamicCP(305.6662, -1746.9574, 4.2034, 3, -1, -1, playerid, 100.0);
  391.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  392.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  393.         }
  394.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  395.         else if(ToysJob[playerid] == 28)
  396.         {
  397.         ToysJob[playerid] = 29;
  398.         SetTimerEx("Download", 1000, 0, "i", playerid);
  399.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  400.         CreateDynamicCP(646.2664, -1622.2444, 14.7613, 3, -1, -1, playerid, 100.0);
  401.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  402.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  403.         }
  404.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  405.         else if(ToysJob[playerid] == 29)
  406.         {
  407.         ToysJob[playerid] = 30;
  408.         SetTimerEx("Download", 1000, 0, "i", playerid);
  409.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  410.         CreateDynamicCP(804.2141, -1456.7543, 13.2124, 3, -1, -1, playerid, 100.0);
  411.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  412.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  413.         }
  414.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  415.         else if(ToysJob[playerid] == 30)
  416.         {
  417.         ToysJob[playerid] = 31;
  418.         SetTimerEx("Download", 1000, 0, "i", playerid);
  419.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  420.         CreateDynamicCP(941.7572, -1413.7173, 13.0442, 3, -1, -1, playerid, 100.0);
  421.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  422.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  423.         }
  424.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  425.         else if(ToysJob[playerid] == 31)
  426.         {
  427.         ToysJob[playerid] = 32;
  428.         SetTimerEx("Download", 1000, 0, "i", playerid);
  429.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  430.         CreateDynamicCP(1069.1979, -1354.9397, 13.2012, 3, -1, -1, playerid, 100.0);
  431.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  432.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  433.         }
  434.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  435.         else if(ToysJob[playerid] == 32)
  436.         {
  437.         ToysJob[playerid] = 33;
  438.         SetTimerEx("Download", 1000, 0, "i", playerid);
  439.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  440.         CreateDynamicCP(1094.8103, -1274.0000, 13.2048, 3, -1, -1, playerid, 100.0);
  441.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  442.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  443.         }
  444.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  445.         else if(ToysJob[playerid] == 33)
  446.         {
  447.         ToysJob[playerid] = 34;
  448.         SetTimerEx("Download", 1000, 0, "i", playerid);
  449.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  450.         CreateDynamicCP(1289.1198, -1277.7451, 13.0200, 3, -1, -1, playerid, 100.0);
  451.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  452.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  453.         }
  454.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  455.         else if(ToysJob[playerid] == 34)
  456.         {
  457.         ToysJob[playerid] = 35;
  458.         SetTimerEx("Download", 1000, 0, "i", playerid);
  459.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  460.         CreateDynamicCP(1335.0526, -1308.6454, 13.2007, 3, -1, -1, playerid, 100.0);
  461.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  462.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  463.         }
  464.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  465.         else if(ToysJob[playerid] == 35)
  466.         {
  467.         ToysJob[playerid] = 36;
  468.         SetTimerEx("Download", 1000, 0, "i", playerid);
  469.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  470.         CreateDynamicCP(1157.4039, -1601.8671, 13.4129, 3, -1, -1, playerid, 100.0);
  471.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  472.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  473.         }
  474.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  475.         else if(ToysJob[playerid] == 36)
  476.         {
  477.         ToysJob[playerid] = 37;
  478.         SetTimerEx("Download", 1000, 0, "i", playerid);
  479.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
  480.         CreateDynamicCP(1320.1855, -1711.1945, 13.2079, 3, -1, -1, playerid, 100.0);
  481.         SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
  482.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  483.         }
  484.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  485.         else if(ToysJob[playerid] == 37)
  486.         {
  487.         ToysJob[playerid] = 38;
  488.         SetTimerEx("Download", 1000, 0, "i", playerid);
  489.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
  490.         CreateDynamicCP(1319.8899, -1788.1641, 13.2017, 3, -1, -1, playerid, 100.0);
  491.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  492.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  493.         }
  494.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  495.         else if(ToysJob[playerid] == 38)
  496.         {
  497.         ToysJob[playerid] = 39;
  498.         SetTimerEx("Download", 1000, 0, "i", playerid);
  499.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
  500.         CreateDynamicCP(1382.2804, -1835.3234, 13.2020, 3, -1, -1, playerid, 100.0);
  501.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  502.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  503.         }
  504.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  505.         else if(ToysJob[playerid] == 39)
  506.         {
  507.         ToysJob[playerid] = 40;
  508.         SetTimerEx("Download", 1000, 0, "i", playerid);
  509.         CreateDynamicCP(1383.1376, -1795.6226, 13.2033, 3, -1, -1, playerid, 100.0);
  510.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
  511.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  512.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  513.         }
  514.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  515.         else if(ToysJob[playerid] == 40)
  516.         {
  517.         ToysJob[playerid] = 41;
  518.         SetTimerEx("Download", 1000, 0, "i", playerid);
  519.         CreateDynamicCP(1382.3544, -1751.2935, 13.2032, 3, -1, -1, playerid, 100.0);
  520.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
  521.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  522.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  523.         }
  524.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  525.         else if(ToysJob[playerid] == 41)
  526.         {
  527.         ToysJob[playerid] = 42;
  528.         SetTimerEx("Download", 1000, 0, "i", playerid);
  529.         CreateDynamicCP(1378.3345, -1640.2863, 13.2008, 3, -1, -1, playerid, 100.0);
  530.         GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
  531.         SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
  532.         SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
  533.         }
  534.         else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
  535.         else if(ToysJob[playerid] == 42)
  536.         {
  537.         ToysJob[playerid] = 0;
  538.         SetTimerEx("Download", 1000, 0, "i", playerid);
  539.         CreateDynamicCP(1378.9658, -1648.1697, 13.0386, 3, -1, -1, playerid, 100.0);
  540.         GameTextForPlayer(playerid, "~g~!!~w~Congratulated you get ~r~40~b~k ~g~!!!...", 2000, 5);
  541.         GivePlayerMoney(playerid, payy); //You can edit this
  542.         SetVehicleToRespawn(GetPlayerVehicleID(playerid));
  543.         RemovePlayerFromVehicle(playerid);
  544.         DisablePlayerCheckpoint(playerid);
  545.         SendClientMessage(playerid,COLOR_AQUA,"* Congratulated you get 40000 $!");
  546.         }
  547.     }
  548.     return 1;
  549. }
  550. public OnPlayerPickUpPickup(playerid, pickupid)
  551. {
  552.     if(pickupid == info)
  553.     {
  554.     GameTextForPlayer(playerid, "~g~Distribute ~r~Toys, ~w~Type on Car~r~/Toys~w~, travel route and win ~g~40k", 3000, 3);
  555.     }
  556.     return 1;
  557. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement