Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ||////////// * Filterscript * ////////////||
- || ||
- || **** **** **** **** **** ||
- || ||
- || By (*_*) Teddy ||
- || ||
- || **** **** **** **** **** ||
- || ||
- ||\\\\\\\\\\ * Filterscript * \\\\\\\\\\\\||
- This filterscript is a Job [ToysJob]
- - Put a IceCream.amx on Filterscript
- and in server.cfg on Filterscript
- and restart your server [* Enjoy *]
- */
- #include <a_samp>
- #include <streamer>
- #include <dcmd>
- #define COLOR_DARKGOLD 0x808000AA
- #define COLOR_RED 0xFF0000AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_AQUA 0x00FFFFFF
- #define COLOR_GREEN "{6EF83C}"
- #define color_green "{6EF83C}"
- #define color_white "{FFFFFF}"
- new ToysJob[256];
- new payy = 40000;
- new info;
- public OnFilterScriptInit()
- {
- info = CreatePickup(1239,1,1381.6631,-1653.1331,13.5469,-1);
- AddStaticVehicleEx(606, 1359.9990, -1658.6787, 13.2808, 271.3005, 175, 1,100);//
- AddStaticVehicleEx(606, 1359.9703, -1651.0188, 13.2808, 268.6176, 224, 1,100);//
- AddStaticVehicleEx(606, 1360.0640, -1643.3961, 13.2808, 268.6176, 223, 1,100);//
- AddStaticVehicleEx(606, 1360.0640, -1635.4344, 13.2808, 268.6176, 175, 1,100);//
- AddStaticVehicle(485, 1364.2739, -1658.5023, 12.9839, 268.3798, 226, 226);//
- AddStaticVehicle(485, 1364.3210, -1651.1115, 12.9839, 268.3798, 226, 226);//
- AddStaticVehicle(485, 1364.3669, -1643.4794, 12.9839, 268.3798, 226, 226);//
- AddStaticVehicle(485, 1364.4948, -1635.5806, 12.9839, 268.3798, 226, 221);//
- new reclama2 = CreateObject(4735, 1358.53821, -1648.58777, 19.37672, 0.00000, 0.00000, 180.65437);
- SetObjectMaterialText(reclama2, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
- new reclama22 = CreateObject(4735, 1368.33899, -1663.24841, 15.21950, 0.00000, 0.00000, 91.54780);
- SetObjectMaterialText(reclama22, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
- new reclama222 = CreateObject(4735, 1369.60559, -1632.65588, 15.25549, 0.00000, 0.00000, 91.14181);
- SetObjectMaterialText(reclama222, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
- new reclama2222 = CreateObject(4735, 1368.43079, -1661.92639, 15.18750, 0.00000, 0.00000, 271.52191);
- SetObjectMaterialText(reclama2222, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
- new reclama22222 = CreateObject(4735, 1369.78491, -1630.70435, 15.45951, 0.00000, 0.00000, 271.52188);
- SetObjectMaterialText(reclama22222, "{0E0101}Toys\n{B700FF}Job", 0, OBJECT_MATERIAL_SIZE_256x128, "Toy Train", 60, 1, -32256, -1, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
- Create3DTextLabel(""color_green"Info Job \n "color_white" Toys ", COLOR_RED ,1381.6631,-1653.1331,13.5469,100.0,0);
- //===================job jucari==========================================
- CreateDynamicObject(11431, 1380.71, -1655.27, 13.79, 0.00, 0.00, 359.46);
- CreateDynamicObject(2465, 1359.47, -1655.93, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1358.95, -1655.03, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1360.83, -1654.70, 13.38, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1360.33, -1655.75, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1360.16, -1653.42, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.41, -1654.15, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.01, -1656.62, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2454, 1360.78, -1655.31, 12.14, 0.00, 0.00, 2.01);
- CreateDynamicObject(2454, 1360.89, -1654.24, 12.14, 0.00, 0.00, 93.32);
- CreateDynamicObject(2454, 1360.74, -1646.27, 12.14, 0.00, 0.00, 93.32);
- CreateDynamicObject(2454, 1360.66, -1647.33, 12.14, 0.00, 0.00, 2.01);
- CreateDynamicObject(2454, 1361.29, -1638.21, 12.14, 0.00, 0.00, 93.32);
- CreateDynamicObject(2454, 1361.20, -1639.30, 12.14, 0.00, 0.00, 2.01);
- CreateDynamicObject(2465, 1359.01, -1646.83, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1360.74, -1646.78, 13.38, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1361.21, -1638.66, 13.38, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1358.93, -1648.23, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.51, -1648.24, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.40, -1646.40, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1358.68, -1645.84, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.53, -1645.56, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1358.58, -1639.31, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.33, -1640.39, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.00, -1638.70, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1358.68, -1637.67, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.34, -1637.81, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1359.66, -1639.36, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(2465, 1360.19, -1640.14, 12.75, 0.00, 0.00, 96.04);
- CreateDynamicObject(19313, 1365.03, -1631.51, 15.25, 356.86, 0.00, 359.66);
- CreateDynamicObject(19313, 1378.97, -1631.60, 15.25, 356.86, 0.00, 359.66);
- CreateDynamicObject(19313, 1365.23, -1662.89, 15.25, 356.86, 0.00, 359.66);
- CreateDynamicObject(19313, 1379.22, -1662.97, 15.25, 356.86, 0.00, 359.66);
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/Toys", cmdtext, true, 10) == 0)
- {
- new carid = GetPlayerVehicleID(playerid);
- if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need to attach a trailer!!!");
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
- {
- ToysJob[playerid] = 1;
- new name[MAX_PLAYER_NAME], string[90];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "* %s Distribute Toys.", name );
- SendClientMessageToAll(COLOR_AQUA, string);
- SetPlayerCheckpoint(playerid,1389.2355,-1648.4885,13.0308 ,4);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points Red on mapa!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer *!");
- return 1;
- }
- SendClientMessage(playerid, COLOR_RED,"Only Toys car Start jobs!");
- }
- return 0;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
- {
- SendClientMessage(playerid, COLOR_RED, "* Type /toys ");
- }
- return 0;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- new carid = GetPlayerVehicleID(playerid); //gets called on the next line
- if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
- {
- if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- if(ToysJob[playerid] == 1)
- {
- ToysJob[playerid] = 2;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1427.5007, -1672.4432, 14.4774, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 2)
- {
- ToysJob[playerid] = 3;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1425.1027, -1721.5803, 14.5483, 7, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 3)
- {
- ToysJob[playerid] = 4;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1410.6516, -1730.3811, 14.2151, 7, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 4)
- {
- ToysJob[playerid] = 5;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1387.4572, -1741.1908, 13.5979, 4, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 5)
- {
- ToysJob[playerid] = 6;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1387.2692, -1782.8169, 13.8451, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 6)
- {
- ToysJob[playerid] = 7;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1393.7872, -1792.9460, 13.4968, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 7)
- {
- ToysJob[playerid] = 8;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1408.8057, -1806.2340, 14.0545, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 8)
- {
- ToysJob[playerid] = 9;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1413.4655, -1822.6245, 13.9238, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 9)
- {
- ToysJob[playerid] = 10;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1429.4153, -1833.5415, 14.0950, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 10)
- {
- ToysJob[playerid] = 11;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1445.0980, -1845.6223, 13.9536, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 11)
- {
- ToysJob[playerid] = 12;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1472.7076, -1844.8206, 13.6045, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 12)
- {
- ToysJob[playerid] = 13;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(820.2725, -1615.4255, 10.7464, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 13)
- {
- ToysJob[playerid] = 14;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(2865.2769, -1440.7775, 10.6242, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 14)
- {
- ToysJob[playerid] = 15;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(2679.7996, -1249.2714, 54.1941, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 15)
- {
- ToysJob[playerid] = 16;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(2505.9185, -1250.1543, 34.7091, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 16)
- {
- ToysJob[playerid] = 17;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(2341.0293, -1242.0608, 22.1585, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 17)
- {
- ToysJob[playerid] = 18;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(2230.8752, -1333.4706, 23.6404, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 18)
- {
- ToysJob[playerid] = 19;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(2098.6406, -1361.5381, 23.6412, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 19)
- {
- ToysJob[playerid] = 20;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1858.7340, -1289.5017, 13.2060, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 20)
- {
- ToysJob[playerid] = 21;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1809.9296, -1169.9958, 23.4822, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 21)
- {
- ToysJob[playerid] = 22;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1544.4893, -1169.7684, 23.7384, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 22)
- {
- ToysJob[playerid] = 23;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1270.3984, -916.2643, 41.9841, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 23)
- {
- ToysJob[playerid] = 24;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1047.5726, -943.9327, 42.5170, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 24)
- {
- ToysJob[playerid] = 25;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(777.2374, -1038.4222, 23.9280, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 25)
- {
- ToysJob[playerid] = 26;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(476.7122, -1281.5980, 15.2099, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 26)
- {
- ToysJob[playerid] = 27;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(110.3901, -1614.3202, 10.1964, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 27)
- {
- ToysJob[playerid] = 28;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(305.6662, -1746.9574, 4.2034, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 28)
- {
- ToysJob[playerid] = 29;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(646.2664, -1622.2444, 14.7613, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 29)
- {
- ToysJob[playerid] = 30;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(804.2141, -1456.7543, 13.2124, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 30)
- {
- ToysJob[playerid] = 31;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(941.7572, -1413.7173, 13.0442, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 31)
- {
- ToysJob[playerid] = 32;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1069.1979, -1354.9397, 13.2012, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 32)
- {
- ToysJob[playerid] = 33;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1094.8103, -1274.0000, 13.2048, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 33)
- {
- ToysJob[playerid] = 34;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1289.1198, -1277.7451, 13.0200, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 34)
- {
- ToysJob[playerid] = 35;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1335.0526, -1308.6454, 13.2007, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 35)
- {
- ToysJob[playerid] = 36;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1157.4039, -1601.8671, 13.4129, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 36)
- {
- ToysJob[playerid] = 37;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 5);
- CreateDynamicCP(1320.1855, -1711.1945, 13.2079, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_YELLOW,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 37)
- {
- ToysJob[playerid] = 38;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
- CreateDynamicCP(1319.8899, -1788.1641, 13.2017, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 38)
- {
- ToysJob[playerid] = 39;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
- CreateDynamicCP(1382.2804, -1835.3234, 13.2020, 3, -1, -1, playerid, 100.0);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 39)
- {
- ToysJob[playerid] = 40;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- CreateDynamicCP(1383.1376, -1795.6226, 13.2033, 3, -1, -1, playerid, 100.0);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 40)
- {
- ToysJob[playerid] = 41;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- CreateDynamicCP(1382.3544, -1751.2935, 13.2032, 3, -1, -1, playerid, 100.0);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 41)
- {
- ToysJob[playerid] = 42;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- CreateDynamicCP(1378.3345, -1640.2863, 13.2008, 3, -1, -1, playerid, 100.0);
- GameTextForPlayer(playerid, "~g~delivered...", 2000, 3);
- SendClientMessage(playerid,COLOR_AQUA,"* Go to these points and distribute Toys!");
- SendClientMessage(playerid,COLOR_RED,"* And be careful not to lose! * Trailer*!");
- }
- else if(!IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playerid, COLOR_RED, "You need a trailer to go on!");//This line checks
- else if(ToysJob[playerid] == 42)
- {
- ToysJob[playerid] = 0;
- SetTimerEx("Download", 1000, 0, "i", playerid);
- CreateDynamicCP(1378.9658, -1648.1697, 13.0386, 3, -1, -1, playerid, 100.0);
- GameTextForPlayer(playerid, "~g~!!~w~Congratulated you get ~r~40~b~k ~g~!!!...", 2000, 5);
- GivePlayerMoney(playerid, payy); //You can edit this
- SetVehicleToRespawn(GetPlayerVehicleID(playerid));
- RemovePlayerFromVehicle(playerid);
- DisablePlayerCheckpoint(playerid);
- SendClientMessage(playerid,COLOR_AQUA,"* Congratulated you get 40000 $!");
- }
- }
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == info)
- {
- GameTextForPlayer(playerid, "~g~Distribute ~r~Toys, ~w~Type on Car~r~/Toys~w~, travel route and win ~g~40k", 3000, 3);
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement