"Trebam nešto" - tema

Započeo Correlli, Jul 30, 2010, 15:11:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.



Citat: Lemi_Zero poslato Septembar 24, 2011, 15:45:48 POSLE PODNE
Citat: Crack. poslato Septembar 24, 2011, 15:27:46 POSLE PODNE
Jeli moguce uklonit ovaj dialog http://i.imgur.com/zakb6.png

Po mom misljenju mislim da se to nemoze skloniti :)
vidio sam na nekim serverima da toga nema nikako tog dialoga

dragan12

Citat: Crack. poslato Septembar 24, 2011, 22:42:58 POSLE PODNE
Citat: Lemi_Zero poslato Septembar 24, 2011, 15:45:48 POSLE PODNE
Citat: Crack. poslato Septembar 24, 2011, 15:27:46 POSLE PODNE
Jeli moguce uklonit ovaj dialog http://i.imgur.com/zakb6.png

Po mom misljenju mislim da se to nemoze skloniti :)
vidio sam na nekim serverima da toga nema nikako tog dialoga
Koriscenje SpawnPlayer(playerid); jel si to probao? Sa tim se uklanja ja mislim.

pozz ! trebam pomoc !! pokusavao sam da napravim da mi budu autobuske rute u dijalogu al nezznam tako da sam dosao zatrazit vasu pomoc! zelio bi da mi budu 2 rute u dijalogu da ne moram kucati /starteast i startwest!! ako neko zna nek pomogne bio bu mu zahvalan!! :D


if(strcmp(cmd, "/startwest", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
      if(PlayerInfo[playerid][pJob] == 14)
      {
         if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
         {
            BusrouteWest[playerid][0] = 0;
            BusrouteEast[playerid][0] = 0;
         }
         if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
         {
            new playervehicleid = GetPlayerVehicleID(playerid);
            if(IsABus(playervehicleid))
            {
               TogglePlayerControllable(playerid, 1);
               GameTextForPlayer(playerid, "~g~Autobuska Ruta Zapoceta", 5000, 3);
               SendClientMessage(playerid, COLOR_LIGHTRED, "---------Autobuska putanja zapadni LS-----------");
               SendBusRoute(playerid, 1);
               SendClientMessage(playerid, COLOR_RED, " ");
               SendClientMessage(playerid, 0x9EC73DAA, "Crveni markeri ce biti postavljeni duzinom cele rute.");
               SendClientMessage(playerid, 0x9EC73DAA, "Vasa usluga ce biti izreklamirana najblizim igracima na vasoj putanji voznje.");
               BusrouteWest[playerid][0] = 1;
               BusrouteWest[playerid][1] = playervehicleid;
               OnPlayerEnterCheckpoint(playerid);
               return 1;
            }
            else
            {
               SendClientMessage(playerid, COLOR_GREY, "Vi niste u autobusu!");
            }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "Vec ste na ruti!");
         }
      }
      else
      {
         SendClientMessage(playerid, COLOR_GREY, "Niste vozac autobusa!");
      }
   }
   return 1;
}


if(strcmp(cmd, "/starteast", true) == 0)
{
   if(IsPlayerConnected(playerid))
   {
      if(PlayerInfo[playerid][pJob] == 14)
      {
         if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
         {
            BusrouteWest[playerid][0] = 0;
            BusrouteEast[playerid][0] = 0;
         }
          if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
          {
            new playervehicleid = GetPlayerVehicleID(playerid);
            if(IsABus(playervehicleid))
            {
               TogglePlayerControllable(playerid, 1);
               GameTextForPlayer(playerid, "~g~Autobuska ruta zapoceta", 5000, 3);
               SendClientMessage(playerid, COLOR_LIGHTRED, "---------Autobuska putanja istocni LS-----------");
               SendBusRoute(playerid, 0);
               SendClientMessage(playerid, COLOR_RED, " ");
                  SendClientMessage(playerid, 0x9EC73DAA, "Crveni markeri ce biti postavljeni duzinom cele rute.");
                  SendClientMessage(playerid, 0x9EC73DAA, "Vasa usluga ce biti izreklamirana najblizim igracima na vasoj putanji voznje.");
               BusrouteEast[playerid][0] = 1;
               BusrouteEast[playerid][1] = playervehicleid;
               OnPlayerEnterCheckpoint(playerid);
               return 1;
            }
             else
             {
                SendClientMessage(playerid, COLOR_GREY, "Niste u autobusu!");
             }
         }
         else
         {
            SendClientMessage(playerid, COLOR_GREY, "Vec ste na ruti!");
         }
      }
      else
      {
         SendClientMessage(playerid, COLOR_GREY, "Niste vozac autobusa!");
      }
   }
   return 1;
}
Poslednja Izmena: Septembar 25, 2011, 07:22:38 PRE PODNE od Aldin Begovic

