[pomoc] Polaganje za vozacku

Započeo | MARKO |, Oktobar 27, 2010, 23:47:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

pravio sam to polaganje prema tutu. i napravio ovako

CMD:
if(strcmp(cmd, "/polaganje", true) == 0)
    {
if(IsPlayerConnected(playerid))
        {
if(PlayerToPoint(2, playerid, 1490.2845,1305.9308,1093.2964))
{
if(PlayerInfo[playerid][pPolaganje] > 0)
                {
SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano polaganje!");
                return 1;
                }
if(PlayerInfo[playerid][pCarLic] == 0)
{
SendClientMessage(playerid,COLOR_LIGHTRED,"*Aktivirao si polaganje");
                    SendClientMessage(playerid,COLOR_WHITE,"Udji u neko od ponudenih vozila i zapocni polaganje");
                    PlayerInfo[playerid][pPolaganje] = 1;
                    SetPlayerCheckpoint(playerid, 1213.3877,-1844.8029,13.3828,15);
            }
              else
              {
                  SendClientMessage(playerid, COLOR_GREY, "Vec imas Vozacku Dozovlu!");
                    return 1;
                }
          }
        }
return 1;
}


A ostatak je ovako slozen:
if(PlayerInfo[playerid][pPolaganje] > 1)
{
if(PlayerToPoint(20, playerid,1213.3877,-1844.8029,13.3828))
{
if(PlayerInfo[playerid][pPolaganje] == 1)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 2;
SetPlayerCheckpoint(playerid,1068.2581,-1850.0265,13.1110,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Pratite Crvene markere i pazite da ne ostetite vozilo !");
}
}
}
if(PlayerToPoint(20, playerid,1068.2581,-1850.0265,13.1110))
{
if(PlayerInfo[playerid][pPolaganje] == 2)
{
new Veh = GetPlayerVehicleID(playerid);
                if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 3;
SetPlayerCheckpoint(playerid,878.7126,-1772.3237,13.0983,20);
}
}
}
if(PlayerToPoint(20, playerid,878.7126,-1772.3237,13.0983))
{
if(PlayerInfo[playerid][pPolaganje] == 3)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 4;
SetPlayerCheckpoint(playerid,593.3983,-1726.3771,13.2924,20);
}
}
}
if(PlayerToPoint(20, playerid,593.3983,-1726.3771,13.2924))
{
if(PlayerInfo[playerid][pPolaganje] == 4)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 5;
SetPlayerCheckpoint(playerid,155.7663,-1564.2294,11.1399,20);
}
}
}
if(PlayerToPoint(20, playerid,155.7663,-1564.2294,11.1399))
{
if(PlayerInfo[playerid][pPolaganje] == 5)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 6;
SetPlayerCheckpoint(playerid,401.6820,-1355.6317,14.3967,20);
}
}
}
if(PlayerToPoint(20, playerid,401.6820,-1355.6317,14.3967))
{
if(PlayerInfo[playerid][pPolaganje] == 6)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 7;
SetPlayerCheckpoint(playerid,687.4849,-1163.1223,14.9710,20);
}
}
}
if(PlayerToPoint(20, playerid,687.4849,-1163.1223,14.9710))
{
if(PlayerInfo[playerid][pPolaganje] == 7)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 8;
SetPlayerCheckpoint(playerid,909.9029,-982.1390,37.5305,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Samo tako nastavite i pazite na vozilo !");
}
}
}
if(PlayerToPoint(20, playerid,909.9029,-982.1390,37.5305))
{
if(PlayerInfo[playerid][pPolaganje] == 8)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 9;
SetPlayerCheckpoint(playerid,1220.1667,-940.2657,42.3454,20);
}
}
}
if(PlayerToPoint(20, playerid,1220.1667,-940.2657,42.3454))
{
if(PlayerInfo[playerid][pPolaganje] == 9)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 10;
SetPlayerCheckpoint(playerid,1448.5516,-954.1425,35.8335,20);
}
}
}
if(PlayerToPoint(20, playerid,1448.5516,-954.1425,35.8335))
{
if(PlayerInfo[playerid][pPolaganje] == 10)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 11;
SetPlayerCheckpoint(playerid,1591.1068,-1094.0732,57.8283,20);
}
}
}
if(PlayerToPoint(20, playerid,1591.1068,-1094.0732,57.8283))
{
if(PlayerInfo[playerid][pPolaganje] == 11)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 12;
SetPlayerCheckpoint(playerid,1591.5980,-1398.3152,28.3008,20);
}
}
}
if(PlayerToPoint(20, playerid,1591.5980,-1398.3152,28.3008))
{
if(PlayerInfo[playerid][pPolaganje] == 12)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 13;
SetPlayerCheckpoint(playerid,1680.8319,-1541.1761,23.9286,20);
}
}
}
if(PlayerToPoint(20, playerid,1680.8319,-1541.1761,23.9286))
{
if(PlayerInfo[playerid][pPolaganje] == 13)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 14;
SetPlayerCheckpoint(playerid,2019.6755,-1531.4174,3.2680,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Samo tako nastavite, odlicno vam ide !");
}
}
}
if(PlayerToPoint(20, playerid,2019.6755,-1531.4174,3.2680))
{
if(PlayerInfo[playerid][pPolaganje] == 14)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 15;
SetPlayerCheckpoint(playerid,2081.6382,-1665.3240,13.1060,20);
}
}
}
if(PlayerToPoint(20, playerid,2081.6382,-1665.3240,13.1060))
{
if(PlayerInfo[playerid][pPolaganje] == 15)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 16;
SetPlayerCheckpoint(playerid,2041.2673,-1715.3176,13.2624,20);
}
}
}
if(PlayerToPoint(20, playerid,2041.2673,-1715.3176,13.2624))
{
if(PlayerInfo[playerid][pPolaganje] == 16)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 17;
SetPlayerCheckpoint(playerid,2089.1030,-1758.9474,13.1203,20);
}
}
}
if(PlayerToPoint(20, playerid,2089.1030,-1758.9474,13.1203))
{
if(PlayerInfo[playerid][pPolaganje] == 17)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 18;
SetPlayerCheckpoint(playerid,2076.7244,-1931.4587,13.0800,20);
}
}
}
if(PlayerToPoint(20, playerid,2076.7244,-1931.4587,13.0800))
{
if(PlayerInfo[playerid][pPolaganje] == 18)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 19;
SetPlayerCheckpoint(playerid,1961.7708,-1933.5216,13.0980,20);
}
}
}
if(PlayerToPoint(20, playerid,1961.7708,-1933.5216,13.0980))
{
if(PlayerInfo[playerid][pPolaganje] == 19)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 20;
SetPlayerCheckpoint(playerid,1955.8322,-2163.0288,13.0973,20);
}
}
}
if(PlayerToPoint(20, playerid,1955.8322,-2163.0288,13.0973))
{
if(PlayerInfo[playerid][pPolaganje] == 20)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 21;
SetPlayerCheckpoint(playerid,1561.8317,-2102.0195,33.3761,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Odlicno !");
}
}
}
if(PlayerToPoint(20, playerid,1561.8317,-2102.0195,33.3761))
{
if(PlayerInfo[playerid][pPolaganje] == 21)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 22;
SetPlayerCheckpoint(playerid,1530.3253,-1872.1180,13.1021,20);
}
}
}
if(PlayerToPoint(20, playerid,1530.3253,-1872.1180,13.1021))
{
if(PlayerInfo[playerid][pPolaganje] == 22)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 23;
SetPlayerCheckpoint(playerid,1392.2028,-1870.3838,13.1021,20);
}
}
}
if(PlayerToPoint(20, playerid,1392.2028,-1870.3838,13.1021))
{
if(PlayerInfo[playerid][pPolaganje] == 23)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 24;
SetPlayerCheckpoint(playerid,1388.1467,-1732.0883,13.1030,20);
}
}
}
if(PlayerToPoint(20, playerid,1388.1467,-1732.0883,13.1030))
{
if(PlayerInfo[playerid][pPolaganje] == 24)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 25;
SetPlayerCheckpoint(playerid,1297.0101,-1740.4408,13.0979,20);
}
}
}
if(PlayerToPoint(20, playerid,1297.0101,-1740.4408,13.0979))
{
if(PlayerInfo[playerid][pPolaganje] == 25)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 26;
SetPlayerCheckpoint(playerid,1296.4205,-1851.4619,13.0979,20);
}
}
}
if(PlayerToPoint(20, playerid,1296.4205,-1851.4619,13.0979))
{
if(PlayerInfo[playerid][pPolaganje] == 26)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 27;
SetPlayerCheckpoint(playerid,1213.1183,-1830.5945,13.1195,20);
}
}
}
if(PlayerToPoint(20, playerid,1213.1183,-1830.5945,13.1195))
{
if(PlayerInfo[playerid][pPolaganje] == 27)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_GREEN ,"*Polaganje uspjesno zavrseno");
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
new MaxPlayers = GetMaxPlayers();
for(new forplayerid; forplayerid < MaxPlayers; forplayerid++)
{
if(!IsPlayerConnected(forplayerid)) continue;
new
VehicleID = GetPlayerVehicleID(forplayerid),
Float:Health;
if(VehicleID)
{
GetVehicleHealth(VehicleID, Health);
if(Health > 700)
{
PlayerInfo[playerid][pCarLic] = 1;
SendClientMessage(playerid, COLOR_DBLUE ,"Cestitamo, dobili ste vozacku dozovlu");
}
else
{
SendClientMessage(playerid, COLOR_RED ,"Nazalost niste dobili vozacku dozvolu");
return 1;
}
}
}
}
}
}
}


i sad kad udjem u ta vozila odredjena za polaganje, i udjem na prvi CP, onda mi drugi nece prikazati. zasto je to tako??

hvala

Nisam siguran, ali ovako površno gledajući...

U ovom drugom kodu, prva linija...

   if(PlayerInfo[playerid][pPolaganje] > 1)

Logički gledano, jesi siguran da ovdje umjesto ' > ' ne treba ' = '   ?   ...
Povratak na balkan-samp  :)  15.01.2013. 
..   


Respect : [BP]HeLoX, Correlli, [CH:FR]Djea, LordShigi, LuKsA, BloodMaster, [H]265

nzm ja. tak je bilo u tutu.

EDIT: Zna li netko kako bi mogao ovo rjestiti?
Poslednja Izmena: Oktobar 28, 2010, 19:30:05 POSLE PODNE od Moonwalker

if(PlayerInfo[playerid][pPolaganje] > 1)
{
if(PlayerToPoint(20, playerid,1213.3877,-1844.8029,13.3828))
{
if(PlayerInfo[playerid][pPolaganje] == 1)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 2;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1068.2581,-1850.0265,13.1110,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Pratite Crvene markere i pazite da ne ostetite vozilo !");
}
}
}
if(PlayerToPoint(20, playerid,1068.2581,-1850.0265,13.1110))
{
if(PlayerInfo[playerid][pPolaganje] == 2)
{
new Veh = GetPlayerVehicleID(playerid);
                if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 3;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,878.7126,-1772.3237,13.0983,20);
}
}
}
if(PlayerToPoint(20, playerid,878.7126,-1772.3237,13.0983))
{
if(PlayerInfo[playerid][pPolaganje] == 3)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 4;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,593.3983,-1726.3771,13.2924,20);
}
}
}
if(PlayerToPoint(20, playerid,593.3983,-1726.3771,13.2924))
{
if(PlayerInfo[playerid][pPolaganje] == 4)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 5;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,155.7663,-1564.2294,11.1399,20);
}
}
}
if(PlayerToPoint(20, playerid,155.7663,-1564.2294,11.1399))
{
if(PlayerInfo[playerid][pPolaganje] == 5)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 6;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,401.6820,-1355.6317,14.3967,20);
}
}
}
if(PlayerToPoint(20, playerid,401.6820,-1355.6317,14.3967))
{
if(PlayerInfo[playerid][pPolaganje] == 6)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 7;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,687.4849,-1163.1223,14.9710,20);
}
}
}
if(PlayerToPoint(20, playerid,687.4849,-1163.1223,14.9710))
{
if(PlayerInfo[playerid][pPolaganje] == 7)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 8;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,909.9029,-982.1390,37.5305,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Samo tako nastavite i pazite na vozilo !");
}
}
}
if(PlayerToPoint(20, playerid,909.9029,-982.1390,37.5305))
{
if(PlayerInfo[playerid][pPolaganje] == 8)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 9;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1220.1667,-940.2657,42.3454,20);
}
}
}
if(PlayerToPoint(20, playerid,1220.1667,-940.2657,42.3454))
{
if(PlayerInfo[playerid][pPolaganje] == 9)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 10;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1448.5516,-954.1425,35.8335,20);
}
}
}
if(PlayerToPoint(20, playerid,1448.5516,-954.1425,35.8335))
{
if(PlayerInfo[playerid][pPolaganje] == 10)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 11;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1591.1068,-1094.0732,57.8283,20);
}
}
}
if(PlayerToPoint(20, playerid,1591.1068,-1094.0732,57.8283))
{
if(PlayerInfo[playerid][pPolaganje] == 11)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 12;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1591.5980,-1398.3152,28.3008,20);
}
}
}
if(PlayerToPoint(20, playerid,1591.5980,-1398.3152,28.3008))
{
if(PlayerInfo[playerid][pPolaganje] == 12)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 13;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1680.8319,-1541.1761,23.9286,20);
}
}
}
if(PlayerToPoint(20, playerid,1680.8319,-1541.1761,23.9286))
{
if(PlayerInfo[playerid][pPolaganje] == 13)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 14;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2019.6755,-1531.4174,3.2680,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Samo tako nastavite, odlicno vam ide !");
}
}
}
if(PlayerToPoint(20, playerid,2019.6755,-1531.4174,3.2680))
{
if(PlayerInfo[playerid][pPolaganje] == 14)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 15;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2081.6382,-1665.3240,13.1060,20);
}
}
}
if(PlayerToPoint(20, playerid,2081.6382,-1665.3240,13.1060))
{
if(PlayerInfo[playerid][pPolaganje] == 15)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 16;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2041.2673,-1715.3176,13.2624,20);
}
}
}
if(PlayerToPoint(20, playerid,2041.2673,-1715.3176,13.2624))
{
if(PlayerInfo[playerid][pPolaganje] == 16)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 17;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2089.1030,-1758.9474,13.1203,20);
}
}
}
if(PlayerToPoint(20, playerid,2089.1030,-1758.9474,13.1203))
{
if(PlayerInfo[playerid][pPolaganje] == 17)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 18;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,2076.7244,-1931.4587,13.0800,20);
}
}
}
if(PlayerToPoint(20, playerid,2076.7244,-1931.4587,13.0800))
{
if(PlayerInfo[playerid][pPolaganje] == 18)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 19;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1961.7708,-1933.5216,13.0980,20);
}
}
}
if(PlayerToPoint(20, playerid,1961.7708,-1933.5216,13.0980))
{
if(PlayerInfo[playerid][pPolaganje] == 19)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 20;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1955.8322,-2163.0288,13.0973,20);
}
}
}
if(PlayerToPoint(20, playerid,1955.8322,-2163.0288,13.0973))
{
if(PlayerInfo[playerid][pPolaganje] == 20)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 21;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1561.8317,-2102.0195,33.3761,20);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Odlicno !");
}
}
}
if(PlayerToPoint(20, playerid,1561.8317,-2102.0195,33.3761))
{
if(PlayerInfo[playerid][pPolaganje] == 21)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 22;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1530.3253,-1872.1180,13.1021,20);
}
}
}
if(PlayerToPoint(20, playerid,1530.3253,-1872.1180,13.1021))
{
if(PlayerInfo[playerid][pPolaganje] == 22)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 23;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1392.2028,-1870.3838,13.1021,20);
}
}
}
if(PlayerToPoint(20, playerid,1392.2028,-1870.3838,13.1021))
{
if(PlayerInfo[playerid][pPolaganje] == 23)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 24;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1388.1467,-1732.0883,13.1030,20);
}
}
}
if(PlayerToPoint(20, playerid,1388.1467,-1732.0883,13.1030))
{
if(PlayerInfo[playerid][pPolaganje] == 24)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 25;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1297.0101,-1740.4408,13.0979,20);
}
}
}
if(PlayerToPoint(20, playerid,1297.0101,-1740.4408,13.0979))
{
if(PlayerInfo[playerid][pPolaganje] == 25)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 26;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1296.4205,-1851.4619,13.0979,20);
}
}
}
if(PlayerToPoint(20, playerid,1296.4205,-1851.4619,13.0979))
{
if(PlayerInfo[playerid][pPolaganje] == 26)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 27;
                                                            DisablePlayerCheckpoint(playerid);
SetPlayerCheckpoint(playerid,1213.1183,-1830.5945,13.1195,20);
}
}
}
if(PlayerToPoint(20, playerid,1213.1183,-1830.5945,13.1195))
{
if(PlayerInfo[playerid][pPolaganje] == 27)
{
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 263 || Veh == 264 ||  Veh == 265 ||  Veh == 266 ||  Veh == 267 ||  Veh == 268 ||  Veh == 269)
{
PlayerInfo[playerid][pPolaganje] = 0;
DisablePlayerCheckpoint(playerid);
SendClientMessage(playerid, COLOR_GREEN ,"*Polaganje uspjesno zavrseno");
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
RemovePlayerFromVehicle(playerid);
new MaxPlayers = GetMaxPlayers();
for(new forplayerid; forplayerid < MaxPlayers; forplayerid++)
{
if(!IsPlayerConnected(forplayerid)) continue;
new
VehicleID = GetPlayerVehicleID(forplayerid);
                                                                        DisablePlayerCheckpoint(playerid);
Float:Health;
if(VehicleID)
{
GetVehicleHealth(VehicleID, Health);
if(Health > 700)
{
PlayerInfo[playerid][pCarLic] = 1;
SendClientMessage(playerid, COLOR_DBLUE ,"Cestitamo, dobili ste vozacku dozvolu");
}
else
{
SendClientMessage(playerid, COLOR_RED ,"Nazalost niste dobili vozacku dozvolu");
return 1;
}
}
}
}
}
}
}



Nigdje nisi stavio DisablePlayerCheckpoint(playerid);

Stavi onaj gore code sto sam ti napravio i trebalo bi ici glatko...


taj problem se dugaÄ'a često nisam ni ja jos skonto a ovi dobri scripteri nece rec...!!!!! :'(

Pojavit ce se nakon nekog vremena... To je bilo i na ch problem probaj izac pa uci u auto/bus

Citat: [Saw]BloodMaster poslato Oktobar 29, 2010, 19:41:18 POSLE PODNE
Pojavit ce se nakon nekog vremena... To je bilo i na ch problem probaj izac pa uci u auto/bus

ma jesam. i nece.