Zaključano

[Pomoc] Autoskola ne prikazuje checkpointe poslije prvog

Započeo Obrisan korisnik
pre 11 godina
398
pregleda
15
postova
Ova tema je zaključana. Samo moderatori i administratori mogu odgovarati.
Obrisan korisnik Obrisan korisnik
pre 11 godina
Skripta koju koristim:Raven's
Detaljan opis problema:Sve je fino napravljeno ali poslije prvog checkpointa nece da mi pokaze ostale,neznam zasto...
Kod za dodati:
//POLAGANJE
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!IsAAutoSkolaAuto(newcar))
{
    SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
    return 1;
}
else if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2026.1802,-168.4384,35.0365,4.0); CP = 1001; SendClientMessage(playerid,COLOR_WHITE,"Dobro dosli na polaganje");}
    else if(CP == 1001) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); CP = 1002; }
    else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0); CP = 1003; }
    else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0); CP = 1004; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0); CP = 1005; SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
    else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0); CP = 1006; }
    else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0); CP = 1007; }
    else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0); CP = 1008; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0); CP = 1009; SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
    else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0); CP = 1010; }
    else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0); CP = 1011; }
    else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); CP = 1012; SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1012)
{

if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1013;
}
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); CP = 1018; }
else if(CP == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.778076,34.733486,4.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); CP = 1028; }
else if(CP == 1028) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); CP = 1030; }
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); CP = 1032; }
else if(CP == 1032)
{
    DisablePlayerCheckpoint(playerid);
    CP = 0;
    IgracPolaze = 0;
    SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
new tmpcar = GetPlayerVehicleID(playerid);
if(tmpcar == 227)
{
SetVehiclePos(tmpcar,-2062.4296875, -109.12824249268, 35.113834381104);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 228)
{
SetVehiclePos(tmpcar,-2072.0285644531, -109.44527435303, 35.110252380371);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 229)
{
SetVehiclePos(tmpcar,-2081.6096191406, -109.26698303223, 35.108039855957);
SetVehicleZAngle(tmpcar,180);
}
            SetTimerEx("PortAutoskola", 1000, false, "i", playerid);
}
}
ivica158
Crime Lord
pre 11 godina
tu koristis krivo nemres ici else if odma na pocetku ide ovako

if( CP == 1000) { CP = 1001; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,tvoj cp,4.0); }

i onda ide

else if( CP == 1001) { CP = 1002; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,tvoj cp,4.0); }

i sve tako radi i neces imat problema ovako radis krivo kako si postao, nadam se da me shvacas msm tu ti je sve nema tu neke teske skole 🙂 budel problema javi.
Obrisan korisnik Obrisan korisnik
pre 11 godina
vala uvijek ti mene muce te stvari else if i if
a ovo sto sam ti stavio ovakav kod tako je bilo u skripti napravljeno nisam ja nista diro..
Pokusacu i javim..
Obrisan korisnik Obrisan korisnik
pre 11 godina
Koliko se moze vidjeti u komandi kada igrac kupi vozacku sam napravio da ga porta na polaganje ali sam napravio da mu prikaze samo jedan checkpoint a to je prvi.
E sad kako bi izgledalo da se dodaju tu svi check pointovi...
Tacnije ako igrac dodje na prvi check point da mu drugi prikaze jer onako kako si ti rekao sam uradio
al opet ne prikazuje ostale nego samo prvi..
CMD:vozacka(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 0) return SCM(playerid, COLOR_GREY,"* Morate prvo izvaditi pasos da bi kupili dozvole!!");
if(IsPlayerInRangeOfPoint(playerid, 3,1490.3195,1305.6976,1093.2964))
{
new string,sendername;
GetPlayerName(playerid,sendername,sizeof(sendername));
if(PlayerInfo == 0)
{
if(PlayerInfo < 4)
{
if(GetPlayerMoney(playerid) < 7000)
{
SCM(playerid, COLOR_GREY, "Nemate dovoljno novca da bi kupili dozvolu (7000$)");
return 1;
}
else
{
SCM(playerid, COLOR_LIGHTBLUE, "Uplatili ste 7000$  za polaganje!");
SafeGivePlayerMoney(playerid, - 7000);
DrzavniBudzet += 7000;
OnPlayerUpdateEx(playerid);
SetPlayerPos(playerid,-2047.386840,-108.161804,35.243465);
SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
            PlayerInfo = 0;
            ObjektiZaPolaganje(playerid);
            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2019.0187,-168.3068,35.0365,6);
        CP = 1000;
        IgracPolaze = 1;
}
}
else if(PlayerInfo >= 10)
{
if(GetPlayerMoney(playerid) < 25000)
{
SCM(playerid, COLOR_GREY, "Nemate dovoljno novca da bi kupili dozvolu (25,000$)");
return 1;
}
                        else
{
SCM(playerid, COLOR_LIGHTBLUE, "Uplatili ste 25,000$ za polaganje!");
SafeGivePlayerMoney(playerid, - 25000);
DrzavniBudzet += 25000;
OnPlayerUpdateEx(playerid);
SetPlayerPos(playerid,-2047.386840,-108.161804,35.243465);
SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
            PlayerInfo = 0;
            ObjektiZaPolaganje(playerid);
            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2019.0187,-168.3068,35.0365,6);
        CP = 1000;
        IgracPolaze = 1;
}
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /vozacka",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
else
{
SCM(playerid, COLOR_LIGHTBLUE, "Vec posjedujete vozacku dozovolu");
return 1;
}
}
}
return 1;
}
ivica158
Crime Lord
pre 11 godina
pa vec sam ti ponudio kod di radis to. drugi cp prikazujes tamo u onom dijelu onplayerentercheckpoint
if(CP == 1000) { CP = 1001; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,ovdje stavljas drugi cp poslije onog prvog di si postavio u komandi,4.0); }
else if(CP == 1001) { CP = 1002; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-i onda ovdje samo ides tako dalje ,4.0); }
denis_lapi
Godfather
pre 11 godina
Kako mozete toliko neuredni da budete.

CMD:start(playerid, params[])
{
SetPlayerCheckpoint(playerid, x,y,z,5.0);
PI =1;
return 1;
}
//////////
Onplayerentercheckpoint

if(PI == 1)
{
DisablePlayerCheckpoint(playerid);
PI = 2;
SetPlayerCheckpoint(playerid,x,y,z,5.0); // Novi CP
  return 1;
}

I tako picis i radis provere sve do zadnjeg ukljucuju ci i njega, a u njemu postavljas pCp varijablu na 0
Obrisan korisnik Obrisan korisnik
pre 11 godina
napravio sam kako si rekao ali nece opet
if(CP == 1000) { CP = 1001; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); }
ivica158
Crime Lord
pre 11 godina
daj mi citav taj dio pod onplayerentercheckpoint ja cu ti sredit to nesta si zabrljao negdje
Obrisan korisnik Obrisan korisnik
pre 11 godina
Evo samo spusti malo dole ti je sve..
public OnPlayerEnterCheckpoint(playerid)
{
new string;
new string2;
if(OnMission == 1)
{
if(!IsPlayerInRangeOfPoint(playerid, 5, -161.1902,-284.2456,4.4446))
{
new carid = GetPlayerVehicleID(playerid);
if(IsAKamiondzijaCar(carid))
{
new trailerid = GetVehicleTrailer(GetPlayerVehicleID(playerid));
SetVehicleToRespawn(trailerid);
DisablePlayerCheckpoint(playerid);
OnMission = 3;
SCM(playerid, COLOR_LIGHTBLUE, "Stigli ste do odredista, molimo vas vratite se nazad da bi dobili novac!");
SetTimerEx("checkpointbre", 500, 0, "i", playerid);
}
else return SCM(playerid, COLOR_GREY, "A gde ti je kamion?");
}
}
else if(OnMission == 3)
{
new carid = GetPlayerVehicleID(playerid);
if(IsAKamiondzijaCar(carid))
{
if(IsPlayerInRangeOfPoint(playerid, 15, -161.1902,-284.2456,4.4446))
{
SafeGivePlayerMoney(playerid, Missionpay);
DisablePlayerCheckpoint(playerid);
OnMission = 0;
new themessage;
format(themessage, sizeof(themessage), "Dobili ste $%d, misija je uspesno obavljena!", Missionpay);
SCM(playerid, COLOR_LIGHTBLUE, themessage);
}
else
{
SetTimerEx("checkpointbre", 500, 0, "i", playerid);
}
}
else return SCM(playerid, COLOR_GREY, "A gde ti je kamion?");
}
if(TaxiCallTime > 0 && TaxiAccepted < 999)
{
    TaxiAccepted = 999;
GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
TaxiCallTime = 0;
DisablePlayerCheckpoint(playerid);
}
else if(BusCallTime > 0 && BusAccepted < 999)
{
    BusAccepted = 999;
GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
BusCallTime = 0;
DisablePlayerCheckpoint(playerid);
}
else if(CP==1)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
    PlayerInfo ++;
if(PlayerInfo == 50)
{ SCM(playerid, COLOR_LIGHTBLUE, "* Vas skill za kradju kola je sada Level 2, sada cete zaradjivati vise para i krace vreme izmedju kradja."); }
else if(PlayerInfo == 100)
{ SCM(playerid, COLOR_LIGHTBLUE, "* Vas skill za kradju kola je sada Level 3, sada cete zaradjivati vise para i krace vreme izmedju kradja."); }
else if(PlayerInfo == 200)
{ SCM(playerid, COLOR_LIGHTBLUE, "* Vas skill za kradju kola je sada Level 4, sada cete zaradjivati vise para i krace vreme izmedju kradja."); }
else if(PlayerInfo == 400)
{ SCM(playerid, COLOR_LIGHTBLUE, "* Vas skill za kradju kola je sada Level 5, sada cete zaradjivati vise para i krace vreme izmedju kradja."); }
new level = PlayerInfo;
if(level >= 0 && level <= 50)
{
    new rand = random(sizeof(SELLCAR1));
    format(string, sizeof(string), "Prodali ste kola za $%d, ponovo cete moci u kradju za 20 minuta.", SELLCAR1);
SCM(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR1);
    PlayerInfo = 1200;
}
else if(level >= 51 && level <= 100)
{
    new rand = random(sizeof(SELLCAR2));
    format(string, sizeof(string), "Prodali ste kola za $%d, ponovo cete moci u kradju za 18 minuta.", SELLCAR2);
SCM(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR2);
    PlayerInfo = 1080;
}
else if(level >= 101 && level <= 200)
{
    new rand = random(sizeof(SELLCAR3));
    format(string, sizeof(string), "Prodali ste kola za $%d, ponovo cete moci u kradju za 16 minuta.", SELLCAR3);
SCM(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR3);
    PlayerInfo = 960;
}
else if(level >= 201 && level <= 400)
{
    new rand = random(sizeof(SELLCAR4));
    format(string, sizeof(string), "Prodali ste kola za $%d, ponovo cete moci u kradju za 14 minuta.", SELLCAR4);
SCM(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, SELLCAR4);
    PlayerInfo = 840;
}
else if(level >= 401)
{
    new money = 6000;
    format(string, sizeof(string), "Prodali ste kola za $%d, ponovo cete moci u kradju za 12 minuta.", money);
SCM(playerid, COLOR_WHITE, string);
SafeGivePlayerMoney(playerid, money);
    PlayerInfo = 720;
}
GameTextForPlayer(playerid, "~y~Prodajte kola", 2500, 1);
CP = 0;
    DisablePlayerCheckpoint(playerid);
    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
}
else
{
    GameTextForPlayer(playerid, "Niste u kolima", 5000, 1);
}
}
else if(CP == 2)
{
if(!IsPlayerInAnyVehicle(playerid))
    {
SCM(playerid, COLOR_WHITE, "Poceo si da kopas");
DisablePlayerCheckpoint(playerid);
PlayerInfo = 1;
TogglePlayerControllable(playerid, 0);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~r~Kopanje, sacekajte dok ne istekne vreme",1*60*1000,1);
rudniktimer = SetTimerEx("rudnik1",1*60*1000,false,"i",playerid);
}
}
else if(CP == 3)
{
if(!IsPlayerInAnyVehicle(playerid))
    {
SCM(playerid, COLOR_WHITE, "Poceo si da kopas");
DisablePlayerCheckpoint(playerid);
PlayerInfo = 1;
TogglePlayerControllable(playerid, 0);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~r~Kopanje, sacekajte dok ne istekne vreme",1*60*1000,1);
rudniktimer = SetTimerEx("rudnik2",1*60*1000,false,"i",playerid);
}
}
else if(CP == 4)
{
if(!IsPlayerInAnyVehicle(playerid))
    {
SCM(playerid, COLOR_WHITE, "Poceo si da kopas");
DisablePlayerCheckpoint(playerid);
PlayerInfo = 1;
TogglePlayerControllable(playerid, 0);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~r~Kopanje, sacekajte dok ne istekne vreme",1*60*1000,1);
rudniktimer = SetTimerEx("rudnik3",1*60*1000,false,"i",playerid);
}
}
else if(CP == 5)
{
if(!IsPlayerInAnyVehicle(playerid))
    {
SCM(playerid, COLOR_WHITE, "Poceo si da kopas");
DisablePlayerCheckpoint(playerid);
PlayerInfo = 1;
TogglePlayerControllable(playerid, 0);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~r~Kopanje, sacekajte dok ne istekne vreme",1*60*1000,1);
rudniktimer = SetTimerEx("rudnik4",1*60*1000,false,"i",playerid);
}
}
else if(CP == 6)
{
if(!IsPlayerInAnyVehicle(playerid))
    {
SCM(playerid, COLOR_WHITE, "Poceo si da kopas");
DisablePlayerCheckpoint(playerid);
PlayerInfo = 1;
TogglePlayerControllable(playerid, 0);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~r~Kopanje, sacekajte dok ne istekne vreme",1*60*1000,1);
rudniktimer = SetTimerEx("rudnik5",1*60*1000,false,"i",playerid);
}
}
else if(CP == 7)
{
if(!IsPlayerInAnyVehicle(playerid))
    {
SCM(playerid, COLOR_WHITE, "Poceo si da kopas");
DisablePlayerCheckpoint(playerid);
PlayerInfo = 1;
TogglePlayerControllable(playerid, 0);
LoopingAnim(playerid, "BOMBER","BOM_Plant_Loop",4.0,1,0,0,1,0);
GameTextForPlayer(playerid, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~r~Kopanje, sacekajte dok ne istekne vreme",1*60*1000,1);
rudniktimer = SetTimerEx("rudnik6",1*60*1000,false,"i",playerid);
}
}
  //POLAGANJE
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!IsAAutoSkolaAuto(newcar))
{
    SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
    return 1;
}
if(CP == 1000) { CP = 1001; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); }
    else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0); CP = 1003; SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0); CP = 1004; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0); CP = 1005; SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
    else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0); CP = 1006; SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0); CP = 1007; SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0); CP = 1008; SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0); CP = 1009; SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
    else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0); CP = 1010; SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0); CP = 1011; SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); CP = 1012; SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1012)
{

if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1013;
}
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); CP = 1018; }
else if(CP == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.778076,34.733486,4.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); CP = 1028; }
else if(CP == 1028) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); CP = 1030; }
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); CP = 1032; }
else if(CP == 1032)
{
    DisablePlayerCheckpoint(playerid);
    CP = 0;
    IgracPolaze = 0;
    SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
new tmpcar = GetPlayerVehicleID(playerid);
if(tmpcar == 227)
{
SetVehiclePos(tmpcar,-2062.4296875, -109.12824249268, 35.113834381104);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 228)
{
SetVehiclePos(tmpcar,-2072.0285644531, -109.44527435303, 35.110252380371);
SetVehicleZAngle(tmpcar,180);
}
else if(tmpcar == 229)
{
SetVehiclePos(tmpcar,-2081.6096191406, -109.26698303223, 35.108039855957);
SetVehicleZAngle(tmpcar,180);
}
            SetTimerEx("PortAutoskola", 1000, false, "i", playerid);
}
}
else
{
switch (gPlayerCheckpointStatus)
{
case CHECKPOINT_HOME:
    {
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus = CHECKPOINT_NONE;
GameTextForPlayer(playerid, "~w~Vi ste~n~~y~kod kuce", 5000, 1);
    }
}
}
ivica158
Crime Lord
pre 11 godina
krivo si radio evo kako treba

ovo zamijeni sa svojime i treba da radi bez problema
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!IsAAutoSkolaAuto(newcar))
{
    SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
    return 1;
}
if(CP == 1000) { CP = 1001; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.9161,-168.3973,35.0365,4.0); }
    else if(CP == 1001) { CP = 1002; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.0515,-161.5036,35.0366,4.0);  SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1002) { CP = 1003; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2055.3991,-149.7017,35.0408,4.0);  SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 1003) { CP = 1004; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2045.0499,-156.3558,35.0397,4.0);  SendClientMessage(playerid,COLOR_WHITE,"Sada vozite u rikverc do zaustavne linije");}
    else if(CP == 1004) { CP = 1005; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2054.0124,-156.0578,35.0368,4.0);  SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1005) { CP = 1006; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2070.6306,-155.9668,35.0370,4.0);  SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1006) { CP = 1007; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.1879,-156.3824,35.0368,4.0);  SendClientMessage(playerid,COLOR_WHITE,"Vozite pravo do zaustavne linije");}
    else if(CP == 1007) { CP = 1008; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9396,-163.2512,35.0362,4.0);  SendClientMessage(playerid,COLOR_WHITE,"Sada udjite u rikverc u garazu");}
    else if(CP == 1008) { CP = 1009; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.5859,-173.1346,35.0357,4.0);  SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1009) { CP = 1010; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.9140,-155.0310,35.0367,4.0);  SendClientMessage(playerid,COLOR_WHITE,"");}
    else if(CP == 1010) { CP = 1011; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2078.4199,-138.3420,35.0362,4.0); SendClientMessage(playerid,COLOR_WHITE,"Sada samo do zaustavne linije");}
//gradska
else if(CP == 1011)
{

if (GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste poligon, u koliko ste prosli, ide gradska voznja");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1012;
}
else if(CP == 1012) { CP = 1013; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,4.0); }
else if(CP == 1013) { CP = 1014; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,4.0); }
else if(CP == 1014) { CP = 1015; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,4.0); }
else if(CP == 1015) { CP = 1016; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,4.0); }
else if(CP == 1016) { CP = 1017; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,4.0); }
else if(CP == 1017) { CP = 1018; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,4.0); }
else if(CP == 1018) { CP = 1019; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,4.0); }
else if(CP == 1019) { CP = 1020; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,4.0); }
else if(CP == 1020) { CP = 1021; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,4.0); }
else if(CP == 1021) { CP = 1022; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,4.0); }
else if(CP == 1022) { CP = 1023; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.7server uklonjen!6,34.733486,4.0); }
else if(CP == 1023) { CP = 1024; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,4.0); }
else if(CP == 1024) { CP = 1025; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,4.0); }
else if(CP == 1025) { CP = 1026; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,4.0); }
else if(CP == 1026) { CP = 1027; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,4.0); }
else if(CP == 1027) { CP = 1028; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,4.0); }
else if(CP == 1028) { CP = 1029; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,4.0); }
else if(CP == 1029) { CP = 1030; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,4.0); }
else if(CP == 1030) { CP = 1031; DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,4.0); }
else if(CP == 1031)
Obrisan korisnik Obrisan korisnik
pre 11 godina
Nece ni ovo tvoje sve sam ubacio i opet nece prikaze samo 1 i to je to..
ivica158
Crime Lord
pre 11 godina
mora da radi vjerovatno je moguce da te zezaju tvoii kodovi di porvjeravas dali polazes i dal je igrac u vozilu autkoskole ja sam ovo sad provjerio kod sebe na starom modu radi kako treba
Obrisan korisnik Obrisan korisnik
pre 11 godina
hmm,sada sam i ja provjerio i sve je ok sa vozilom u koje igrac sjedne i ako zeli da polaze
jedino ima jos jedna komanda za pokretanje polaganja a to je /pokrenipolaganje pa cu da vidim
A jos pravim pored toga jos neke sisteme u modu pa zurim pa ne stignem sve od jednom a jos malo mi otvaranje..
Obrisan korisnik Obrisan korisnik
pre 11 godina
Vala neznam sta da radim,gledao sam ovaj sistem polaganja na Under Point modu i kod njih kad igrac dodje na prvi check point malo stoji u onome check pointu i onda mu se stvori drugi..
A kod mene kad dodjes na prvi odma nestane i ne pokaze mi ostale,pokaze samo prvi,a sve sam fino napravio mozda negdje nesto fali,ja sam gledo dali je negdje nesta izbrisano kad je pravio vlasnik moda,al sve je ok.
Neznam sta mu je.
Kad kucam /pokrenipolaganje trebalo bi da bude sve normalno ja to kad ukucam pokaze prvi check point a ono ostalo nista.

