So actually I did put it higher up on this public and it's working but I don't understand why..
I even tried to make the whole thing shorter you're gonna see how in the code...
Код:
public OnPlayerEnterCheckpoint(playerid)
{
new vehid = GetPlayerVehicleID(playerid);
if(vehid == autoskola[1] || vehid == autoskola[2] || vehid == autoskola[3])
{
if(upolaganju[playerid] == 3)
{
SCM(playerid, COLOR_YELLOW, "Nastavite da pratite markere!");DisablePlayerCheckpoint(playerid);upolaganju[playerid] = 4;SetPlayerCheckpoint(playerid, 2078.4570, -1749.8813, 12.8632, 5.0);
return 1;
}
if(upolaganju[playerid] == 4)
{
SCM(playerid, COLOR_YELLOW, "Nastavite da pratite markere!");DisablePlayerCheckpoint(playerid); upolaganju[playerid] = 5;SetPlayerCheckpoint(playerid, 1314.8820, -1721.4695, 12.8643, 5.0);
return 1;
}
if(upolaganju[playerid] == 5)
{
SCM(playerid, COLOR_YELLOW, "Nastavite da pratite markere!");DisablePlayerCheckpoint(playerid);upolaganju[playerid] = 6;SetPlayerCheckpoint(playerid, 1360.3959, -955.1729, 33.6213, 5.0);
return 1;
}
if(upolaganju[playerid] == 6)
{
SCM(playerid, COLOR_YELLOW, "Nastavite da pratite markere!");DisablePlayerCheckpoint(playerid);upolaganju[playerid] = 7;SetPlayerCheckpoint(playerid, 1322.3577, -1854.6036, 12.8688, 5.0);
return 1;
}
if(upolaganju[playerid] == 7)
{
SCM(playerid, COLOR_YELLOW, "Nastavite da pratite markere!");DisablePlayerCheckpoint(playerid);upolaganju[playerid] = 8;SetPlayerCheckpoint(playerid, 1701.9558, -1814.5607, 12.8401, 5.0);
return 1;
}
if(upolaganju[playerid] == 8)
{
SCM(playerid, COLOR_YELLOW, "Nastavite da pratite markere!");DisablePlayerCheckpoint(playerid);upolaganju[playerid] = 9;SetPlayerCheckpoint(playerid, 1819.3540, -1841.3597, 12.9034, 5.0);
return 1;
}
if(upolaganju[playerid] == 9)
{
SCM(playerid, COLOR_YELLOW, "Nastavite da pratite markere!");DisablePlayerCheckpoint(playerid);upolaganju[playerid] = 10;SetPlayerCheckpoint(playerid, 2056.5112, -1922.4661, 12.9977, 5.0);
return 1;
}
if(upolaganju[playerid] == 10)
{
DisablePlayerCheckpoint(playerid);upolaganju[playerid] = 0;new Float:vehhp;GetVehicleHealth(vehid, vehhp);if(vehhp < 75) return SCM(playerid, COLOR_RED, "|Polaganje|Niste polozili vozacki jer je vase vozilo previse osteceno!");
SCM(playerid, COLOR_GREEN, "|Polaganje|Cestitamo!Polozili ste vozacki!");pInfo[playerid][pVozacka] = 1;SetVehicleToRespawn(vehid);
return 1;
}
return 1;
}
if(vehid == avion[1] || vehid == avion[2] || vehid == avion[3] || vehid == avion[4])
{
if(let[playerid] == 1)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 1905.7013, -2493.9731, 13.0713))
{
DisablePlayerCheckpoint(playerid);let[playerid] = 2;PlayerWaitForJob(playerid);SCM(playerid, COLOR_WHITE, "Sacekajte da se putnici ukrcaju!");SetPlayerCheckpoint(playerid, -1455.1395, 37.5953, 13.6731, 20.0);
return 1;
}
}
if(let[playerid] == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, -1455.1395, 37.5953, 13.6731))
{
DisablePlayerCheckpoint(playerid);let[playerid] = 3;PlayerWaitForJob(playerid);SCM(playerid, COLOR_WHITE, "Sacekajte da se putnici ukrcaju!");SetPlayerCheckpoint(playerid, 2029.9255, -2593.2222, 13.0700, 20.0);
return 1;
}
}
if(let[playerid] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 2029.9255, -2593.2222, 13.0700))
{
DisablePlayerCheckpoint(playerid);let[playerid] = 0;uletu[playerid] = 0;new plata = randomEx(2100, 2200), msg[128];format(msg, sizeof(msg), "Zavrsili ste posao!$%i je dodano na vasu platu!", plata); SCM(playerid, COLOR_GREEN, msg);pInfo[playerid][pPlata] = pInfo[playerid][pPlata] + plata;bInfo[BIZ_PILOTI][bMoney] = bInfo[BIZ_PILOTI][bMoney] + 650;ture[playerid] ++;
return 1;
}
}
}
if(vehid == KamionMunicija[1] || vehid == KamionMunicija[2] || vehid == KamionMunicija[3])
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1464.3593, -2308.0862, 13.0498))
{
if(dostavaM[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);dostavaM[playerid] = 2;PlayerWaitForJob(playerid);SCM(playerid, COLOR_WHITE, "Sacekajte da utovarite municiju!");SetPlayerCheckpoint(playerid, 2523.9854, 2818.2595, 10.3040, 6.0);
return 1;
}
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 2523.9854, 2818.2595, 10.3040))
{
if(dostavaM[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);dostavaM[playerid] = 0;PlayerWaitForJob(playerid);new msg[128], plata = randomEx(3200, 3350);format(msg, sizeof(msg), "Istovarili ste municiju!$%i je dodano na vasu platu!", plata);SCM(playerid, COLOR_WHITE, msg);pInfo[playerid][pPlata] = pInfo[playerid][pPlata] + plata;uDostaviM[playerid] = 0;bInfo[BIZ_DOSTAVLJACIM][bMoney] = bInfo[BIZ_DOSTAVLJACIM][bMoney] + 780;ture[playerid] ++;
return 1;
}
}
return 1;
}
if(vehid == Bus[1] || vehid == Bus[2] || vehid == Bus[3] || vehid == Bus[4] || vehid == Bus[5])
{
SCM(playerid, 0, "Bus ocitan.");
if(busvoznja[playerid] == 1)
{
SCM(playerid, 0, "busvoznja ocitana.");DisablePlayerCheckpoint(playerid);busvoznja[playerid] = 2;SetTimerEx("WaitForJob", 3000, false, "i", playerid);TogglePlayerControllable(playerid, 0);SetPlayerCheckpoint(playerid, 1411.5480, -1734.8022, 12.8716, 5.0);SCM(playerid, COLOR_INFO, "Sacekajte da putnici udju u bus!");
return 1;
}
if(busvoznja[playerid] == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 1411.5480, -1734.8022, 12.8716))
{
DisablePlayerCheckpoint(playerid);busvoznja[playerid] = 3;SetTimerEx("WaitForJob", 3000, false, "i", playerid);TogglePlayerControllable(playerid, 0);SetPlayerCheckpoint(playerid, 1818.9271, -1908.0758, 12.7959, 5.0);SCM(playerid, COLOR_INFO, "Sacekajte da putnici udju u bus!");
return 1;
}
return 1;
}
if(busvoznja[playerid] == 3)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 1818.9271, -1908.0758, 12.7959))
{
DisablePlayerCheckpoint(playerid);busvoznja[playerid] = 4;SetTimerEx("WaitForJob", 3000, false, "i", playerid);TogglePlayerControllable(playerid, 0);SetPlayerCheckpoint(playerid, 1852.9675, -1482.6016, 12.8792, 5.0);SCM(playerid, COLOR_INFO, "Sacekajte da putnici udju u bus!");
return 1;
}
return 1;
}
if(busvoznja[playerid] == 4)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 1852.9675, -1482.6016, 12.8792))
{
DisablePlayerCheckpoint(playerid);busvoznja[playerid] = 5;SetTimerEx("WaitForJob", 3000, false, "i", playerid);TogglePlayerControllable(playerid, 0);SetPlayerCheckpoint(playerid, 1127.3044, -942.7054, 42.2026, 5.0);SCM(playerid, COLOR_INFO, "Sacekajte da putnici udju u bus!");
return 1;
}
return 1;
}
if(busvoznja[playerid] == 5)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 1127.3044, -942.7054, 42.2026))
{
DisablePlayerCheckpoint(playerid);busvoznja[playerid] = 6;SetTimerEx("WaitForJob", 3000, false, "i", playerid);TogglePlayerControllable(playerid, 0);SCM(playerid, COLOR_INFO, "Sacekajte da putnici udju u bus!");SetPlayerCheckpoint(playerid, 777.3837, -1357.8790, 13.0904, 5.0);
return 1;
}
return 1;
}
if(busvoznja[playerid] == 6)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, 777.3837, -1357.8790, 13.0904))
{
DisablePlayerCheckpoint(playerid);busvoznja[playerid] = 0;uVoznji[playerid] = 0;new msg[128], plata = randomEx(2800, 3100);format(msg, sizeof(msg), "Zavrsili ste posao!$%i je dodano na vasu platu!");
SCM(playerid, COLOR_GREEN, msg);pInfo[playerid][pPlata] = pInfo[playerid][pPlata] + plata;bInfo[BIZ_BUSVOZACI][bMoney] = bInfo[BIZ_BUSVOZACI][bMoney] + 1200;ture[playerid] ++;
return 1;
}
return 1;
}
return 1;
}
if(vehid == KamionSmecari[1] || vehid == KamionSmecari[2] || vehid == KamionSmecari[3] || vehid == KamionSmecari[4] || vehid == KamionSmecari[5])
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1051.0410, -1294.3259, 12.9790))
{
if(sakupljanje[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);sakupljanje[playerid] = 2;PlayerWaitForJob(playerid);SCM(playerid, COLOR_WHITE, "Sacekajte da pokupite smece!");SetPlayerCheckpoint(playerid, 1154.9796, -1714.9690, 13.2997, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1154.9796, -1714.9690, 13.2997))
{
if(sakupljanje[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);sakupljanje[playerid] = 3;PlayerWaitForJob(playerid);SCM(playerid, COLOR_WHITE, "Sacekajte da pokupite smece!");SetPlayerCheckpoint(playerid, 1391.7921, -1772.1847, 12.8720, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1391.7921, -1772.1847, 12.8720))
{
if(sakupljanje[playerid] == 3)
{
DisablePlayerCheckpoint(playerid);sakupljanje[playerid] = 4;PlayerWaitForJob(playerid);SCM(playerid, COLOR_WHITE, "Sacekajte da pokupite smece!");SetPlayerCheckpoint(playerid, 1468.0054, -1234.2469, 13.1304, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1468.0054, -1234.2469, 13.1304))
{
if(sakupljanje[playerid] == 4)
{
DisablePlayerCheckpoint(playerid);sakupljanje[playerid] = 5;PlayerWaitForJob(playerid);SCM(playerid, COLOR_WHITE, "Sacekajte da pokupite smece!");SetPlayerCheckpoint(playerid, 1091.1123, -944.8525, 42.1440, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1091.1123, -944.8525, 42.1440))
{
if(sakupljanje[playerid] == 5)
{
DisablePlayerCheckpoint(playerid);new msg[128], plata = randomEx(3200, 3400);format(msg, sizeof(msg), "Zavrsili ste posao!$%i je dodano na vasu platu!", plata);SCM(playerid, COLOR_GREEN, msg);pInfo[playerid][pPlata] = pInfo[playerid][pPlata] + plata;
uSakupljanju[playerid] = 0;sakupljanje[playerid] = 0;bInfo[BIZ_SMECARI][bMoney] = bInfo[BIZ_SMECARI][bMoney] + 800;ture[playerid] ++;
return 1;
}
return 1;
}
return 1;
}
if(vehid == Kombajn[1] || vehid == Kombajn[2] || vehid == Kombajn[3] || vehid == Kombajn[4])
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, -10.2186, -15.9751, 2.6976))
{
if(zanje[playerid] == 1)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 2;SetPlayerCheckpoint(playerid, -38.5065, -104.6211, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -38.5065, -104.6211, 2.6787))
{
if(zanje[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 3;SetPlayerCheckpoint(playerid, -23.0021, -107.7811, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -23.0021, -107.7811, 2.6787))
{
if(zanje[playerid] == 3)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 4;SetPlayerCheckpoint(playerid, 3.3615, -19.8577, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 3.3615, -19.8577, 2.6787))
{
if(zanje[playerid] == 4)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 5;SetPlayerCheckpoint(playerid, 13.4878, -29.5482, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 13.4878, -29.5482, 2.6787))
{
if(zanje[playerid] == 5)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 6;SetPlayerCheckpoint(playerid, -11.6362, -111.9692, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -11.6362, -111.9692, 2.6787))
{
if(zanje[playerid] == 6)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 7;SetPlayerCheckpoint(playerid, 0.2552, -114.4496, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 0.2552, -114.4496, 2.6787))
{
if(zanje[playerid] == 7)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 8;SetPlayerCheckpoint(playerid, 22.8257, -40.2910, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 22.8257, -40.2910, 2.6787))
{
if(zanje[playerid] == 8)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 9;SetPlayerCheckpoint(playerid, 32.6462, -55.3229, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 32.6462, -55.3229, 2.6787))
{
if(zanje[playerid] == 9)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 10;SetPlayerCheckpoint(playerid, 16.9412, -115.2941, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 16.9412, -115.2941, 2.6787))
{
if(zanje[playerid] == 10)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 11;SetPlayerCheckpoint(playerid, 29.1627, -116.7605, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 29.1627, -116.7605, 2.6787))
{
if(zanje[playerid] == 11)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 12;SetPlayerCheckpoint(playerid, 42.5484, -72.8347, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 42.5484, -72.8347, 2.6787))
{
if(zanje[playerid] == 12)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 13;SetPlayerCheckpoint(playerid, 48.2817, -98.9364, 2.6787, 5.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, 48.2817, -98.9364, 2.6787))
{
if(zanje[playerid] == 13)
{
DisablePlayerCheckpoint(playerid);zanje[playerid] = 0;uZanju[playerid] = 0;new msg[128], plata = randomEx(2750, 2900);format(msg, sizeof(msg), "Zavrsili ste posao!$%i je dodano na vasu platu!", plata);pInfo[playerid][pPlata] = pInfo[playerid][pPlata] + plata;
SCM(playerid, COLOR_WHITE, "Zavrsili ste posao!$2800 je dodano na vasu platu!");bInfo[BIZ_FARMA][bMoney] = bInfo[BIZ_FARMA][bMoney] + 1000;ture[playerid] ++;
return 1;
}
return 1;
}
return 1;
}
if(vehid == AutoCistaci[1] || vehid == AutoCistaci[2] || vehid == AutoCistaci[3] || vehid == AutoCistaci[4] || vehid == AutoCistaci[5] || AutoCistaci[6] || AutoCistaci[7])
{
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1844.5796, -1477.6875, 12.8896))
{
if(ciscenje[playerid] == 1)
{
DisablePlayerCheckpoint(playerid); ciscenje[playerid] = 2; SetPlayerCheckpoint(playerid, 1809.2209, -1729.9674, 12.8682, 4.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1809.2209, -1729.9674, 12.8682))
{
if(ciscenje[playerid] == 2)
{
DisablePlayerCheckpoint(playerid);ciscenje[playerid] = 3;SetPlayerCheckpoint(playerid, 1531.9669, -1719.9534, 12.8544, 4.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1531.9669, -1719.9534, 12.8544))
{
if(ciscenje[playerid] == 3)
{
DisablePlayerCheckpoint(playerid);ciscenje[playerid] = 4;SetPlayerCheckpoint(playerid, 1519.6245, -1589.8258, 12.9285, 4.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1519.6245, -1589.8258, 12.9285))
{
if(ciscenje[playerid] == 4)
{
DisablePlayerCheckpoint(playerid);ciscenje[playerid] = 5;SetPlayerCheckpoint(playerid, 1417.6658, -1729.9939, 12.8676, 4.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1417.6658, -1729.9939, 12.8676))
{
if(ciscenje[playerid] == 5)
{
DisablePlayerCheckpoint(playerid);ciscenje[playerid] = 6;SetPlayerCheckpoint(playerid, 1314.9370, -1720.8541, 12.8845, 4.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1314.9370, -1720.8541, 12.8845))
{
if(ciscenje[playerid] == 6)
{
DisablePlayerCheckpoint(playerid);ciscenje[playerid] = 7;SetPlayerCheckpoint(playerid, 1369.2922, -1408.0718, 12.8773, 4.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1369.2922, -1408.0718, 12.8773))
{
if(ciscenje[playerid] == 7)
{
DisablePlayerCheckpoint(playerid);ciscenje[playerid] = 8;SetPlayerCheckpoint(playerid, 1796.4506, -1440.9387, 12.8699, 4.0);
return 1;
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 10.0, 1796.4506, -1440.9387, 12.8699))
{
if(ciscenje[playerid] == 8)
{
DisablePlayerCheckpoint(playerid);ciscenje[playerid] = 0;uCiscenju[playerid] = 0;new msg[128], plata = randomEx(2430, 2650);format(msg, sizeof(msg), "Zavrsili ste posao!$%i je dodano na vasu platu!");pInfo[playerid][pPlata] = pInfo[playerid][pPlata] + plata;
SCM(playerid, COLOR_WHITE, msg);bInfo[BIZ_CISTACI][bMoney] = bInfo[BIZ_CISTACI][bMoney] + 670;ture[playerid] ++;
return 1;
}
return 1;
}
return 1;
}
return 1;
}
And about the command don't worry it's good I checked everything but I can't be bothered to paste everything cuz it's using dialogs...