evo ti

if(strcmp(cmd, "/bus", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 14)//provjerava dali igrac ima posao
        {
    ShowPlayerDialog(playerid, 107, DIALOG_STYLE_LIST, "{F3FF02}Autobuska Stanica","LS Zapadna stanica\nLS Istocna stanica", "U redu", "Odustani");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Niste zaposleni kao bus vozac!");
}
}
return 1;
}


if(dialogid == 107)
{
if(response)
{
    if(listitem == 0) // dole
{
if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
{
BusrouteWest[playerid][0] = 0;
BusrouteEast[playerid][0] = 0;
}
if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
{
new playervehicleid = GetPlayerVehicleID(playerid);
if(IsABus(playervehicleid))
{
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, "~g~Bus Route Started", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTRED, "---------Zapadna Los Santos Bus Ruta-----------");
SendBusRoute(playerid, 1);
SendClientMessage(playerid, COLOR_RED, " ");
SendClientMessage(playerid, COLOR_GREEN, "Crveni markeri ce biti postavljeni po ruti.");
SendClientMessage(playerid, COLOR_GREEN, "Vasa kompanija ce biti automatski reklamirana na sledecem stajanju igracima u blizini.");
BusrouteWest[playerid][0] = 1;
BusrouteWest[playerid][1] = playervehicleid;
OnPlayerEnterCheckpoint(playerid);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Niste u busu!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vec ste na ruti!");
}
}
else if(listitem == 1) // gore
{
    if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
{
BusrouteWest[playerid][0] = 0;
BusrouteEast[playerid][0] = 0;
}
    if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
    {
new playervehicleid = GetPlayerVehicleID(playerid);
if(IsABus(playervehicleid))
{
TogglePlayerControllable(playerid, 1);
GameTextForPlayer(playerid, "~g~Bus Route Started", 5000, 3);
SendClientMessage(playerid, COLOR_LIGHTRED, "---------Istocna Los Santos Bus Routa-----------");
SendBusRoute(playerid, 0);
SendClientMessage(playerid, COLOR_RED, " ");
SendClientMessage(playerid, COLOR_GREEN, "Crveni markeri ce biti postavljeni po ruti.");
SendClientMessage(playerid, COLOR_GREEN, "Vasa kompanija ce biti automatski reklamirana na sledecem stajanju igracima u blizini.");
BusrouteEast[playerid][0] = 1;
BusrouteEast[playerid][1] = playervehicleid;
OnPlayerEnterCheckpoint(playerid);
return 1;
}
    else
    {
    SendClientMessage(playerid, COLOR_GREY, "Niste u busu!");
    }
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vec ste na ruti!");
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Niste vozac busa!");
}
}
return 1;
}

ubacio sam to u skriptu i f5 nije bilo erora sve je bilo dobro sad nemogu da pokrenem server
Run time error 17: "Invalid/unsupported P-code file format"
ovaj eror izbacuje  :( :( :(

Trebam TUT o tome kako da promjenim izgleda health i armor bara igracu iznad glave :D ?

Citat: [EM] FyoDoR poslato Septembar 25, 2011, 21:56:28 POSLE PODNE
Trebam TUT o tome kako da promjenim izgleda health i armor bara igracu iznad glave :D ?
nisam nikad to probo XD
ali mislim da mozes

ShowNameTags(false);
pa napravis imena i taj novi bar sa 3D labelom i guess :)

Jel moze neko mi da download link za /robbank,/gps i da mafije mogu uzet opremu panict heal oruzje hvala unapred.

JusT

Citat: Stefan Seiz poslato Septembar 26, 2011, 16:29:58 POSLE PODNE
Jel moze neko mi da download link za /robbank,/gps i da mafije mogu uzet opremu panict heal oruzje hvala unapred.

To sam pravis

Pomoc kako da napravim kapiju ili kako kad mapam kapiju u mta kako da ubacim komandu da moze da se otvara i zatvara.

Citat: Stefan Seiz poslato Septembar 26, 2011, 16:45:09 POSLE PODNE
Pomoc kako da napravim kapiju ili kako kad mapam kapiju u mta kako da ubacim komandu da moze da se otvara i zatvara.
Prtetrazi tutorijal sekciju na ovom forumu.
Negde oko 100 tutorijala (cini mi se) postoji za to  :-*

trebam : neku komandu za kladionice ili casino
Respect: Gagi, Maki187, Phillips, TerminuS, Neno, Lepotic, [AL] K4[Я]!K3â,,¢, Gotti747

pozz dali neko zna kako da ubacim vise ruta u posao vozac busa

if (BusrouteEast[playerid][0] != 0)
   {
      if (IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == 2)
      {
         new nextstop[64];
         BusrouteWest[playerid][0] = 0;
          switch(BusrouteEast[playerid][0])
          {
              case 1:
              {
               nextstop = "Airport";
                  SetPlayerCheckpoint(playerid, 1979.7369,-2171.4861,13.5363, 5.0);
               AdvertiseToPlayersAtBusStop(1979.7369,-2171.4861,13.5363, 0);
            }
            case 2:
            {
               nextstop = "Willowfield Factory";
                SetPlayerCheckpoint(playerid, 2227.6953,-2201.9053,13.5164, 5.0);
               AdvertiseToPlayersAtBusStop(2227.6953,-2201.9053,13.5164, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 3:
            {
               nextstop = "Loco";
                SetPlayerCheckpoint(playerid, 2719.9419,-2030.2104,13.5076, 5.0);
               AdvertiseToPlayersAtBusStop(2719.9419,-2030.2104,13.5076, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 4:
            {
               nextstop = "6 Street Plaza";
                SetPlayerCheckpoint(playerid, 2470.8059,-1926.7136,13.5125, 5.0);
               AdvertiseToPlayersAtBusStop(2470.8059,-1926.7136,13.5125, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 5:
            {
               nextstop = "10 Green Bottles";
                SetPlayerCheckpoint(playerid, 2348.0249,-1695.8247,13.5286, 5.0);
               AdvertiseToPlayersAtBusStop(2348.0249,-1695.8247,13.5286, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 6:
            {
               nextstop = "Pigpen";
                SetPlayerCheckpoint(playerid, 2422.4092,-1251.1915,23.9176, 5.0);
               AdvertiseToPlayersAtBusStop(2422.4092,-1251.1915,23.9176, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 7:
            {
               nextstop = "Golden Palm";
                SetPlayerCheckpoint(playerid, 2717.7463,-1218.8141,64.9276, 5.0);
               AdvertiseToPlayersAtBusStop(2717.7463,-1218.8141,64.9276, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 8:
            {
               nextstop = "Jefferson Motel";
                SetPlayerCheckpoint(playerid, 2173.1165,-1114.3069,25.4259, 5.0);
               AdvertiseToPlayersAtBusStop(2173.1165,-1114.3069,25.4259, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 9:
            {
               nextstop = "Glen Park";
                SetPlayerCheckpoint(playerid, 2028.4354,-1259.1379,23.9287, 5.0);
               AdvertiseToPlayersAtBusStop(2028.4354,-1259.1379,23.9287, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 10:
            {
               nextstop = "Bus Station";
                SetPlayerCheckpoint(playerid, 1203.5101,-1833.5771,13.4946, 5.0);
               AdvertiseToPlayersAtBusStop(1203.5101,-1833.5771,13.4946, 0);
               SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
               TogglePlayerControllable(playerid, 0);
               SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
            }
            case 11:
            {
               nextstop = "end";
               TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, COLOR_YELLOW, "Bus linija zavrsena , Koristite /starteast ili /startwest za novu liniju.");
               SendClientMessage(playerid, COLOR_YELLOW, "Koristite /exit da napustis Bus.");
                DisablePlayerCheckpoint(playerid);
            }
         }
         BusrouteEast[playerid][0]++;
         if (strcmp(nextstop, "end", true) != 0)
         {
            format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~r~$3 Bonus~n~~n~~g~Sledeca Stanica: %s", nextstop);
            format(string2, sizeof(string2), "~n~~n~~n~~n~~n~~n~~n~~g~Next Stop: %s", nextstop);
         }
         else
         {
            string = "~g~End of Route~n~~n~~r~$50 completion bonus~n~~n~~w~/starteast da nastavis liniju";
            string2 = "~n~~g~End of Route~n~~n~~w~Molimo napustite Bus ili cekajte sledecu liniju";
            //BusrouteEast[playerid][0] = 0;
            SafeGivePlayerMoney(playerid, 47);
         }
         PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
         for (new i=0; i<=MAX_PLAYERS; i++)
         {
            if (IsPlayerConnected(i) &&  GetPlayerVehicleID(i) == BusrouteEast[playerid][1])
            {
               if (BusrouteEast
  • != 0) GameTextForPlayer(i, string, 10000, 3);
                   else GameTextForPlayer(i, string2, 10000, 3);
                }
             }
             SafeGivePlayerMoney(playerid, 3);
             return 1;
          }
       }
       else if (BusrouteWest[playerid][0] != 0)
       {
          if (IsPlayerInAnyVehicle(playerid))
          {
             new nextstop[64];
             BusrouteEast[playerid][0] = 0;
              switch(BusrouteWest[playerid][0])
              {
                  case 1:
                  {
                   nextstop = "Alhambra";
                      SetPlayerCheckpoint(playerid, 1826.8738,-1634.5306,13.5588, 5.0);
                   AdvertiseToPlayersAtBusStop(1826.8738,-1634.5306,13.5588, 1);
                }
                case 2:
                {
                   nextstop = "Glen Park";
                    SetPlayerCheckpoint(playerid, 1856.7260,-1211.7167,20.3898, 5.0);
                   AdvertiseToPlayersAtBusStop(1856.7260,-1211.7167,20.3898, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 3:
                {
                   nextstop = "Vinewood Burger";
                   PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
                    SetPlayerCheckpoint(playerid, 1208.0479,-929.9481,42.9049, 5.0);
                   AdvertiseToPlayersAtBusStop(1208.0479,-929.9481,42.9049, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 4:
                {
                   nextstop = "Vice Theater";
                    SetPlayerCheckpoint(playerid, 1119.0096,-1137.8805,23.7597, 5.0);
                   AdvertiseToPlayersAtBusStop(1119.0096,-1137.8805,23.7597, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 5:
                {
                   nextstop = "Bank";
                   SetPlayerCheckpoint(playerid, 1443.0234,-1028.7131,23.8281, 5.0);
                   AdvertiseToPlayersAtBusStop(1443.0234,-1028.7131,23.8281, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 6:
                {
                   nextstop = "Rodeo";
                    SetPlayerCheckpoint(playerid, 526.6218,-1480.9631,14.5567, 5.0);
                   AdvertiseToPlayersAtBusStop(526.6218,-1480.9631,14.5567, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 7:
                {
                   nextstop = "Sana Maria Beach";
                    SetPlayerCheckpoint(playerid, 443.9078,-1724.8008,10.0896, 5.0);
                   AdvertiseToPlayersAtBusStop(443.9078,-1724.8008,10.0896, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 8:
                {
                   nextstop = "Verona Beach";
                    SetPlayerCheckpoint(playerid, 836.2728,-1788.8121,13.9260, 5.0);
                   AdvertiseToPlayersAtBusStop(836.2728,-1788.8121,13.9260, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 9:
                {
                   nextstop = "Pershing Square";
                    SetPlayerCheckpoint(playerid, 1508.7136,-1735.5184,13.4921, 5.0);
                   AdvertiseToPlayersAtBusStop(1508.7136,-1735.5184,13.4921, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 10:
                {
                   nextstop = "Bus Station";
                    SetPlayerCheckpoint(playerid, 1203.5101,-1833.5771,13.4946, 5.0);
                   AdvertiseToPlayersAtBusStop(1203.5101,-1833.5771,13.4946, 1);
                   SetTimerEx("busroutestoptimer", 10000, false, "i", playerid);
                   TogglePlayerControllable(playerid, 0);
                   SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "Morate cekati 10 sekundi.");
                }
                case 11:
                {
                   nextstop = "end";
                   TogglePlayerControllable(playerid, 0);
                       SendClientMessage(playerid, COLOR_YELLOW, "Bus linija zavrsena, Koristite /starteast ili /startwest za novu liniju.");
                   SendClientMessage(playerid, COLOR_YELLOW, "Use /exit to leave the bus.");
                    DisablePlayerCheckpoint(playerid);
                    }
             }
             BusrouteWest[playerid][0]++;
             if (strcmp(nextstop, "end", true) != 0)
             {
                format(string, sizeof(string), "~n~~n~~n~~n~~n~~n~~r~$3 Bonus~n~~n~~g~Sledeca Stanica: %s", nextstop);
                format(string2, sizeof(string2), "~n~~n~~n~~n~~n~~n~~n~~g~Sledeca Stanica: %s", nextstop);
             }
             else
             {
                string = "~g~Kraj Linije~n~~n~~r~$50 completion bonus~n~~n~~w~/startwest da nastavis liniju";
                string2 = "~n~~g~Kraj Linije~n~~n~~w~Molimo napustite Bus ili cekajte sljedecu liniju";
                //BusrouteWest[playerid][0] = 0;
                SafeGivePlayerMoney(playerid, 47);
             }
             PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
             for (new i=0; i<=MAX_PLAYERS; i++)
             {
                if (IsPlayerConnected(i) &&  GetPlayerVehicleID(i) == BusrouteWest[playerid][1])
                {
                   if (BusrouteWest
    • != 0) GameTextForPlayer(i, string, 10000, 3);
                     else GameTextForPlayer(i, string2, 10000, 3);
                  }
               }
               SafeGivePlayerMoney(playerid, 3);
               return 1;
            }
         }






      if(dialogid == 107)
            {
               if(response)
               {
                     if(listitem == 0) // dole
                  {
                     if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
                     {
                        BusrouteWest[playerid][0] = 0;
                        BusrouteEast[playerid][0] = 0;
                     }
                     if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
                     {
                        new playervehicleid = GetPlayerVehicleID(playerid);
                        if(IsABus(playervehicleid))
                        {
                           TogglePlayerControllable(playerid, 1);
                           GameTextForPlayer(playerid, "~g~Bus Route Started", 5000, 3);
                           SendClientMessage(playerid, COLOR_LIGHTRED, "---------Zapadna Los Santos Bus Ruta-----------");
                           SendBusRoute(playerid, 1);
                           SendClientMessage(playerid, COLOR_RED, " ");
                           SendClientMessage(playerid, COLOR_GREEN, "Crveni markeri ce biti postavljeni po ruti.");
                           SendClientMessage(playerid, COLOR_GREEN, "Vasa kompanija ce biti automatski reklamirana na sledecem stajanju igracima u blizini.");
                           BusrouteWest[playerid][0] = 1;
                           BusrouteWest[playerid][1] = playervehicleid;
                           OnPlayerEnterCheckpoint(playerid);
                           return 1;
                        }
                        else
                        {
                           SendClientMessage(playerid, COLOR_GREY, "Niste u busu!");
                        }
                     }
                     else
                     {
                        SendClientMessage(playerid, COLOR_GREY, "Vec ste na ruti!");
                     }
                  }
                  else if(listitem == 1) // gore
                  {
                      if (BusrouteWest[playerid][0] == 12 || BusrouteEast[playerid][0] == 12)
                     {
                        BusrouteWest[playerid][0] = 0;
                        BusrouteEast[playerid][0] = 0;
                     }
                      if(BusrouteWest[playerid][0] == 0 && BusrouteEast[playerid][0] == 0)
                      {
                        new playervehicleid = GetPlayerVehicleID(playerid);
                        if(IsABus(playervehicleid))
                        {
                           TogglePlayerControllable(playerid, 1);
                           GameTextForPlayer(playerid, "~g~Bus Route Started", 5000, 3);
                           SendClientMessage(playerid, COLOR_LIGHTRED, "---------Istocna Los Santos Bus Routa-----------");
                           SendBusRoute(playerid, 0);
                           SendClientMessage(playerid, COLOR_RED, " ");
                           SendClientMessage(playerid, COLOR_GREEN, "Crveni markeri ce biti postavljeni po ruti.");
                           SendClientMessage(playerid, COLOR_GREEN, "Vasa kompanija ce biti automatski reklamirana na sledecem stajanju igracima u blizini.");
                           BusrouteEast[playerid][0] = 1;
                           BusrouteEast[playerid][1] = playervehicleid;
                           OnPlayerEnterCheckpoint(playerid);
                           return 1;
                        }
                         else
                         {
                            SendClientMessage(playerid, COLOR_GREY, "Niste u busu!");
                         }
                     }
                     else
                     {
                        SendClientMessage(playerid, COLOR_GREY, "Vec ste na ruti!");
                     }
                  }
                  else
                  {
                     SendClientMessage(playerid, COLOR_GREY, "Niste vozac busa!");
                  }
               }
               return 1;
            }