[POMOC] Polaganje

Započeo tWix
24. Nov. 2010.
901
pregleda
4
postova
Daffy
4
Enforcer
24. Nov. 2010.
Evo radio sam po TuTu za polaganje i sve uradim i kad hocu da Compilam izbaci mi "DONT SEND"
Evo kako sam napravio:


Komanda;
if(strcmp(cmd, "/polaganje", true) == 0)//ovdje sam ja stavio da komanda bude /polaganje ali vi mozete to izmjeniti
  {
      if(IsPlayerConnected(playerid))//provjerava dali je igrac connectan
      {
          if(PlayerToPoint(2.0, playerid, 1491.3606,1307.2806,1093.2891))//ovdje stavite koordinate i radius gdje igrac mora biti da bi upisao ovu komandu
        {
              if(PlayerInfo > 0)//provjerava dali igrac ima aktivirano polaganje
              {
                    SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano polaganje!");//salje poruku igracu
                    return 1;
              }
            if(PlayerInfo == 0)//provjerava dali igrac vec ima vozacku dozvolu
            {

                      SendClientMessage(playerid,COLOR_PINK,"*Aktivirao si polaganje");//salje poruku igracu
                      SendClientMessage(playerid,COLOR_PINK,"Izadji napolje i uzmi neki od ponudjenih auta");//salje poruku igracu
                      PlayerInfo = 1;//oznacava da je igrac zapoceo polaganje
                      SetPlayerCheckpoint(playerid, 2076.5986,-1914.4857,13.5469,2.0);//ovdje stavite x,y,z i radius prvog cp-a
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREY, "Vec imas Vozacku Dozvolu!");//salje poruku igracu
                  return 1;
              }
        }
      }
      return 1;
  }

OnPlayerEnterCheckpoint
if(PlayerInfo > 0)
    {
        if(PlayerToPoint(2.0, playerid,2076.5986,-1914.4857,13.5469))//ovdje dodajte vase kooridnate i radius prvog cp-a
        {
            if(PlayerInfo == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)//provjerava dali je igrac u vozilima,ovdje stavite idove auta koje ste namjenili za polaganje
                  {
                          PlayerInfo = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                          SetPlayerCheckpoint(playerid,2083.4250,-1798.6179,13.3828,2.0);//ovdje dodajte vase kooridnate i radius drugog cp-a
                          SendClientMessage(playerid, COLOR_LIGHTBLUE, "*Skrenite levo i nastavite lepo da vozite!");//salje poruku igracu
                }
            }
        }
  }
if(PlayerToPoint(2.0, playerid,2083.4250,-1798.6179,13.3828))//ovdje dodajte vase kooridnate i radius drugog cp-a
        {
            if(PlayerInfo == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 3;//
                          SetPlayerCheckpoint(playerid,2187.5442,-1727.2318,13.3750,2.0);//ovdje dodajte vase kooridnate i radius treceg cp-a
                }
            }
      }
if(PlayerToPoint(2.0, playerid,2187.5442,-1727.2318,13.3750))//ovdje dodajte vase kooridnate i radius treceg cp-a
        {
            if(PlayerInfo == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,2152.6050,-1627.9856,13.5628,2.0);//ovdje dodajte vase kooridnate i radius cetvrtog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,2152.6050,-1627.9856,13.5628))//ovdje dodajte vase kooridnate i radius cetvrtog cp-a
        {
            if(PlayerInfo == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,2021.7642,-1526.5995,3.4753,2.0);//ovdje dodajte vase kooridnate i radius petog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,2021.7642,-1526.5995,3.4753))//ovdje dodajte vase kooridnate i radius petog cp-a
        {
            if(PlayerInfo == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1772.4028,-1454.7887,13.3828,2.0);//ovdje dodajte vase kooridnate i radius sestog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1772.4028,-1454.7887,13.3828))//ovdje dodajte vase kooridnate i radius sestog cp-a
        {
            if(PlayerInfo == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1616.5511,-1438.5693,13.3828,2.0);//ovdje dodajte vase kooridnate i radius sedmog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1616.5511,-1438.5693,13.3828))//ovdje dodajte vase kooridnate i radius sedmog cp-a
        {
            if(PlayerInfo == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1465.3320,-1296.5338,13.3968,2.0);//ovdje dodajte vase kooridnate i radius osmog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1465.3320,-1296.5338,13.3968))//ovdje dodajte vase kooridnate i radius osmog cp-a
        {
            if(PlayerInfo == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1368.0459,-1238.7150,13.3828,2.0);//ovdje dodajte vase kooridnate i radius devetog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1368.0459,-1238.7150,13.3828))//ovdje dodajte vase kooridnate i radius devetog cp-a
        {
            if(PlayerInfo == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1195.9280,-1290.1003,13.3828,2.0);//ovdje dodajte vase kooridnate i radius desetog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1195.9280,-1290.1003,13.3828))//ovdje dodajte vase kooridnate i radius desetog cp-a
        {
            if(PlayerInfo == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1193.2407,-1564.4678,13.3828,2.0);//ovdje dodajte vase kooridnate i radius jedanaestog(11) cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1193.2407,-1564.4678,13.3828))//ovdje dodajte vase kooridnate i radius jedanaestog cp-a
        {
            if(PlayerInfo == 11)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1295.5065,-1689.6229,13.3828,2.0);//ovdje dodajte vase kooridnate i radius dvanaestog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1295.5065,-1689.6229,13.3828))//ovdje dodajte vase kooridnate i radius dvanaestog cp-a
        {
            if(PlayerInfo == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1371.0221,-1873.5703,13.3828,2.0);//ovdje dodajte vase kooridnate i radius trinaestog cp-a
                          }
}
      }
if(PlayerToPoint(2.0, playerid,1371.0221,-1873.5703,13.3828))//ovdje dodajte vase kooridnate i radius trinaestog cp-a
        {
            if(PlayerInfo == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1415.4785,-1735.0316,13.3906,2.0);//ovdje dodajte vase kooridnate i radius cetrnaestog cp-a
  }
                  }
      }
if(PlayerToPoint(2.0, playerid,1415.4785,-1735.0316,13.3906))//ovdje dodajte vase kooridnate i radius cetrnaestog cp-a
        {
            if(PlayerInfo == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1567.5548,-1740.7454,13.3828,2.0);//ovdje dodajte vase kooridnate i radius petnaestog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1567.5548,-1740.7454,13.3828))//ovdje dodajte vase kooridnate i radius petnaestog cp-a
        {
            if(PlayerInfo == 15)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1680.0637,-1867.0475,13.3906,2.0);//ovdje dodajte vase kooridnate i radius sesnajstog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1680.0637,-1867.0475,13.3906))//ovdje dodajte vase kooridnate i radius sesnajstog cp-a
        {
            if(PlayerInfo == 16)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1813.4730,-1834.7759,13.4141,2.0);//ovdje dodajte vase kooridnate i radius sedamnaestog cp-a
                          }
            }
      }
if(PlayerToPoint(2.0, playerid,1813.4730,-1834.7759,13.4141))//ovdje dodajte vase kooridnate i radius sedamnaestog cp-a
        {
            if(PlayerInfo == 17)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                          PlayerInfo = 4;//
                          SetPlayerCheckpoint(playerid,1951.0657,-1934.6119,13.3828,2.0);//ovdje dodajte vase kooridnate i radius osamnaestog cp-a
  }
            }
      }
if(PlayerToPoint(3.0, playerid,2058.4976,-1922.7428,13.5469))//ovdje stavite koordinate zadnjeg cp-a
        {
            if(PlayerInfo == 18)//ovdje ide vrijednost zadnjeg cp-a, tj. koji je to cp po redu
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 116 || Veh == 117 || Veh == 118 || Veh == 119 || Veh == 120)
                  {
                        PlayerInfo = 0;//oznacava da je igrac zavrsio polaganje
                        DisablePlayerCheckpoint(playerid);//uklanja cp
                        SendClientMessage(playerid, COLOR_GREEN ,"*Polaganje zavrseno");//salje poruku igracu
                        SetVehicleToRespawn(GetPlayerVehicleID(playerid));//respawna vozilo
                        RemovePlayerFromVehicle(playerid);//izbacuje igraca iz vozila
                        new MaxPlayers = GetMaxPlayers();
                    for(new forplayerid; forplayerid < MaxPlayers; forplayerid++)
                    {
                        if(!IsPlayerConnected(forplayerid)) continue;
                        new
                        VehicleID = GetPlayerVehicleID(forplayerid),
                        Float:Health;
                        if(VehicleID)
                        {
                          GetVehicleHealth(VehicleID, Health);//provjerava health vozila
                          if(Health > 900)//ako je health vozila veci od 900 igrac dobiva vozacku, vi mozete staviti na kolko hocete
                          {
                          PlayerInfo = 1;//daje vozacku dozvolu igracu
                          SendClientMessage(playerid, COLOR_DBLUE ,"Cestitamo, dobio si Vozacku Dozovlu");//salje poruku igracu
                          }
                          else
                          {
                          SendClientMessage(playerid, COLOR_RED ,"Nazalost niste dobili vozacku dozovlu");//ovu poruku ce poslati igracu samo ako mu je vozilu health ispod 950
                          return 1;
                          }
                      }
                  }
              }
          }
      }


PS: Zagrade sam izbrojao i sve je oK! Ima isti broj zatvorenih i otvorenih..Tako da zagrade su u redu! Sta jos moze biti sem zagrada 😕
Tommy_Diaz
2
Wheel Man
25. Nov. 2010.
Isti problem.
Problem je u komandi negdje, i meni se isto dogada.

Zanimljivo je to sto na drugom modu, takoder GF sve radi bez problema i bez errora/warnova  😕
Deleted User
Obrisan korisnik
25. Nov. 2010.
pokusas iz drugog pawno-a.....mozda ti je samo do pawno-a....
Tommy_Diaz
2
Wheel Man
25. Nov. 2010.
Ponovno sam C/P komandu, 3ci put za redom i nekim cudom je mod compilean  🙄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha