[Pomoc]Oko CP-a

Započeo Milos Pajic
22. Jan. 2016. Zaključano
355
pregleda
7
postova
Milos Pajic
4
Shot Caller
22. Jan. 2016.
Skripta koju koristim: UP
Detaljan opis problema: pa ovako stavio sam novu poziciju posla kamiondzija i nove cp u sad kad pokrenem posao pojavi mi se cp za utovar i ja dodjem na njega i pojavi mi se na ekranu "UTOVAR" i posle odredjenog vremena mogu opet krenuti e sad problem je u tome sto se taj CP ne skloni a drugi se ne pojavi
Dio skripte:
evo sve
    if(TuraLV == 1 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -187.3324,-278.0262,1.4297))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~utovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, -187.3324,-278.0262,1.4297, 4.0);
TuraLV = 2;
}
}
}
if(TuraLV == 2 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1867.9160,1415.0774,7.1875))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, -1867.9160,1415.0774,7.1875, 4.0);
TuraLV = 3;
}
}
}
if(TuraLV == 3 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1558.4552,-2742.9285,48.5416))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, -1558.4552,-2742.9285,48.5416, 4.0);
TuraLV = 4;
}
}
}
if(TuraLV == 4 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1036.9463,-1912.9376,13.1056))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, 1036.9463,-1912.9376,13.1056, 4.0);
TuraLV = 4;
}
}
}
if(TuraLV == 5 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -187.3324,-278.0262,1.4297))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
new bonus = random(400), string;
g_NovacPlus(playerid, 10000+bonus);
format(string,sizeof(string),""SPLAVA"Uspesno ste zavrsili prevoz robe!\n\n"BELA"Plata: "SPLAVA"10000$\n"BELA"Bonus: "SPLAVA"%d$",bonus);
ShowPlayerDialog(playerid,DIALOG_ISPLATA,DIALOG_STYLE_MSGBOX,"Kraj prevoza robe",string,"Ok","");
TuraLV = 0; DisablePlayerCheckpoint(playerid); FirmaNovac(103, 1000);
}
}
}


a evo samo deo za utovar
    if(TuraLV == 1 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -187.3324,-278.0262,1.4297))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~utovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, -187.3324,-278.0262,1.4297, 4.0);
TuraLV = 2;
}
}
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): ako treba dodacu
Predrag Barosevcic
3
Hustler
22. Jan. 2016.
pa nisi dobre kordinate unio na drugom cp-u
oznacio sam ti gde ti je greska...

    if(TuraLV == 1 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -187.3324,-278.0262,1.4297))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~utovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, -187.3324,-278.0262,1.4297, 4.0);
TuraLV = 2;
}
}
}
if(TuraLV == 2 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1867.9160,1415.0774,7.1875))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, -1867.9160,1415.0774,7.1875, 4.0);
TuraLV = 3;
}
}
}

takođe primetio sam da si i ostale pogrešno stavio
Milos Pajic
4
Shot Caller
22. Jan. 2016.
Sad sve dobro ide do 4 CP-a sad nece 4 CP a namestio sam da se ugasi
	if(TuraLV == 4 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1558.4552,-2742.9285,48.5416))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, 1036.9463,-1912.9376,13.1056, 4.0);
TuraLV = 4;
}
}
}
if(TuraLV == 5 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1036.9463,-1912.9376,13.1056))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
new bonus = random(400), string;
g_NovacPlus(playerid, 23000+bonus);
format(string,sizeof(string),""SPLAVA"Uspesno ste zavrsili prevoz robe!\n\n"BELA"Plata: "SPLAVA"23000$\n"BELA"Bonus: "SPLAVA"%d$",bonus);
ShowPlayerDialog(playerid,DIALOG_ISPLATA,DIALOG_STYLE_MSGBOX,"Kraj prevoza robe",string,"Ok","");
TuraLV = 0; DisablePlayerCheckpoint(playerid); FirmaNovac(103, 1000);
}
}
}
[CH] Michael
4
Shot Caller
23. Jan. 2016.
stavio si varijablu turalv  = 4, a u sljedecoj provjeri si stavio da ako je turalv 5 da zavrsi.. tako da samo u turi 4 stavi varijablu na 5
Milos Pajic
4
Shot Caller
23. Jan. 2016.
	if(TuraLV == 4 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1558.4552,-2742.9285,48.5416))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
TogglePlayerControllable(playerid, 0);
GameTextForPlayer(playerid, "~b~istovar...", 5000, 3);
utovar = SetTimerEx("preposta", 5000, false, "d", playerid);
SetPlayerCheckpoint(playerid, 1036.9463,-1912.9376,13.1056, 4.0);
TuraLV = 4;
}
}
}
if(TuraLV == 5 && KamiondzijaVozila(CID) && GetPlayerState(playerid) == 2)
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, 1036.9463,-1912.9376,13.1056))
{
    if(IsTrailerAttachedToVehicle(CID))
        {
new bonus = random(400), string;
g_NovacPlus(playerid, 23000+bonus);
format(string,sizeof(string),""SPLAVA"Uspesno ste zavrsili prevoz robe!\n\n"BELA"Plata: "SPLAVA"23000$\n"BELA"Bonus: "SPLAVA"%d$",bonus);
ShowPlayerDialog(playerid,DIALOG_ISPLATA,DIALOG_STYLE_MSGBOX,"Kraj prevoza robe",string,"Ok","");
TuraLV = 0; DisablePlayerCheckpoint(playerid); FirmaNovac(103, 1000);
}
}


Evo tb to pa podebljaj sta treba ja sam probao mesto 4 staviti 5 ali opet isto ti mn podebljaj i pa cu ja zamenit, hvala
[CH] Michael
4
Shot Caller
23. Jan. 2016.
http://pastebin.com/Z326EJJL zamjeni to za ovo, ako nece daj od pocetka tog posla do place..
Milos Pajic
4
Shot Caller
23. Jan. 2016.
Too majstore raddiii hvalaa moze lock

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha