[POMOC] Taxi fare komanda

Započeo ¤EG¤Ovca.ini, Novembar 18, 2012, 17:00:49 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 4 gostiju pregledaju ovu temu.

Skripta koju koristim: Balkan trucking
Detaljan opis problema:Ja bi htjeo da kad pisem /fare i tako u busu da mi se ispise iznad vozila npr u 3d textu "taksist na duznosti, cijena : 20..." npr...
Dio skripte: dcmd_fare(playerid,params[])
{
new price2,pmodelid = GetVehicleModel(GetPlayerVehicleID(playerid));
if(gTeam[playerid] != TEAM_DRIVER) return SendClientMessage(playerid,red,"ERROR: "lgrey"Vi niste "lyellow2"taxi vozac"lgrey"!");
if(PInfo[playerid][onduty] == 1) return SendClientMessage(playerid, red,"ERROR: "lyellow2"Vec ste na duznosti,izidjite iz vozila!");
if(sscanf(params,"i",price2)) return SendClientMessage(playerid,red,"KORISTI: "lgrey"/fare "lyellow2"[cijena]") && SendClientMessage(playerid,red,""lblue"FUKCIJA: "lgrey"Ovo ce postaviti cijenu i za svakih 10 sekundi,osoba koja je u vasem vozilu placa taj novac!");
if(!IsTaxi(playerid,pmodelid)) return SendClientMessage(playerid,red,"ERROR:"lgrey"Morate biti u "lyellow2"taxiu"lgrey"!");
if(price2 > 500) return SendClientMessage(playerid,red,""lwhite"*"lred"To je pre puno za 10 sekundi!"lwhite"*");
PInfo[playerid][fare2] = price2;
PInfo[playerid][onduty] = 1;
SendFMessageToAll(green,""lgreen"» Vozac "lyellow2"%s(ID:%i) "lgreen"je sad na duznosti! Cijena: "lorange"%i "lgreen"po "lorange"10 sekundi"lgreen"!",GetPName(playerid),playerid,price2);
return 1;
}


I jos nesto, kako da ja sve dcmd komande pretvorim u zcmd? :/
Neke slike/video za lakse dobivanje pomoci(neobavezno): nema

Hvala svima...

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

Za labele probaj ovako, na kraj gamemoda ovako : public TaxiGotov(playerid)
{
new taxicar = GetPlayerVehicleID(playerid);
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii1, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii2, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii3, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii4, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii5, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii6, COLOR_LIGHTGREEN, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii7, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii8, COLOR_LIGHTGREEN, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii9, COLOR_LIGHTGREEN, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii10, ZELENA, xita);
}
return 1;
}
na vrh dodas forward TaxiGotov(playerid); na vrh isto dodas new Text3D:Taxiii1;
new Text3D:Taxiii2;
new Text3D:Taxiii3;
new Text3D:Taxiii4;
new Text3D:Taxiii5;
new Text3D:Taxiii6;
new Text3D:Taxiii7;
new Text3D:Taxiii8;
new Text3D:Taxiii9;
new Text3D:Taxiii10;
onda pod ongamemodeinit dodas ovako new taxi1;
    Taxiii1 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi1 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii1, taxi1, 0.0, 0.0, 0.0);
new taxi2;
    Taxiii2 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi2 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii2, taxi2, 0.0, 0.0, 0.0);
new taxi3;
    Taxiii3 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi3 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii3, taxi3, 0.0, 0.0, 0.0);
new taxi4;
    Taxiii4 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi4 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii4, taxi4, 0.0, 0.0, 0.0);
new taxi5;
    Taxiii5 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi5 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii5, taxi5, 0.0, 0.0, 0.0);
new taxi6;
    Taxiii6 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi6 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii6, taxi6, 0.0, 0.0, 0.0);
new taxi7;
    Taxiii7 = Create3DTextLabel( "[ TAXI ]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi7 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii7, taxi7, 0.0, 0.0, 0.0);
new taxi8;
    Taxiii8 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi8 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii8, taxi8, 0.0, 0.0, 0.0);
new taxi9;
    Taxiii9 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi9 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii9, taxi9, 0.0, 0.0, 0.0);
new taxi10;
    Taxiii10 = Create3DTextLabel( "text", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi10 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii10, taxi10, 0.0, 0.0, 0.0);
i onda u komadni dodas ovo if(taxicar == 61)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii1, ZELENA, xita);
}
if(taxicar == 62)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii2, ZELENA, xita);
}
if(taxicar == 63)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii3, ZELENA, xita);
}
if(taxicar == 64)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii4, ZELENA, xita);
}
if(taxicar == 65)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii5, ZELENA, xita);
}
if(taxicar == 66)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii6, ZELENA, xita);
}
if(taxicar == 67)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii7, ZELENA, xita);
}
if(taxicar == 68)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii8, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 69)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii9, ZELENA, xita);
}
if(taxicar == 70)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii10, ZELENA, xita);
}
Poslednja Izmena: Novembar 18, 2012, 17:29:18 POSLE PODNE od Blaeks

Citat: Blaeks poslato Novembar 18, 2012, 17:28:20 POSLE PODNE
Za labele probaj ovako, na kraj gamemoda ovako : public TaxiGotov(playerid)
{
new taxicar = GetPlayerVehicleID(playerid);
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii1, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii2, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii3, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii4, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii5, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii6, COLOR_LIGHTGREEN, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii7, ZELENA, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii8, COLOR_LIGHTGREEN, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii9, COLOR_LIGHTGREEN, xita);
}
if(taxicar == id vozila za taxi)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\nVan Duznosti");
Update3DTextLabelText(Taxiii10, ZELENA, xita);
}
return 1;
}
na vrh dodas forward TaxiGotov(playerid); na vrh isto dodas new Text3D:Taxiii1;
new Text3D:Taxiii2;
new Text3D:Taxiii3;
new Text3D:Taxiii4;
new Text3D:Taxiii5;
new Text3D:Taxiii6;
new Text3D:Taxiii7;
new Text3D:Taxiii8;
new Text3D:Taxiii9;
new Text3D:Taxiii10;
onda pod ongamemodeinit dodas ovako new taxi1;
    Taxiii1 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi1 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii1, taxi1, 0.0, 0.0, 0.0);
new taxi2;
    Taxiii2 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi2 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii2, taxi2, 0.0, 0.0, 0.0);
new taxi3;
    Taxiii3 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi3 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii3, taxi3, 0.0, 0.0, 0.0);
new taxi4;
    Taxiii4 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi4 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii4, taxi4, 0.0, 0.0, 0.0);
new taxi5;
    Taxiii5 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi5 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii5, taxi5, 0.0, 0.0, 0.0);
new taxi6;
    Taxiii6 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi6 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii6, taxi6, 0.0, 0.0, 0.0);
new taxi7;
    Taxiii7 = Create3DTextLabel( "[ TAXI ]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi7 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii7, taxi7, 0.0, 0.0, 0.0);
new taxi8;
    Taxiii8 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi8 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii8, taxi8, 0.0, 0.0, 0.0);
new taxi9;
    Taxiii9 = Create3DTextLabel( "[ text]", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi9 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii9, taxi9, 0.0, 0.0, 0.0);
new taxi10;
    Taxiii10 = Create3DTextLabel( "text", COLOR_LIGHTGREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
taxi10 = ovde vozilo
Attach3DTextLabelToVehicle( Taxiii10, taxi10, 0.0, 0.0, 0.0);
i onda u komadni dodas ovo if(taxicar == 61)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii1, ZELENA, xita);
}
if(taxicar == 62)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii2, ZELENA, xita);
}
if(taxicar == 63)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii3, ZELENA, xita);
}
if(taxicar == 64)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii4, ZELENA, xita);
}
if(taxicar == 65)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii5, ZELENA, xita);
}
if(taxicar == 66)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii6, ZELENA, xita);
}
if(taxicar == 67)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii7, ZELENA, xita);
}
if(taxicar == 68)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii8, COLOR_LIGHTGREEN, xita);
}
if(taxicar == 69)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii9, ZELENA, xita);
}
if(taxicar == 70)
{
new xita[300];
format(xita, sizeof(xita), "[ TAXI ]\ncena:%d $",VARIJABLA_CENE_TAKSIJA[playerid]);
Update3DTextLabelText(Taxiii10, ZELENA, xita);
}


Hvala ti puno, al jel bi mi ti to mogo sredit preko team viewera? Ja sam pocetnik u tome znam neke sitnosti namjestit ja inace prevadjam modove i editam al ovo nezz napravit, jel bi mi to mogo pojasnit preko team viewera?

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0

Preko team viewera ne mogu, sredicu ti na pastebin pa cu ti poslati u inbox, posto vidim da ne umes da citas ovo...

Citat: Blaeks poslato Novembar 18, 2012, 20:57:35 POSLE PODNE
Preko team viewera ne mogu, sredicu ti na pastebin pa cu ti poslati u inbox, posto vidim da ne umes da citas ovo...

Ma procito sam sve al ne razumijem ni jedan kod xd

Join us today! 176.57.128.4:7793

Moji radovi:
[MAP] Burg - http://balkan-samp.com/forum/index.php?topic=28297
[MAP] Salon Brodova i Dock: http://balkan-samp.com/forum/index.php?topic=28260.0