PARTNERI:

* Marketing

-UPOZORENJE-

Samo registrovani članovi mogu da vide/koriste forum u celini.
Prijavite se ili registrujte nalog na Balkan SA-MP forumu.


Autor Tema: [Pomoć] OnPlayerEnterCheckpoint  (Pročitano 153 puta)

0 članova i 1 gost pregledaju ovu temu.

Van mreže Agent 47

OnPlayerEnterCheckpoint
« poslato: April 16, 2018, 11:56:59 pre podne »
Problem(error/warning):Gledao sam kako da napravim najjednostavniji poslao da igrac sa vozilom pratim Markere po mapi(na samp forumu jedan tut) sa GetVehicleID(kako god se pise) da mu prikaze sledeci marker ja udjem sa tim vozilom nece da prikaze evo vam dole kodovi pa vi izmenite kako treba!
Dio skripte: OnPlayerEnterCheckpoint
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem): Ne treba
Pawno Code: [Izaberi]
CMD:prevozputnika(playerid,params[])
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
    BusDriverJob[playerid] = 1;
    SetPlayerCheckpoint(playerid,-2469.9277,2435.7537,15.5293, 3.0);
    SendClientMessage(playerid,COLOR_YELLOW,"[POSAO] Krenuli ste sa prevozom putnika pratite crvene markere na mapi");
    return 1;
    SendClientMessage(playerid,COLOR_YELLOW,"Niste zaposljeni kao Bus Vozac");
    return 1;
}
Pawno Code: [Izaberi]
public OnPlayerEnterCheckpoint(playerid)
{
    if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 560)
{
    if(BusDriverJob[playerid] == 1){
        BusDriverJob[playerid] = 2;
        SetPlayerCheckpoint(playerid,-2469.9277,2435.7537,15.5293, 3.0);
        SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
        return 1;
}
if(BusDriverJob[playerid] == 2){
BusDriverJob[playerid] = 3;
SetPlayerCheckpoint(playerid,2616.8850,2359.3521,8.6163, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 2){
BusDriverJob[playerid] = 3;
SetPlayerCheckpoint(playerid,-2617.3657,2288.0708,8.1652, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 3){
BusDriverJob[playerid] = 4;
SetPlayerCheckpoint(playerid,-2564.6245,2303.3435,4.8359, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 4){
BusDriverJob[playerid] = 5;
SetPlayerCheckpoint(playerid,-2543.5171,2278.8567,4.8359, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 5){
BusDriverJob[playerid] = 6;
SetPlayerCheckpoint(playerid,-2517.3281,2266.5828,4.8359, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 6){
BusDriverJob[playerid] = 7;
SetPlayerCheckpoint(playerid, -2430.5813,2332.1252,4.8359, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 7){
BusDriverJob[playerid] = 8;
SetPlayerCheckpoint(playerid,-2355.5498,2413.6172,6.8807, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 8){
BusDriverJob[playerid] = 9;
SetPlayerCheckpoint(playerid,-2423.5513,2436.2903,12.9344, 3.0);
SendClientMessage(playerid, COLOR_YELLOW, "[POSAO] Nastavi da pratis crvene markere na mapi!");
return 1;
}
if(BusDriverJob[playerid] == 9){
BusDriverJob[playerid] = 0;
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid,2100);
SendClientMessage(playerid,COLOR_YELLOW,"[POSAO] Uspesno ste prevezli putnije i zaradili 2100$");
return 1;
}


}
return 1;

}
Respect for: Tosic ツ Ł[email protected]
 

Van mreže Agent 47

Odg: OnPlayerEnterCheckpoint
« Odgovor #1 poslato: April 16, 2018, 19:45:27 posle podne »
!!!bubmp!!! izvinjavam se mozeli neko da pomogne hitno mi treba resenje ?
Respect for: Tosic ツ Ł[email protected]
 

Van mreže Agent 47

Odg: OnPlayerEnterCheckpoint
« Odgovor #2 poslato: April 17, 2018, 19:00:58 posle podne »
ZNA LI JEBENO NEKO ?
Respect for: Tosic ツ Ł[email protected]
 

Van mreže Stifler ツ

Odg: OnPlayerEnterCheckpoint
« Odgovor #3 poslato: April 17, 2018, 21:16:42 posle podne »
jel ima nekih warninga kad compile?
 

Van mreže Agent 47

Odg: OnPlayerEnterCheckpoint
« Odgovor #4 poslato: April 17, 2018, 21:38:15 posle podne »
@Stifler ツ  Nema
Respect for: Tosic ツ Ł[email protected]
 

Na mreži nikisb

Odg: OnPlayerEnterCheckpoint
« Odgovor #5 poslato: April 18, 2018, 10:13:19 pre podne »
Kada udjes u marker da li on nestane?
Thanks to: Nikola Butigan, Rade ksunder.
 

Van mreže Agent 47

Odg: OnPlayerEnterCheckpoint
« Odgovor #6 poslato: April 18, 2018, 11:03:09 pre podne »
ostane
Respect for: Tosic ツ Ł[email protected]
 

Na mreži nikisb

Odg: OnPlayerEnterCheckpoint
« Odgovor #7 poslato: April 18, 2018, 11:07:11 pre podne »
http://wiki.sa-mp.com/wiki/DisablePlayerCheckpoint
Kad udje u prvi stavis ovo, onda u drugi i tako sve
Thanks to: Nikola Butigan, Rade ksunder.