Prolem with Checkpoint's
#1

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 ;
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(6061359.9990, -1658.678713.2808271.30051751,100);// 
   
AddStaticVehicleEx(6061359.9703, -1651.018813.2808268.61762241,100);// 
   
AddStaticVehicleEx(6061360.0640, -1643.396113.2808268.61762231,100);// 
   
AddStaticVehicleEx(6061360.0640, -1635.434413.2808268.61761751,100);// 
   
AddStaticVehicle(4851364.2739, -1658.502312.9839268.3798226226);// 
   
AddStaticVehicle(4851364.3210, -1651.111512.9839268.3798226226);// 
   
AddStaticVehicle(4851364.3669, -1643.479412.9839268.3798226226);//
   
AddStaticVehicle(4851364.4948, -1635.580612.9839268.3798226221);//
   
new reclama2 CreateObject(47351358.53821, -1648.5877719.37672,   0.000000.00000180.65437);
   
SetObjectMaterialText(reclama2"{0E0101}Toys\n{B700FF}Job"0OBJECT_MATERIAL_SIZE_256x128"Toy Train"601, -32256, -1OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
   
new reclama22 CreateObject(47351368.33899, -1663.2484115.21950,   0.000000.0000091.54780);
   
SetObjectMaterialText(reclama22"{0E0101}Toys\n{B700FF}Job"0OBJECT_MATERIAL_SIZE_256x128"Toy Train"601, -32256, -1OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
   
new reclama222 CreateObject(47351369.60559, -1632.6558815.25549,   0.000000.0000091.14181);
   
SetObjectMaterialText(reclama222"{0E0101}Toys\n{B700FF}Job"0OBJECT_MATERIAL_SIZE_256x128"Toy Train"601, -32256, -1OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
   
new reclama2222 CreateObject(47351368.43079, -1661.9263915.18750,   0.000000.00000271.52191);
   
SetObjectMaterialText(reclama2222"{0E0101}Toys\n{B700FF}Job"0OBJECT_MATERIAL_SIZE_256x128"Toy Train"601, -32256, -1OBJECT_MATERIAL_TEXT_ALIGN_CENTER);//
   
new reclama22222 CreateObject(47351369.78491, -1630.7043515.45951,   0.000000.00000271.52188);
   
SetObjectMaterialText(reclama22222"{0E0101}Toys\n{B700FF}Job"0OBJECT_MATERIAL_SIZE_256x128"Toy Train"601, -32256, -1OBJECT_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(114311380.71, -1655.2713.79,   0.000.00359.46);
   
CreateDynamicObject(24651359.47, -1655.9312.75,   0.000.0096.04);
   
CreateDynamicObject(24651358.95, -1655.0312.75,   0.000.0096.04);
   
CreateDynamicObject(24651360.83, -1654.7013.38,   0.000.0096.04);
   
CreateDynamicObject(24651360.33, -1655.7512.75,   0.000.0096.04);
   
CreateDynamicObject(24651360.16, -1653.4212.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.41, -1654.1512.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.01, -1656.6212.75,   0.000.0096.04);
   
CreateDynamicObject(24541360.78, -1655.3112.14,   0.000.002.01);
   
CreateDynamicObject(24541360.89, -1654.2412.14,   0.000.0093.32);
   
CreateDynamicObject(24541360.74, -1646.2712.14,   0.000.0093.32);
   
CreateDynamicObject(24541360.66, -1647.3312.14,   0.000.002.01);
   
CreateDynamicObject(24541361.29, -1638.2112.14,   0.000.0093.32);
   
CreateDynamicObject(24541361.20, -1639.3012.14,   0.000.002.01);
   
CreateDynamicObject(24651359.01, -1646.8312.75,   0.000.0096.04);
   
CreateDynamicObject(24651360.74, -1646.7813.38,   0.000.0096.04);
   
CreateDynamicObject(24651361.21, -1638.6613.38,   0.000.0096.04);
   
CreateDynamicObject(24651358.93, -1648.2312.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.51, -1648.2412.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.40, -1646.4012.75,   0.000.0096.04);
   
CreateDynamicObject(24651358.68, -1645.8412.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.53, -1645.5612.75,   0.000.0096.04);
   
CreateDynamicObject(24651358.58, -1639.3112.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.33, -1640.3912.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.00, -1638.7012.75,   0.000.0096.04);
   
CreateDynamicObject(24651358.68, -1637.6712.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.34, -1637.8112.75,   0.000.0096.04);
   
CreateDynamicObject(24651359.66, -1639.3612.75,   0.000.0096.04);
   
CreateDynamicObject(24651360.19, -1640.1412.75,   0.000.0096.04);
   
CreateDynamicObject(193131365.03, -1631.5115.25,   356.860.00359.66);
   
CreateDynamicObject(193131378.97, -1631.6015.25,   356.860.00359.66);
   
CreateDynamicObject(193131365.23, -1662.8915.25,   356.860.00359.66);
   
CreateDynamicObject(193131379.22, -1662.9715.25,   356.860.00359.66);
   return 
1;
}
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp("/Toys"cmdtexttrue10) == 0)
    {
        new 
carid GetPlayerVehicleID(playerid); 
        if(!
IsTrailerAttachedToVehicle(carid)) return SendClientMessage(playeridCOLOR_RED"You need to attach a trailer!!!");
        if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
        {
            
ToysJob[playerid] = 1;
            new 
name[MAX_PLAYER_NAME], string[90];
            
GetPlayerName(playeridnamesizeof(name));
               
format(stringsizeof(string), "* %s Distribute Toys."name );
            
SendClientMessageToAll(COLOR_AQUAstring);
            
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(playeridCOLOR_RED,"Only Toys car Start jobs!");
    }
    return 
0;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
    if(
GetVehicleModel(GetPlayerVehicleID(playerid)) == 485)
    {
        
SendClientMessage(playeridCOLOR_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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
if(ToysJob[playerid] == 1)
        {
        
ToysJob[playerid] = 2;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 2)
        {
        
ToysJob[playerid] = 3;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
SetPlayerCheckpoint(playerid1720.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 3)
        {
        
ToysJob[playerid] = 4;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 4)
        {
        
ToysJob[playerid] = 5;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 5)
        {
        
ToysJob[playerid] = 6;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
SetPlayerCheckpoint(playerid2047.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 6)
        {
        
ToysJob[playerid] = 7;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 7)
        {
        
ToysJob[playerid] = 8;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
SetPlayerCheckpoint(playerid2398.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 8)
        {
        
ToysJob[playerid] = 9;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 9)
        {
        
ToysJob[playerid] = 10;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 10)
        {
        
ToysJob[playerid] = 11;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 11)
        {
        
ToysJob[playerid] = 12;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 12)
        {
        
ToysJob[playerid] = 13;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 13)
        {
        
ToysJob[playerid] = 14;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 14)
        {
        
ToysJob[playerid] = 15;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 15)
        {
        
ToysJob[playerid] = 16;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 16)
        {
        
ToysJob[playerid] = 17;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 17)
        {
        
ToysJob[playerid] = 18;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 18)
        {
        
ToysJob[playerid] = 19;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 19)
        {
        
ToysJob[playerid] = 20;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
SetPlayerCheckpoint(playerid1858.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 20)
        {
        
ToysJob[playerid] = 21;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 21)
        {
        
ToysJob[playerid] = 22;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 22)
        {
        
ToysJob[playerid] = 23;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 23)
        {
        
ToysJob[playerid] = 24;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 24)
        {
        
ToysJob[playerid] = 25;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
SetPlayerCheckpoint(playerid777.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 25)
        {
        
ToysJob[playerid] = 26;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 26)
        {
        
ToysJob[playerid] = 27;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 27)
        {
        
ToysJob[playerid] = 28;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 28)
        {
        
ToysJob[playerid] = 29;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 29)
        {
        
ToysJob[playerid] = 30;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 30)
        {
        
ToysJob[playerid] = 31;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 31)
        {
        
ToysJob[playerid] = 32;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 32)
        {
        
ToysJob[playerid] = 33;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 33)
        {
        
ToysJob[playerid] = 34;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 34)
        {
        
ToysJob[playerid] = 35;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 35)
        {
        
ToysJob[playerid] = 36;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
SetPlayerCheckpoint(playerid1157.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 36)
        {
        
ToysJob[playerid] = 37;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20005);
        
SetPlayerCheckpoint(playerid1320.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 37)
        {
        
ToysJob[playerid] = 38;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20003);
        
SetPlayerCheckpoint(playerid1319.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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 38)
        {
        
ToysJob[playerid] = 39;
        
SetTimerEx("Download"10000"i"playerid);
        
GameTextForPlayer(playerid"~g~delivered..."20003);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 39)
        {
        
ToysJob[playerid] = 40;
        
SetTimerEx("Download"10000"i"playerid);
        
SetPlayerCheckpoint(playerid,1383.1376,-1795.6226,13.2033,4);//39
        
GameTextForPlayer(playerid"~g~delivered..."20003);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 40)
        {
        
ToysJob[playerid] = 41;
        
SetTimerEx("Download"10000"i"playerid);
        
SetPlayerCheckpoint(playerid,1382.3544,-1751.2935,13.2032,4);//39
        
GameTextForPlayer(playerid"~g~delivered..."20003);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 41)
        {
        
ToysJob[playerid] = 42;
        
SetTimerEx("Download"10000"i"playerid);
        
SetPlayerCheckpoint(playerid,1378.3345,-1640.2863,13.2008,4);//39
        
GameTextForPlayer(playerid"~g~delivered..."20003);
        
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(playeridCOLOR_RED"You need a trailer to go on!");//This line checks
        
else if(ToysJob[playerid] == 42)
        {
        
ToysJob[playerid] = 0;
        
SetTimerEx("Download"10000"i"playerid);
        
SetPlayerCheckpoint(playerid,1378.9658,-1648.1697,13.0386,4);//39
        
GameTextForPlayer(playerid"~g~!!~w~Congratulated you get ~r~40~b~k ~g~!!!..."20005);
        
GivePlayerMoney(playeridpayy); //You can edit this
        
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
        
RemovePlayerFromVehicle(playerid);
        
DisablePlayerCheckpoint(playerid);
        
SendClientMessage(playerid,COLOR_AQUA,"* Congratulated you get 40000 $!");
        }
    }
    return 
1;
}
public 
OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == info)
    {
    
GameTextForPlayer(playerid"~g~Distribute ~r~Toys, ~w~Type on Car~r~/Toys~w~, travel route and win ~g~40k"30003);
    }
    return 
1;

i hoep you guys help me on that , thanks
Reply
#2

Edited for add some stuff in the Code
Reply
#3

edit: deleted.
Reply
#4

Have you considered using an array? This is some seriously hard to maintain code. Though I can't really tell where it goes wrong. The messages are being sent, so it should set the checkpoint, too.
Reply
#5

Vince , I tryed other FS with making job ingame with many checkpoints but the same bug

only 1 checkpoint i cant see

i deleted all the filter scripts i let just the Fs who got this bug(toy job)
and nothing

and here is the call back i found in my game mod

http://pastebin.com/NTbRCDp6
Reply
#6

Soloved by a guy
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)