[Pomoc]Checkpoint

Započeo m-a-r-k-o, Avgust 24, 2011, 23:59:55 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Mod koji koristim: Raven's
Opis problema:napravio sam rute za posao cistaca ulica i kad kicam /cisti pojavi se prvi CP  i onda odem do njega makne se ali mi nedolazi drugi..

Komanda:

if(strcmp(cmd, "/cisti", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerInfo[playerid][pCiscenje] > 0)
            {
     SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano ciscenje!");
     return 1;
            }
if(PlayerInfo[playerid][pJob] == 19)//<---- tu si stavite id koji stavite za taj posao
{

                   SendClientMessage(playerid,COLOR_PINK,"*Aktivirao si kosenje");
       PlayerInfo[playerid][pCiscenje] = 1;//---- tu stavite vrijednos 1 za kosenje za toga igraca
             SetPlayerCheckpoint(playerid, 1963.7349853516,-1882.8819580078,13.3828125,1.00);// tu stavite koordinate prvog cp-a
}
else
{
        SendClientMessage(playerid, COLOR_GREY, "Nemas posao cistaca ulica!");
                return 1;
        }
}
return 1;
}



public OnPlayerEnterCheckpoint(playerid)
{
    if(PlayerInfo[playerid][pCiscenje] > 0)
    {
//--------ruta1
        if(PlayerToPoint(4.00, playerid,1963.7349853516,-1882.8819580078,13.3828125))//cp1
        {
            if(PlayerInfo[playerid][pCiscenje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)//tu stavite id od vozila za kosenje
      {
                           PlayerInfo[playerid][pCiscenje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,1963.7349853516,-1882.8819580078,13.3828125,4.00);//
  }
            }
        }
        if(PlayerToPoint(4.00, playerid,1963.7349853516,-1882.8819580078,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 3;//
                           SetPlayerCheckpoint(playerid,2084.0275878906,-1727.4145507813,13.3828125,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2084.0275878906,-1727.4145507813,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 4;//
                           SetPlayerCheckpoint(playerid,2147.1875,-1629.3638916016,13.37114238739,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2147.1875,-1629.3638916016,13.37114238739))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 5;//
                           SetPlayerCheckpoint(playerid,2342.6928710938,-1665.2958984375,15.280256271362,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2342.6928710938,-1665.2958984375,15.280256271362))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 6;//
                           SetPlayerCheckpoint(playerid,2330.7778320313,-1730.6768798828,13.359375,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2330.7778320313,-1730.6768798828,13.359375))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 7;//
                           SetPlayerCheckpoint(playerid,2216.3610839844,-1883.6473388672,13.3828125,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2216.3610839844,-1883.6473388672,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 8;//
                           SetPlayerCheckpoint(playerid,2311.4436035156,-1906.6313476563,13.383687973022,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2311.4436035156,-1906.6313476563,13.383687973022))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 9;//
                           SetPlayerCheckpoint(playerid,2275.6796875,-1969.5339355469,13.381767272949,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2275.6796875,-1969.5339355469,13.381767272949))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 10;//
                           SetPlayerCheckpoint(playerid,2217.3195800781,-1952.3175048828,13.341398239136,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2217.3195800781,-1952.3175048828,13.341398239136))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 11;//
                           SetPlayerCheckpoint(playerid,2187.5070800781,-1891.8587646484,13.509676933289,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2187.5070800781,-1891.8587646484,13.509676933289))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 13;//
                           SetPlayerCheckpoint(playerid,1848.2686767578,-1929.9166259766,13.383943557739,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,1848.2686767578,-1929.9166259766,13.383943557739))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 14;//
                           SetPlayerCheckpoint(playerid,1894.5124511719,-1882.6596679688,13.478686332703,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,1894.5124511719,-1882.6596679688,13.478686332703))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 15;//
                           SetPlayerCheckpoint(playerid,1897.4320068359,-1858.0073242188,13.572692871094,4.00);//
  }
            }
}
        if(PlayerToPoint(4.00, playerid,1897.4320068359,-1858.0073242188,13.572692871094))//cp n-zi
        {
            if(PlayerInfo[playerid][pCiscenje] == n)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pKosenje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"Ciscenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 250);
                           SendClientMessage(playerid, COLOR_CORAL ,"Zarada = 250$");
  }
            }
}

Citat: m-a-r-k-o poslato Avgust 24, 2011, 23:59:55 POSLE PODNE
Mod koji koristim: Raven's
Opis problema:napravio sam rute za posao cistaca ulica i kad kicam /cisti pojavi se prvi CP  i onda odem do njega makne se ali mi nedolazi drugi..

Komanda:

if(strcmp(cmd, "/cisti", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerInfo[playerid][pCiscenje] > 0)
            {
     SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano ciscenje!");
     return 1;
            }
if(PlayerInfo[playerid][pJob] == 19)//<---- tu si stavite id koji stavite za taj posao
{

                   SendClientMessage(playerid,COLOR_PINK,"*Aktivirao si kosenje");
       PlayerInfo[playerid][pCiscenje] = 1;//---- tu stavite vrijednos 1 za kosenje za toga igraca
             SetPlayerCheckpoint(playerid, 1963.7349853516,-1882.8819580078,13.3828125,1.00);// tu stavite koordinate prvog cp-a
}
else
{
        SendClientMessage(playerid, COLOR_GREY, "Nemas posao cistaca ulica!");
                return 1;
        }
}
return 1;
}



public OnPlayerEnterCheckpoint(playerid)
{
    if(PlayerInfo[playerid][pCiscenje] > 0)
    {
//--------ruta1
        if(PlayerToPoint(4.00, playerid,1963.7349853516,-1882.8819580078,13.3828125))//cp1
        {
            if(PlayerInfo[playerid][pCiscenje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)//tu stavite id od vozila za kosenje
      {
                           PlayerInfo[playerid][pCiscenje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,1963.7349853516,-1882.8819580078,13.3828125,4.00);//
  }
            }
        }
        if(PlayerToPoint(4.00, playerid,1963.7349853516,-1882.8819580078,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 3;//
                           SetPlayerCheckpoint(playerid,2084.0275878906,-1727.4145507813,13.3828125,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2084.0275878906,-1727.4145507813,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 4;//
                           SetPlayerCheckpoint(playerid,2147.1875,-1629.3638916016,13.37114238739,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2147.1875,-1629.3638916016,13.37114238739))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 5;//
                           SetPlayerCheckpoint(playerid,2342.6928710938,-1665.2958984375,15.280256271362,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2342.6928710938,-1665.2958984375,15.280256271362))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 6;//
                           SetPlayerCheckpoint(playerid,2330.7778320313,-1730.6768798828,13.359375,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2330.7778320313,-1730.6768798828,13.359375))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 7;//
                           SetPlayerCheckpoint(playerid,2216.3610839844,-1883.6473388672,13.3828125,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2216.3610839844,-1883.6473388672,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 8;//
                           SetPlayerCheckpoint(playerid,2311.4436035156,-1906.6313476563,13.383687973022,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2311.4436035156,-1906.6313476563,13.383687973022))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 9;//
                           SetPlayerCheckpoint(playerid,2275.6796875,-1969.5339355469,13.381767272949,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2275.6796875,-1969.5339355469,13.381767272949))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 10;//
                           SetPlayerCheckpoint(playerid,2217.3195800781,-1952.3175048828,13.341398239136,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2217.3195800781,-1952.3175048828,13.341398239136))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 11;//
                           SetPlayerCheckpoint(playerid,2187.5070800781,-1891.8587646484,13.509676933289,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2187.5070800781,-1891.8587646484,13.509676933289))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 13;//
                           SetPlayerCheckpoint(playerid,1848.2686767578,-1929.9166259766,13.383943557739,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,1848.2686767578,-1929.9166259766,13.383943557739))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 14;//
                           SetPlayerCheckpoint(playerid,1894.5124511719,-1882.6596679688,13.478686332703,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,1894.5124511719,-1882.6596679688,13.478686332703))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 15;//
                           SetPlayerCheckpoint(playerid,1897.4320068359,-1858.0073242188,13.572692871094,4.00);//
  }
            }
}
        if(PlayerToPoint(4.00, playerid,1897.4320068359,-1858.0073242188,13.572692871094))//cp n-zi
        {
            if(PlayerInfo[playerid][pCiscenje] == n)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pKosenje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"Ciscenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 250);
                           SendClientMessage(playerid, COLOR_CORAL ,"Zarada = 250$");
  }
            }
}



probaj ovako..

if(strcmp(cmd, "/cisti", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerInfo[playerid][pCiscenje] > 0)
            {
     SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano ciscenje!");
     return 1;
            }
if(PlayerInfo[playerid][pJob] == 19)//<---- tu si stavite id koji stavite za taj posao
{

                   SendClientMessage(playerid,COLOR_PINK,"*Aktivirao si kosenje");
       PlayerInfo[playerid][pCiscenje] = 1;//---- tu stavite vrijednos 1 za kosenje za toga igraca
             SetPlayerCheckpoint(playerid, 1963.7349853516,-1882.8819580078,13.3828125,4.00);// tu stavite koordinate prvog cp-a
}
else
{
        SendClientMessage(playerid, COLOR_GREY, "Nemas posao cistaca ulica!");
                return 1;
        }
}
return 1;
}
Vratio sam se ponovo ocekjute novi server...

Citat: Narco_VK poslato Avgust 25, 2011, 13:30:17 POSLE PODNE
Citat: m-a-r-k-o poslato Avgust 24, 2011, 23:59:55 POSLE PODNE
Mod koji koristim: Raven's
Opis problema:napravio sam rute za posao cistaca ulica i kad kicam /cisti pojavi se prvi CP  i onda odem do njega makne se ali mi nedolazi drugi..

Komanda:

if(strcmp(cmd, "/cisti", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerInfo[playerid][pCiscenje] > 0)
            {
     SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano ciscenje!");
     return 1;
            }
if(PlayerInfo[playerid][pJob] == 19)//<---- tu si stavite id koji stavite za taj posao
{

                   SendClientMessage(playerid,COLOR_PINK,"*Aktivirao si kosenje");
       PlayerInfo[playerid][pCiscenje] = 1;//---- tu stavite vrijednos 1 za kosenje za toga igraca
             SetPlayerCheckpoint(playerid, 1963.7349853516,-1882.8819580078,13.3828125,1.00);// tu stavite koordinate prvog cp-a
}
else
{
        SendClientMessage(playerid, COLOR_GREY, "Nemas posao cistaca ulica!");
                return 1;
        }
}
return 1;
}



public OnPlayerEnterCheckpoint(playerid)
{
    if(PlayerInfo[playerid][pCiscenje] > 0)
    {
//--------ruta1
        if(PlayerToPoint(4.00, playerid,1963.7349853516,-1882.8819580078,13.3828125))//cp1
        {
            if(PlayerInfo[playerid][pCiscenje] == 1)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)//tu stavite id od vozila za kosenje
      {
                           PlayerInfo[playerid][pCiscenje] = 2;// dodajemo vrijednost da se slucajno ne pogodi isti cp, ovo nije potrebno
                           SetPlayerCheckpoint(playerid,1963.7349853516,-1882.8819580078,13.3828125,4.00);//
  }
            }
        }
        if(PlayerToPoint(4.00, playerid,1963.7349853516,-1882.8819580078,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 2)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 3;//
                           SetPlayerCheckpoint(playerid,2084.0275878906,-1727.4145507813,13.3828125,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2084.0275878906,-1727.4145507813,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 3)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 4;//
                           SetPlayerCheckpoint(playerid,2147.1875,-1629.3638916016,13.37114238739,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2147.1875,-1629.3638916016,13.37114238739))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 4)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 5;//
                           SetPlayerCheckpoint(playerid,2342.6928710938,-1665.2958984375,15.280256271362,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2342.6928710938,-1665.2958984375,15.280256271362))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 5)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 6;//
                           SetPlayerCheckpoint(playerid,2330.7778320313,-1730.6768798828,13.359375,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2330.7778320313,-1730.6768798828,13.359375))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 6)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 7;//
                           SetPlayerCheckpoint(playerid,2216.3610839844,-1883.6473388672,13.3828125,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2216.3610839844,-1883.6473388672,13.3828125))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 7)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 8;//
                           SetPlayerCheckpoint(playerid,2311.4436035156,-1906.6313476563,13.383687973022,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2311.4436035156,-1906.6313476563,13.383687973022))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 8)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 9;//
                           SetPlayerCheckpoint(playerid,2275.6796875,-1969.5339355469,13.381767272949,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2275.6796875,-1969.5339355469,13.381767272949))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 9)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 10;//
                           SetPlayerCheckpoint(playerid,2217.3195800781,-1952.3175048828,13.341398239136,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2217.3195800781,-1952.3175048828,13.341398239136))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 10)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 11;//
                           SetPlayerCheckpoint(playerid,2187.5070800781,-1891.8587646484,13.509676933289,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,2187.5070800781,-1891.8587646484,13.509676933289))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 12)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 13;//
                           SetPlayerCheckpoint(playerid,1848.2686767578,-1929.9166259766,13.383943557739,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,1848.2686767578,-1929.9166259766,13.383943557739))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 13)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 14;//
                           SetPlayerCheckpoint(playerid,1894.5124511719,-1882.6596679688,13.478686332703,4.00);//
  }
            }
}
if(PlayerToPoint(4.00, playerid,1894.5124511719,-1882.6596679688,13.478686332703))//cp2
        {
            if(PlayerInfo[playerid][pCiscenje] == 14)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pCiscenje] = 15;//
                           SetPlayerCheckpoint(playerid,1897.4320068359,-1858.0073242188,13.572692871094,4.00);//
  }
            }
}
        if(PlayerToPoint(4.00, playerid,1897.4320068359,-1858.0073242188,13.572692871094))//cp n-zi
        {
            if(PlayerInfo[playerid][pCiscenje] == n)//
            {
                      new Veh = GetPlayerVehicleID(playerid);
                      if(Veh == 574)
      {
                           PlayerInfo[playerid][pKosenje] = 0;//
                           DisablePlayerCheckpoint(playerid);
                           SendClientMessage(playerid, COLOR_GREEN ,"Ciscenje uspjesno zavrseno");
//---------------------------------------------------------------ovo ispod nije potrebno
   GivePlayerMoney(playerid, 250);
                           SendClientMessage(playerid, COLOR_CORAL ,"Zarada = 250$");
  }
            }
}



probaj ovako..

if(strcmp(cmd, "/cisti", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
            if(PlayerInfo[playerid][pCiscenje] > 0)
            {
     SendClientMessage(playerid, COLOR_GREY, "*Vec imas aktivirano ciscenje!");
     return 1;
            }
if(PlayerInfo[playerid][pJob] == 19)//<---- tu si stavite id koji stavite za taj posao
{

                   SendClientMessage(playerid,COLOR_PINK,"*Aktivirao si kosenje");
       PlayerInfo[playerid][pCiscenje] = 1;//---- tu stavite vrijednos 1 za kosenje za toga igraca
             SetPlayerCheckpoint(playerid, 1963.7349853516,-1882.8819580078,13.3828125,4.00);// tu stavite koordinate prvog cp-a
}
else
{
        SendClientMessage(playerid, COLOR_GREY, "Nemas posao cistaca ulica!");
                return 1;
        }
}
return 1;
}


nista probo sam i ja mjenjat radius al nista...
Poslednja Izmena: Avgust 25, 2011, 13:51:17 POSLE PODNE od m-a-r-k-o

Probaj umjesto PlayerToPoint koristit IsPlayerInCheckpoint(playerid);