Detaljan opis problema: Pa ovako napravim sve komande za posao i to sta treba i CPove i sad prodjem kroz CP al CP opce ne mrda stoji na jednom mjestu opce se nece pokrenut. I da napravio sam da taj posao nema u opcini nego ja bi da npr ti kamioni su negdje na ulici kad sjedne u njega bilo tko da mu odma pisu komande za posao kad kuca to odma da mu se stvori CP i radi, naci ne zelim da se ide u opcinu ni nista, aj opremu da treba uzet to moze al ja bi da samo kad sjedne upise komandu i vozi do kraja da mu određene pare i to je to
Dio skripte:
Komanda:
CMD:ciscenjesnijega(playerid, params[])
{
if(hSnijeg != 0) return GRESKA(playerid, "Vec imate aktiviranu zetvu! (koristite /ponisti)");
if(!CistacDuznost)
{
GRESKA(playerid, "Niste uzeli opremu i radno odjelo! Na GPS vam je oznaceno mesto na kome trebate uzeti opremu.");
h_SetPlayerCheckpoint(playerid, -363.3250,-1430.2935,25.7266, 5.0);
return 1;
}
if(GetPlayerVehicleID(playerid) == Cistac)
{
hSnijeg = 1;
h_SetPlayerCheckpoint(playerid, -330.501800, -1424.607055, 14.515027, 5.0);
SCM(playerid, COLOR_SPRINGGREEN, "POSAO | Aktivirali ste zetvu njive. Vozite po oznacenim mjestima i zanjite njivu.");
}
else return GRESKA(playerid, "Ne nalazite se u kombajnu!");
return 1;
}// ============================================= <[ CISTAC SNIJEGA ]> ============================================
if(IsPlayerInRangeOfPoint(playerid, 5.0, -330.501800, -1424.607055, 14.515027))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 3;
h_SetPlayerCheckpoint(playerid, -166.815155, -1417.127685, 2.601584, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -166.815155, -1417.127685, 2.601584))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 4;
h_SetPlayerCheckpoint(playerid, -162.955062, -1403.007690, 2.609294, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -162.955062, -1403.007690, 2.609294))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 5;
h_SetPlayerCheckpoint(playerid, -323.083465, -1404.308593, 13.318602, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -323.083465, -1404.308593, 13.318602))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 6;
h_SetPlayerCheckpoint(playerid, -327.260040, -1384.109741, 11.599739, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -327.260040, -1384.109741, 11.599739))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hVrsenje = 7;
h_SetPlayerCheckpoint(playerid, -168.824310, -1380.018554, 2.998431, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -168.824310, -1380.018554, 2.998431))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hVrsenje = 8;
h_SetPlayerCheckpoint(playerid, -166.473571, -1368.601196, 2.778008, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -166.473571, -1368.601196, 2.778008))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hVrsenje = 9;
h_SetPlayerCheckpoint(playerid, -324.811370, -1365.036987, 9.996755, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -324.811370, -1365.036987, 9.996755))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 10;
h_SetPlayerCheckpoint(playerid, -321.645263, -1343.413452, 8.889822, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -321.645263, -1343.413452, 8.889822))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 11;
h_SetPlayerCheckpoint(playerid, -166.548233, -1340.791992, 2.810774, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -166.548233, -1340.791992, 2.810774))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 12;
h_SetPlayerCheckpoint(playerid, -164.413238, -1323.266357, 2.739852, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -164.413238, -1323.266357, 2.739852))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
hSnijeg = 13;
h_SetPlayerCheckpoint(playerid, -323.178375, -1322.024780, 8.997518, 5.0);
}
}
if(IsPlayerInRangeOfPoint(playerid, 5.0, -164.413238, -1323.266357, 2.739852))
{
if(hSnijeg == 3 && PI == POSAO_CISTACSNIJEGA && hvID == Cistac && GetPlayerState(playerid) == 2)
{
h_DisablePlayerCheckpoint(playerid);
new plata = 400;
new bonus = random(50);
SCM(playerid, ZUTA, "POSAO | Uspesno ste zavrsili zetvu njive!");
Plata(playerid, plata, bonus);
hSnijeg = 0;
}
}Neke slike/video za lakse dobivanje pomoci(neobavezno):