Evo vam kodovi od /vozacka i /polaganje
CMD:vozacka(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo == 0) return SCM(playerid, COLOR_GREY,"* Morate prvo izvaditi pasos da bi kupili dozvole!!");
if(IsPlayerInRangeOfPoint(playerid, 3,1490.3195,1305.6976,1093.2964))
{
new string,sendername;
GetPlayerName(playerid,sendername,sizeof(sendername));
if(PlayerInfo == 0)
{
if(PlayerInfo < 4)
{
if(GetPlayerMoney(playerid) < 7000)
{
SCM(playerid, COLOR_GREY, "Nemate dovoljno novca da bi kupili dozvolu (25,000$)");
return 1;
}
else
{
SCM(playerid, COLOR_LIGHTBLUE, "Uplatili ste 7000$  za polaganje!");
SafeGivePlayerMoney(playerid, - 7000);
DrzavniBudzet += 7000;
OnPlayerUpdateEx(playerid);
SetPlayerPos(playerid,-2047.386840,-108.161804,35.243465);
SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
            PlayerInfo = 0;
        CP = 1000;
        IgracPolaze = 1;
        polaganjeigraca += 1;
}
}
else if(PlayerInfo >= 10)
{
if(GetPlayerMoney(playerid) < 25000)
{
SCM(playerid, COLOR_GREY, "Nemate dovoljno novca da bi kupili dozvolu (25,000$)");
return 1;
}
                        else
{
SCM(playerid, COLOR_LIGHTBLUE, "Uplatili ste 25,000$ za polaganje!");
SafeGivePlayerMoney(playerid, - 25000);
DrzavniBudzet += 25000;
OnPlayerUpdateEx(playerid);
SetPlayerPos(playerid,-2047.386840,-108.161804,35.243465);
SetPlayerInterior(playerid,0);
            SetPlayerVirtualWorld(playerid,0);
            PlayerInfo = 0;
        CP = 1000;
        IgracPolaze = 1;
        polaganjeigraca += 1;
}
}
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s -> /vozacka",d,m,y,h,mi,s,sendername);
CommandLog(string);
}
else
{
SCM(playerid, COLOR_LIGHTBLUE, "Vec posjedujete vozacku dozovolu");
return 1;
}
}
}
return 1;
}

//---------Polaganje------------//
CMD:polaganje(playerid, params[])
{
new newcar = GetPlayerVehicleID(playerid);
if(!IsAAutoSkolaAuto(newcar))
{
SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
return 1;
}
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "Krenuli ste sa polaganjem,srecno !!");
    SetPlayerCheckpoint(playerid,-2081.9641,-133.0353,35.0422,6);
    CP = 1000;
    IgracPolaze = 1;
    return 1;
}


I evo checkpointovi
if(IgracPolaze == 1)
{
new newcar = GetPlayerVehicleID(playerid);
if(!IsAAutoSkolaAuto(newcar))
{
    SendClientMessage(playerid,COLOR_WHITE,"Morate biti u vozilu od Auto-Skole!");
    return 1;
}
else if(CP == 1000) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2081.9641,-133.0353,35.0422,1.0); CP = 1001; }
else if(CP == 1001) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2085.8484,-150.4519,35.0368,1.0); CP = 1002; }
else if(CP == 1002) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2080.1389,-165.4205,35.0367,1.0); CP = 1003; }
else if(CP == 1003) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2085.3276,-177.4574,35.0368,1.0); CP = 1004; }
else if(CP == 1004) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2079.3979,-189.7443,35.0369,1.0); CP = 1005; }
else if(CP == 1005) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.7139,-193.2312,35.0368,1.0); CP = 1006; }
else if(CP == 1006) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2089.2493,-193.2392,35.0367,1.0); CP = 1007; }
else if(CP == 1007) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2080.7329,-204.4509,35.0363,1.0); CP = 1008;  SendClientMessage(playerid,COLOR_WHITE," INSPEKTOR: Vozite u rikverc do sledece garaze !! ");}
else if(CP == 1008) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2083.1824,-221.6862,35.0368,1.0); CP = 1009; }
else if(CP == 1009) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2080.9287,-232.9593,35.0366,1.0); CP = 1010; }
else if(CP == 1010) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2090.1418,-242.7735,35.0364,1.0); CP = 1011;  SendClientMessage(playerid,COLOR_WHITE," INSPEKTOR: Odlicno,nastavite pravo !! ");}
else if(CP == 1011) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2077.0034,-252.6892,35.0367,1.0); CP = 1012; }
else if(CP == 1012) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2068.6506,-263.0544,35.0383,1.0); CP = 1013; }
else if(CP == 1013) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2030.3043,-257.5974,35.0367,1.0); CP = 1014; }
else if(CP == 1014) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2027.0951,-269.1131,35.0387,1.0); CP = 1015; }
else if(CP == 1015) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2066.0715,-257.9253,35.0368,1.0); CP = 1016; }
else if(CP == 1016) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2083.7317,-257.7369,35.0368,1.0); CP = 1017; }
else if(CP == 1017) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.7847,-266.5110,35.0405,1.0); CP = 1018; }
else if(CP == 1018) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.6636,-250.2710,35.0302,1.0); CP = 1019; }
else if(CP == 1019) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2052.4404,-234.1085,35.0368,1.0); CP = 1020; }
else if(CP == 1020) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.8035,-224.1850,35.0367,1.0); CP = 1021; }
else if(CP == 1021) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2051.4038,-214.6822,35.0403,1.0); CP = 1022; }
else if(CP == 1022) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.7737,-206.0320,35.0406,1.0); CP = 1023; }
else if(CP == 1023) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.1257,-192.9329,35.0438,1.0); CP = 1024; }
else if(CP == 1024) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.6887,-184.6975,35.0402,1.0); CP = 1025; }
else if(CP == 1025) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.3494,-173.8166,35.0367,1.0); CP = 1026; }
else if(CP == 1026) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.3540,-163.2797,35.0366,1.0); CP = 1027; }
else if(CP == 1027) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.0205,-153.3754,35.0436,1.0); CP = 1028; }
else if(CP == 1028) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2036.3260,-171.7553,35.0383,1.0); CP = 1029; }
else if(CP == 1029) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2042.5052,-164.9775,35.0385,1.0); CP = 1030;  SendClientMessage(playerid,COLOR_WHITE," {00C2ECFF}INSPEKTOR: {FFFFFFFF} Uparkirajte se paralelno !! ");}
else if(CP == 1030) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2037.4121,-212.2034,35.0366,1.0); CP = 1031; }
else if(CP == 1031) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2043.8048,-203.9185,35.0362,1.0); CP = 1032;  SendClientMessage(playerid,COLOR_WHITE," {00C2ECFF}INSPEKTOR: {FFFFFFFF} Uparkirajte se paralelno !! ");}
else if(CP == 1032) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2037.9120,-238.6192,35.0436,1.0); CP = 1033; }
else if(CP == 1033) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2044.0908,-228.4451,35.0434,1.0); CP = 1034;  SendClientMessage(playerid,COLOR_WHITE," {00C2ECFF}INSPEKTOR: {FFFFFFFF} Uparkirajte se paralelno !! ");}
else if(CP == 1034) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2028.5005,-246.2079,35.0366,1.0); CP = 1035; }
else if(CP == 1035) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2014.2362,-234.9767,35.0368,1.0); CP = 1036; }
else if(CP == 1036) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2024.4750,-223.8892,35.0365,1.0); CP = 1037; }
else if(CP == 1037) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2015.6886,-207.3432,35.0421,1.0); CP = 1038; }
else if(CP == 1038) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2023.9586,-195.5123,35.0367,1.0); CP = 1039; }
else if(CP == 1039) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2015.5403,-185.1800,35.0361,1.0); CP = 1040; }
else if(CP == 1040) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2025.0861,-173.8540,35.0369,1.0); CP = 1041; }
else if(CP == 1041) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2014.6770,-162.2000,35.0367,1.0); CP = 1042; }
else if(CP == 1042) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2024.3668,-151.4246,35.0367,1.0); CP = 1043; }
else if(CP == 1043) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2014.9255,-142.3989,35.0367,1.0); CP = 1044; }
else if(CP == 1044) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2033.2009,-131.8749,34.9792,1.0); CP = 1045; }
else if(CP == 1045) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2048.6812,-119.3143,34.9726,1.0); CP = 1046;  SendClientMessage(playerid,COLOR_WHITE," {00C2ECFF}INSPEKTOR: {FFFFFFFF} Polozili ste poligon,cestitamo !! ");}
//gradska
else if(CP == 1046)
{
  new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid),health);
