15.05.2013, 13:45
hello,
am using this filter script(job)
click here
but whene am entring first checkpoint
the other checkpoint i cant see it on my radar
...
Here is the first command i do /toys to work

here is the first checkpoint he showing me

now checkpoint's disappear

here is the code ;
i hoep you guys help me on that , thanks
am using this filter script(job)
click here
but whene am entring first checkpoint
the other checkpoint i cant see it on my radar
...
Here is the first command i do /toys to work

here is the first checkpoint he showing me

now checkpoint's disappear


here is the code ;
PHP код:
/*
||////////// * 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 = 400000;
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);
SetPlayerCheckpoint(playerid,1471.8795,-1684.1947,13.0097,4);//1
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);
SetPlayerCheckpoint(playerid, 1720.0520,-1740.0055,13.2014 ,4);//2
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);
SetPlayerCheckpoint(playerid,1831.9915,-1842.7964,13.2333,4);//3
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);
SetPlayerCheckpoint(playerid,1892.2917,-1923.8453,13.2010,4);//4
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);
SetPlayerCheckpoint(playerid, 2047.5269,-1909.1260,13.2042 ,4);//5
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);
SetPlayerCheckpoint(playerid,2272.5991,-1938.2382,13.1930,4);//6
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);
SetPlayerCheckpoint(playerid, 2398.9688,-1979.7100,13.2070 ,4);//7
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);
SetPlayerCheckpoint(playerid,2513.2322,-2009.4491,12.9444,4);//8
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);
SetPlayerCheckpoint(playerid,2487.4448,-1956.1685,13.1519,4);//9
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);
SetPlayerCheckpoint(playerid,2769.3643,-1959.6973,13.0252,4);//10
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);
SetPlayerCheckpoint(playerid,2856.1404,-1895.6084,10.5833,4);//11
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);
SetPlayerCheckpoint(playerid,2820.2725,-1615.4255,10.7464,4);//12
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);
SetPlayerCheckpoint(playerid,2865.2769,-1440.7775,10.6242 ,4);//13
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);
SetPlayerCheckpoint(playerid,2679.7996,-1249.2714,54.1941,4);//14
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);
SetPlayerCheckpoint(playerid,2505.9185,-1250.1543,34.7091,4);//15
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);
SetPlayerCheckpoint(playerid,2341.0293,-1242.0608,22.1585 ,4);//16
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);
SetPlayerCheckpoint(playerid,2230.8752,-1333.4706,23.6404,4);//17
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);
SetPlayerCheckpoint(playerid,2098.6406,-1361.5381,23.6412 ,4);//18
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);
SetPlayerCheckpoint(playerid, 1858.7340,-1289.5017,13.2060,4);//19
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);
SetPlayerCheckpoint(playerid,1809.9296,-1169.9958,23.4822,4);//20
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);
SetPlayerCheckpoint(playerid,1544.4893,-1169.7684,23.7384,4);//21
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);
SetPlayerCheckpoint(playerid,1270.3984,-916.2643,41.9841,4);//22
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);
SetPlayerCheckpoint(playerid,1047.5726,-943.9327,42.5170,4);//23
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);
SetPlayerCheckpoint(playerid, 777.2374,-1038.4222,23.9280,4);//24
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);
SetPlayerCheckpoint(playerid,476.7122,-1281.5980,15.2099,4);//25
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);
SetPlayerCheckpoint(playerid,110.3901,-1614.3202,10.1964,4); //26
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);
SetPlayerCheckpoint(playerid,305.6662,-1746.9574,4.2034,4);//27
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);
SetPlayerCheckpoint(playerid,646.2664,-1622.2444,14.7613,4);//28
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);
SetPlayerCheckpoint(playerid,804.2141,-1456.7543,13.2124,4);//29
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);
SetPlayerCheckpoint(playerid,941.7572,-1413.7173,13.0442 ,4);//30
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);
SetPlayerCheckpoint(playerid,1069.1979,-1354.9397,13.2012,4);//31
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);
SetPlayerCheckpoint(playerid,1094.8103,-1274.0000,13.2048,4);//32
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);
SetPlayerCheckpoint(playerid,1289.1198,-1277.7451,13.0200,4);//33
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);
SetPlayerCheckpoint(playerid,1335.0526,-1308.6454,13.2007,4);//34
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);
SetPlayerCheckpoint(playerid, 1157.4039,-1601.8671,13.4129,4);//35
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);
SetPlayerCheckpoint(playerid, 1320.1855,-1711.1945,13.2079,4);//36
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);
SetPlayerCheckpoint(playerid, 1319.8899,-1788.1641,13.2017 ,4);//37
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);
SetPlayerCheckpoint(playerid,1382.2804,-1835.3234,13.2020,4);//38
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);
SetPlayerCheckpoint(playerid,1383.1376,-1795.6226,13.2033,4);//39
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);
SetPlayerCheckpoint(playerid,1382.3544,-1751.2935,13.2032,4);//39
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);
SetPlayerCheckpoint(playerid,1378.3345,-1640.2863,13.2008,4);//39
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);
SetPlayerCheckpoint(playerid,1378.9658,-1648.1697,13.0386,4);//39
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;
}