[Pomoc] Ne radi checkpoint

Započeo [CH] RobeX
1. Jun 2015. Zaključano
449
pregleda
10
postova
berojug2
5
Underboss
1. Jun 2015.
Skripta koju koristim: BU RPG
Detaljan opis problema: kad se na farmeru ide /mlijeko, ode se na CP i nista se ne dogadja, a trebala bi se dobit plata
Dio skripte:
	if(!strcmp(cmdtext,"/mlijeko",true))
{
    if(IsPlayerInRangeOfPoint(playerid, 15,-407.9881,-1426.3729,26.1256))
    {
        if (PlayerInfo != 18)
        {
            SendClientMessage(playerid,COLOR_GREY,"** Nisi farmer !");
            return 1;
        }
new Hour, Minute, Second;
gettime(Hour, Minute, Second);
if(Hour < 0 || Hour > 23 )
{
    SendClientMessage(playerid, COLOR_GREY, "Sledeci put dodjite na vrijeme. Radno vrijeme je od 08:00 - 16:00h");
    return 1;
        }
          if(MlijekoWork != 0)
          {
            SendClientMessage(playerid, COLOR_GREY, "** Vec vozis mlijeko.");
            return 1;
            }
            if(IsAMlijekoCar(idcar))
{
MlijekoWork = 1;
            SetPlayerCheckpoint(playerid,2275.6160,-1105.2897,37.9766,10);
            SendClientMessage(playerid, COLOR_BLUE,"Vlasnik Farme: Idite do odredista koji je oznacen na mapi");
  }
else { SendClientMessage(playerid, COLOR_GREY,"Morate imati vozilo koje je namijenjeno za mlijeko."); }
}
else return SendClientMessage(playerid, COLOR_GREY,"Niste na mjestu za utovar mlijeka");
return 1;
    }

Neke slike/video za lakse dobivanje pomoci(neobavezno): /
Leon27
5
Crime Lord
2. Jun 2015.
Ili ti variablu ne postavlja kako treba ili kordinate nisu podesene.
Trazi u modu ove kordinate 2275.6160,-1105.2897,37.9766 pa nam ovde postavi sta si nasao
berojug2
5
Underboss
2. Jun 2015.
	MlijekoWork = 1;
            SetPlayerCheckpoint(playerid,2275.6160,-1105.2897,37.9766,10);
            SendClientMessage(playerid, COLOR_BLUE,"Vlasnik Farme: Idite do odredista koji je oznacen na mapi");
  }
else { SendClientMessage(playerid, COLOR_GREY,"Morate imati vozilo koje je namijenjeno za mlijeko."); }
}
else return SendClientMessage(playerid, COLOR_GREY,"Niste na mjestu za utovar mlijeka");
return 1;
    }

nema niš više jbt
arnel avdic
5
Underboss
2. Jun 2015.
de daj nam OnPlayerEnterCheckPoint callback
berojug2
5
Underboss
3. Jun 2015.
nema mi ga uopce za ovaj poso lol
arnel avdic
5
Underboss
3. Jun 2015.
berojug2 wrote on June 3, 2015, 3:57 pm:
nema mi ga uopce za ovaj poso lol

pa eto razlog zašto nece da ti radi CP, moras nesto uradit kad udje u taj cp
berojug2
5
Underboss
3. Jun 2015.
onda pomagaj oct 😄

treba da da pare za tu turu (200), kak da uradim?
Leon27
5
Crime Lord
3. Jun 2015.
pa kad udje u CP proveravas variablu i kordinate igraca i onda ako uspunjava uslov ides samo
GivePlayerMoneyEx(playerid,2000);// ovo GivePlayerMoneyEx zameni kako je kod tebe za novac
DisablePlayerCheckpoint;
berojug2
5
Underboss
4. Jun 2015.
nasao sam ovo u skripti
, sta ne valja pa da ne radi?
	if(MlijekoWork == 1)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        new carid = GetPlayerVehicleID(playerid);
        if(IsAMlijekoCar(carid))
        {
    switch (MlijekoWork)
            {
              case 1:
              {
SCM(playerid, COLOR_WHITE, "Uspjesno ste dostavili mlijeko.");
          DisablePlayerCheckpoint(playerid);
          CP = 0;
            JBC_GivePlayerMoney(playerid, 150);
            MlijekoWork = 0;
            new marke = 180;
              new randombonus = 50 + random(25);
PlayerInfo += marke + randombonus;
TextDrawShowForPlayer(playerid, Isplata0);
TextDrawShowForPlayer(playerid, Isplata1);
format(string,sizeof(string),"~y~Plata: $%d",marke);
TextDrawSetString(Isplata2, string);
TextDrawShowForPlayer(playerid, Isplata2);
format(string,sizeof(string),"~y~Bonus: $%d",randombonus);
TextDrawSetString(Isplata3, string);
TextDrawShowForPlayer(playerid, Isplata3);
TextDrawShowForPlayer(playerid, Isplata4);
format(string,sizeof(string),"~g~Ukupno: ~y~$%d",marke + randombonus);
TextDrawSetString(Isplata5, string);
TextDrawShowForPlayer(playerid, Isplata5);
SetTimerEx("UgasiIsplatu", 5000, 0, "i", playerid);
          OnPlayerUpdateEx(playerid);
                }
            }

        }
    }
    return 1;
}
osman2578
7
Underboss
4. Jun 2015.
public OnPlayerEnterCheckpoint(playerid)
{
  if(MlijekoWork == 1)
  {
      if(!IsPlayerInRangeOfPoint(playerid, 1, 2275.6160,-1105.2897,37.9766))
      {
          GivePlayerMoney(playerid, 200);
          DisablePlayerCheckpoint(playerid);
      }
      else
      {
          SCM(playerid, COLOR_GREY, "Niste na mjestu gdje se dobiva plata !");
          return 1;
      }
  }
  else
  {
      SCM(playerid, COLOR_GREY, "Niste na poslu !");
      return 1;
  }
}

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha