PDA

View Full Version : Job with multiple Checkpoints problem


Zipfer247
16/06/2019, 03:44 PM
So I added few simple jobs where you just follow checkpoints and get payed afterwards. Now the problem is e.g. If I finish "route 1" as Street Sweeper and change my job to "Garbage Man" and start my route I'll get a message, when entering the first checkpoint, saying "You are not in a sweeper", and it wont give me another checkpoint it will just stay there.


enum smetlarInfo
{
CP
};
enum postarInfo
{
CP
};
enum sweeperInfo
{
CP,
CPP,
CPPP,
CPPPP,
CPPPPP
};
new sweeper[MAX_PLAYERS][sweeperInfo];
new smetlar[MAX_PLAYERS][smetlarInfo];
new postar[MAX_PLAYERS][postarInfo];
OnGameModeInit
//------------------------------------------------------------------------------
//--------------------------------------------------------------------------sweeper
SweeperVozilo[0] = CreateVehicle(574,1645.4174,-1839.8218,13.2690,46.5816,1,1, 1000);
SweeperVozilo[1] = CreateVehicle(574,1648.2368,-1838.5978,13.2700,45.2461,1,1, 1000);
SweeperVozilo[2] = CreateVehicle(574,1651.0088,-1837.2822,13.2709,45.5856,1,1, 1000);
SweeperVozilo[3] = CreateVehicle(574,1653.8375,-1835.9564,13.2719,45.4315,1,1, 1000);
SweeperVozilo[4] = CreateVehicle(574,1656.6238,-1834.5146,13.2730,42.7969,1,1, 1000);
SweeperVozilo[5] = CreateVehicle(574,1642.6021,-1841.0107,13.2680,47.3393,1,1, 1000);
//--------------------------------------------------------------------------postar
PostarVozilo[0] = CreateVehicle(609,973.0029,-1263.6621,15.9888,179.7434,6,6, 1000);
PostarVozilo[1] = CreateVehicle(609,979.4266,-1263.8866,15.9523,180.1792,6,6, 1000);
PostarVozilo[2] = CreateVehicle(586,990.9984,-1251.4491,14.5516,179.4085,6,6, 1000);
PostarVozilo[3] = CreateVehicle(586,992.8363,-1251.4968,14.5514,179.2207,6,6, 1000);
PostarVozilo[4] = CreateVehicle(586,994.5972,-1251.5239,14.5515,180.9257,6,6, 1000);
//--------------------------------------------------------------------------smetlar
SmetlarVozilo[0] = CreateVehicle(408, 1605.9648,-1838.7837,14.0571,269.1478,1,1, 1000);
SmetlarVozilo[1] = CreateVehicle(408,1606.2791,-1832.7330,14.0560,268.8219,1,1, 1000);
SmetlarVozilo[2] = CreateVehicle(408,1606.2351,-1826.6216,14.0352,269.3406,1,1, 1000);
SmetlarVozilo[3] = CreateVehicle(408,1606.2904,-1820.7710,14.0032,268.9377,1,1, 1000);
SmetlarVozilo[4] = CreateVehicle(408,1602.7173,-1815.2186,13.9919,269.3383,1,1, 1000);
//------------------------------------------------------------------------------
OnPlayerEnterCheckpoint
/------------------------------------------------------------------------------sweeper ruta 2
if(sweeper[playerid][CPP] == 1){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 2;
SetPlayerCheckpoint(playerid, 1571.8861,-1750.5021,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 2){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 3;
SetPlayerCheckpoint(playerid, 1548.8510,-1730.1742,13.1079, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 3){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 4;
SetPlayerCheckpoint(playerid, 1531.7039,-1606.7828,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 4){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 5;
SetPlayerCheckpoint(playerid, 1444.4047,-1589.7377,13.1078, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 5){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 6;
SetPlayerCheckpoint(playerid, 1427.1686,-1718.9116,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 6){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 7;
SetPlayerCheckpoint(playerid, 1314.7999,-1721.6229,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 7){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 8;
SetPlayerCheckpoint(playerid, 1314.2012,-1578.5973,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 8){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 9;
SetPlayerCheckpoint(playerid, 1358.4399,-1422.7056,13.1118, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 9){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 10;
SetPlayerCheckpoint(playerid, 1345.6620,-1423.5865,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 10){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 11;
SetPlayerCheckpoint(playerid, 1295.2693,-1838.6575,13.1077, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 11){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 12;
SetPlayerCheckpoint(playerid, 1182.4900,-1840.8530,13.1330, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 12){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 13;
SetPlayerCheckpoint(playerid, 1181.8002,-1723.6195,13.2117, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 13){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 14;
SetPlayerCheckpoint(playerid, 1285.4839,-1714.8230,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 14){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 15;
SetPlayerCheckpoint(playerid, 1299.7192,-1839.3661,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 15){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 16;
SetPlayerCheckpoint(playerid, 1309.7543,-1840.0184,13.1079, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 16){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 17;
SetPlayerCheckpoint(playerid, 1326.7476,-1734.4318,13.1079, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 17){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 18;
SetPlayerCheckpoint(playerid, 1677.7716,-1734.8704,13.1080, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 18){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 19;
SetPlayerCheckpoint(playerid, 1818.1715,-1740.5814,13.1079, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 19){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 20;
SetPlayerCheckpoint(playerid, 1810.7633,-1829.8743,13.1195, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 20){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 21;
SetPlayerCheckpoint(playerid, 1702.4929,-1810.3431,13.0922, 4.0);
return 1;
}
if(sweeper[playerid][CPP] == 21){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CPP] = 22;
SetPlayerCheckpoint(playerid, 1657.8831,-1820.5179,13.2742, 4.0);
SendClientMessage(playerid, COLOR_GM, "Ruta zavrsena. Vrati se u komunalije da dobijes isplatu.");
return 1;
}
if(sweeper[playerid][CPP] == 22){
if(IsAtSweeperVeh(playerid)){
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 40);
PlayerInfo[playerid][pMoney] +=40;
SendClientMessage(playerid, COLOR_GM, "Uspjesno odradjen posao. Dobili ste $40.");
enRoute[playerid] = 0;
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}else{SendClientMessage(playerid, GRAY, "Nisi u Sweeperu!"); }
return 1;
}
//------------------------------------------------------------------------------sweeper ruta 1
if(sweeper[playerid][CP] == 1){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 2;
SetPlayerCheckpoint(playerid, 1398.3778,-1869.8457,13.1079, 6.0);

return 1;
}
if(sweeper[playerid][CP] == 2){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 3;
SetPlayerCheckpoint(playerid, 1391.5431,-1749.2769,13.1079, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 3){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 4;
SetPlayerCheckpoint(playerid, 1435.0566,-1735.4380,13.1080, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 4){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 5;
SetPlayerCheckpoint(playerid, 1557.1039,-1734.2867,13.1078, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 5){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 6;
SetPlayerCheckpoint(playerid, 1698.9988,-1735.3876,13.1080, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 6){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 7;
SetPlayerCheckpoint(playerid, 1818.8124,-1742.9117,13.1079, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 7){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 8;
SetPlayerCheckpoint(playerid, 1810.4420,-1830.1692,13.1143, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 8){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 9;
SetPlayerCheckpoint(playerid, 1703.8767,-1809.9590,13.0911, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 9){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 10;
SetPlayerCheckpoint(playerid, 1660.4972,-1868.7283,13.1080, 6.0);
return 1;
}
if(sweeper[playerid][CP] == 10){
DisablePlayerCheckpoint(playerid);
sweeper[playerid][CP] = 11;
SetPlayerCheckpoint(playerid, 1655.9167,-1819.0540,13.2715, 6.0);
SendClientMessage(playerid, COLOR_GM, "Ruta zavrsena. Vrati se u komunalije da dobijes isplatu.");
return 1;
}
if(sweeper[playerid][CP] == 11){
if(IsAtSweeperVeh(playerid)){
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 20);
PlayerInfo[playerid][pMoney] +=20;
SendClientMessage(playerid, COLOR_GM, "Uspjesno odradjen posao. Dobili ste $20.");
enRoute[playerid] = 0;
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicleid);

return 1;
}else{SendClientMessage(playerid, GRAY, "Nisi u Sweeperu!");}
return 1;
}
//------------------------------------------------------------------------------
if(postar[playerid][CP] == 1){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 2;
SetPlayerCheckpoint(playerid, 948.6363,-978.0203,38.7573, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 2){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 3;
SetPlayerCheckpoint(playerid, 1072.1591,-962.7684,42.5802, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 3){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 4;
SetPlayerCheckpoint(playerid, 1144.0756,-957.4478,42.6293, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 4){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 5;
SetPlayerCheckpoint(playerid, 1245.4513,-941.2979,42.5607, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 5){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 6;
SetPlayerCheckpoint(playerid, 1441.9576,-1163.0980,23.7231, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 6){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 7;
SetPlayerCheckpoint(playerid, 1779.3721,-1178.8711,23.9003, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 7){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 8;
SetPlayerCheckpoint(playerid, 1722.5139,-1273.0260,13.6168, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 8){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 9;
SetPlayerCheckpoint(playerid, 1601.0833,-1295.9940,17.3492, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 9){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 10;
SetPlayerCheckpoint(playerid, 1513.6216,-1605.1633,13.8861, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 10){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 11;
SetPlayerCheckpoint(playerid, 1508.1163,-1706.4473,14.1144, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 11){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 12;
SetPlayerCheckpoint(playerid, 1067.7692,-1135.3666,23.8083, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 12){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 13;
SetPlayerCheckpoint(playerid, 982.2407,-1133.7366,23.8918, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
return 1;
}
if(postar[playerid][CP] == 13){
DisablePlayerCheckpoint(playerid);
postar[playerid][CP] = 14;
SetPlayerCheckpoint(playerid, 1007.8467,-1274.6875,15.2443, 6.0);
SendClientMessage(playerid, COLOR_GM, "Posta pokupljena. Zarada $10");
SendClientMessage(playerid, COLOR_GM, "Sva posta je pokupljena. Vratite se na odrediste da dostavite postu.");
return 1;
}
if(postar[playerid][CP] == 14){
if(IsAtPostarVeh(playerid)){
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 150);
PlayerInfo[playerid][pMoney] +=150;
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}else{SendClientMessage(playerid, GRAY, "Nisi u postarskom vozilu!"); }
return 1;
}
//------------------------------------------------------------------------------postar
if(smetlar[playerid][CP] == 1){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 2;
SetPlayerCheckpoint(playerid, 1518.3331,-1846.5225,14.0954, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 2){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 3;
SetPlayerCheckpoint(playerid, 1488.7736,-1845.2915,14.1063, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 3){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 4;
SetPlayerCheckpoint(playerid, 1468.6573,-1845.1075,14.0956, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 4){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 5;
SetPlayerCheckpoint(playerid, 1422.5756,-1841.1293,14.0881, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 5){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 6;
SetPlayerCheckpoint(playerid, 1341.9203,-1819.3339,14.0390, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 6){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 7;
SetPlayerCheckpoint(playerid, 1440.5304,-1327.5514,14.0910, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 7){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 8;
SetPlayerCheckpoint(playerid, 1422.1924,-1319.9531,14.1029, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 8){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 9;
SetPlayerCheckpoint(playerid, 1419.7338,-1351.4078,14.1076, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 9){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 10;
SetPlayerCheckpoint(playerid, 1419.5847,-1299.8790,14.1039, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 10){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 11;
SetPlayerCheckpoint(playerid, 1525.1658,-1019.6371,24.4777, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 11){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 12;
SetPlayerCheckpoint(playerid, 1608.9355,-998.3534,24.6279, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 12){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 13;
SetPlayerCheckpoint(playerid, 1628.4537,-993.3229,24.6279, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 13){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 14;
SetPlayerCheckpoint(playerid, 1661.5170,-1003.4908,24.6024, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 14){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 15;
SetPlayerCheckpoint(playerid, 1827.5844,-1080.9648,24.4955, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 15){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 16;
SetPlayerCheckpoint(playerid, 1827.4854,-1096.5767,24.4930, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 16){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 17;
SetPlayerCheckpoint(playerid, 1827.0880,-1112.1003,24.5041, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 17){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 18;
SetPlayerCheckpoint(playerid, 1826.6636,-1142.6133,24.5069, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 18){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 19;
SetPlayerCheckpoint(playerid, 1803.2218,-1145.7889,24.4912, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 19){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 20;
SetPlayerCheckpoint(playerid, 1787.5127,-1145.4431,24.4936, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
return 1;
}
if(smetlar[playerid][CP] == 20){
DisablePlayerCheckpoint(playerid);
smetlar[playerid][CP] = 21;
SetPlayerCheckpoint(playerid, 2177.7844,-1987.3419,14.1074, 6.0);
SendClientMessage(playerid, COLOR_GM, "Smece pokupljeno. Zarada $10");
SendClientMessage(playerid, COLOR_GM, "Zavrsili ste rutu. Odvezite kamion na odlagaliste da bih ste dobili novac.");
return 1;
}
if(smetlar[playerid][CP] == 21){
if(IsAtSmetlarVeh(playerid)){
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid, 200);
PlayerInfo[playerid][pMoney] +=200;
new vehicleid = GetPlayerVehicleID(playerid);
SetVehicleToRespawn(vehicleid);
return 1;
}else{SendClientMessage(playerid, GRAY, "Nisi u smetlarskom vozilu!"); }
return 1;
}
//------------------------------------------------------------------------------smetlar

Now there is more code under OnPlayerEnterCheckpoint if you need it I'll post it. I belive the problem is not just with these 2 jobs. It's more like if you would finish any route on any job and wanted to do different job the same thing would happen. Same thing happens with Driving School. If you need more info just let me know I'll post it.

Zipfer247
16/06/2019, 06:05 PM
Update: The problem is with Sweepers. If you would do any of the sweeping routes and then do any other job (or even attend driving school) that involves checkpoints you would get a message saying that you are not in a sweeper vehicle and it wont continue to the next checkpoint.

Zipfer247
16/06/2019, 09:16 PM
I'm sorry for spamming but I solved the problem. Requesting lock.