if(health < 800)
{
CP = 0;
DisablePlayerCheckpoint(playerid);
IgracPolaze = 0;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_WHITE,"Slupali ste auto i pali ste voznju po poligonu");
PlayerInfo = 0;
polaganjeigraca -= 1;
SetPlayerPos(playerid, 1494.6207,1305.2336,1093.2891);
return 1;
}
if(GetPlayerState(playerid) == 2)
{
new tmpcar = GetPlayerVehicleID(playerid);
SetVehiclePos(tmpcar,-2046.925292,-97.473167,34.732051);
}
SendClientMessage(playerid,COLOR_WHITE,"Prelazimo na gradsku voznju");
DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,-2045.253662,-79.123504,34.723171,4.0);
CP = 1047;
}
else if(CP == 1047) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2019.126953,-72.553985,34.714530,3.0); CP = 1048; }
else if(CP == 1048) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2004.274902,-59.062587,34.739490,3.0); CP = 1049; }
else if(CP == 1049) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.469604,13.172634,32.7259670,3.0); CP = 1050; }
else if(CP == 1050) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2003.509277,159.963592,27.105400,3.0); CP = 1051; }
else if(CP == 1051) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2000.251831,302.866943,34.302989,3.0); CP = 1052; }
else if(CP == 1052) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2018.377075,322.638397,34.578002,3.0); CP = 1053; }
else if(CP == 1053) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2134.709716,322.438934,34.723937,3.0); CP = 1054; }
else if(CP == 1054) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2157.883056,322.223144,34.736476,3.0); CP = 1055; }
else if(CP == 1055) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2239.573242,322.606079,34.749355,3.0); CP = 1056; }
else if(CP == 1056) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2254.805664,309.078704,34.737968,3.0); CP = 1057; }
else if(CP == 1057) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2255.006103,215.778076,34.733486,3.0); CP = 1058; }
else if(CP == 1058) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2257.176513,50.701431,34.7382160,3.0); CP = 1059; }
else if(CP == 1059) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2261.139648,-59.307384,34.737949,3.0); CP = 1060; }
else if(CP == 1060) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2241.222167,-72.862503,34.735687,3.0); CP = 1061; }
else if(CP == 1061) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2178.397216,-73.821655,34.738384,3.0); CP = 1062; }
else if(CP == 1062) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2103.538330,-72.750183,34.738292,3.0); CP = 1063; }
else if(CP == 1063) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2060.662353,-72.532234,34.710895,3.0); CP = 1064; }
else if(CP == 1064) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2049.887695,-78.990119,34.716934,3.0); CP = 1065; }
else if(CP == 1065) { DisablePlayerCheckpoint(playerid); SetPlayerCheckpoint(playerid,-2050.239990,-94.264488,34.733905,3.0); CP = 1066; }
else if(CP == 1066)
{
  new Float:health;
GetVehicleHealth(GetPlayerVehicleID(playerid),health);
if(health < 800)
{
CP = 0;
DisablePlayerCheckpoint(playerid);
IgracPolaze = 0;
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_WHITE,"Slupali ste auto i pali ste gradsku voznju");
PlayerInfo = 0;
polaganjeigraca -= 1;
PlayerInfo = 3;
SetPlayerInterior(playerid,3);
SetPlayerPos(playerid, 1494.6207,1305.2336,1093.2891);
return 1;
}
    DisablePlayerCheckpoint(playerid);
    CP = 0;
    IgracPolaze = 0;
    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
    SendClientMessage(playerid,COLOR_WHITE,"Zavrsili ste polaganje");
GameTextForPlayer(playerid, "~w~Auto-Skola",5000,1);
SetPlayerInterior(playerid,3);
SetPlayerFacingAngle(playerid, 0);
PlayerInfo = 3;
    PlayerInfo = 1;
    polaganjeigraca -= 1;
    SendClientMessage(playerid,COLOR_LIGHTBLUE,"Dobili ste dozvolu");
SetPlayerPos(playerid, 1494.6207,1305.2336,1093.2891);
}
}
else
{
switch (gPlayerCheckpointStatus)
{
case CHECKPOINT_HOME:
    {
PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
DisablePlayerCheckpoint(playerid);
gPlayerCheckpointStatus = CHECKPOINT_NONE;
GameTextForPlayer(playerid, "~w~Vi ste~n~~y~kod kuce", 5000, 1);
    }
}
}
Obrisan korisnik Obrisan korisnik
pre 11 godina
Zna neko rijesiti ?

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava