[POMOC] TAXI ne fukcionise

Započeo kim3205
5. Apr. 2013. Zaključano
330
pregleda
6
postova
PedjaZakon
5
Godfather
5. Apr. 2013.
Skripta: dc(nbe edit)
Problem: Lider Taxi i clannovi taxi ne dobijaju pare sto provoze njude sve radi kako treba samo pare ne dobijaju
Deo koda:
 if(strcmp(cmd,"/fare",true)==0)
    {
        if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo == 10||PlayerInfo == 10|| PlayerInfo == 14)
{
if(TransportDuty > 0)
{
    if(TransportDuty == 1)
    {
        TaxiDrivers -= 1;
    }
    else if(TransportDuty == 2)
    {
        BusDrivers -= 1;
    }
    TransportDuty = 0;
format(string, sizeof(string), "* Sada ste van duznosti i zaradili ste $%d.", TransportMoney);
SendClientMessage(playerid, COLOR_WHITE, string);
JBC_GivePlayerMoney(playerid, TransportMoney);
TransportValue = 0; TransportMoney = 0;
return 1;
}
new Veh = GetPlayerVehicleID(playerid);
if(Veh == 61 || Veh == 62 || Veh == 63 || Veh == 64 || Veh == 65 || Veh == 66 || Veh == 67 || Veh == 68 || Veh == 69 || Veh == 70)
{
    if(GetPlayerState(playerid) == 2)
    {
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristite: /fare ");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 999) { SendClientMessage(playerid, COLOR_GREY, "  Cena fare mora biti najmanje 1$ i max 999 !"); return 1; }
    TaxiDrivers += 1; TransportDuty = 1; TransportValue = moneys;
    GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string, sizeof(string), " Taxi vozac %s je na duznosti,ukucajte /call 444 da bi pozvali taxi. Cena: $%d.", sendername, TransportValue);
    OOCNews(0xEDCA29AA,string);
    new taxicar = GetPlayerVehicleID(playerid);
if(taxicar == 61)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii1, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 62)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii2, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 63)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii3, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 64)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii4, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 65)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii5, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 66)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii6, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 67)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii7, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 68)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii8, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 69)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii9, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 70)
{
new xita;
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",TransportValue);
Update3DTextLabelText(Taxiii10, COLOR_LIGHTGREEN, xita);
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Niste vozac !");
    return 1;
}
}
    else if(Veh == 59 || Veh == 60)
{
    if(GetPlayerState(playerid) == 2)
    {
    tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_WHITE, "Koristite: /fare ");
return 1;
}
moneys = strval(tmp);
if(moneys < 1 || moneys > 999) { SendClientMessage(playerid, COLOR_GREY, "  Cena duznosti mora biti u granicama $1 do $999 !"); return 1; }
    BusDrivers += 1; TransportDuty = 2; TransportValue= moneys;
    GetPlayerName(playerid,sendername,sizeof(sendername));
    format(string, sizeof(string), "Vozac autobusa %s je na duznosti, Cena: $%d.", sendername, TransportValue);
    OOCNews(TEAM_GROVE_COLOR,string);
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Niste vozac !");
    return 1;
}
}
else
{
    SendClientMessage(playerid, COLOR_GREY, "  Niste u Taksiju / Bus !");
}
}
else
{
    SendClientMessage(playerid,COLOR_GREY,"  Niste Taxi / Bus vozac !");
    return 1;
}
    }
    return 1;
}
[WW]ivan
5
Kingpin
5. Apr. 2013.
mislim da nije problem u komandi, nego dio kad igrac ude u vozilo i tamo treba bit funkcija da mu oduzima par i da daje vozacu
Blaeks_Biofor
5
Forum Don
5. Apr. 2013.
nadji pod onplayerexitvehicle deo gde musterija izlazi iz vozila, i stavi isplatu igracu,(ako koristis junkbuster stavi prefix JB_)
PedjaZakon
5
Godfather
5. Apr. 2013.
kako da namestim kad udje musterija da plati cim izadje
Blaeks_Biofor
5
Forum Don
5. Apr. 2013.
pod onplayerentervehicle mu das varijablu, i pod onplayerexitvehicle je proveris i oduzmes novac
PedjaZakon
5
Godfather
6. Apr. 2013.
Djabe ne u taxi liniju !

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha