Pomoc oko rent vozila.

Započeo Nure
26. Sep. 2018.
626
pregleda
6
postova
Nure
4
Enforcer
26. Sep. 2018.
Problem(error/warning): Ovako,koristim SA mod i hteo bih da pitam kako da napravim label za rent da li je vozilo slobodno ili zauzeto?
U modu ima vec definacija da li je vozilo rentano ili nije.Samo jos fali da na tu definaciju dodam label i ti kad rentas da se odma label update i da pise [ zauzeto ] Na koju bi foru mogao to da izvedem?

Dio skripte: [ pawn ]vaš odgovor[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Muma Rascall
6
Forum Don
26. Sep. 2018.
new LabelRentVeh;

Na OnGameModeInit za sva rent vozila kreiraš label pod varijablom: LabelRentVeh = ..."Rent Vozilo\n{168E0F}'SLOBODNO'"

i kada igrač renta vozilo destroyaš taj label vozila pod tom varijablom LabelRentVeh i kreiraš novi LabelRentVeh = ..."Rent Vozilo\n{FF0000}'ZAUZETO'"

i kada istekne rent opet tom vozilu koje je rentao destroyaš/updateuješ taj label sa zauzeto na slobodno
Nure
4
Enforcer
26. Sep. 2018.
E samo mi nije jasno jedno.Kako da jednom definacijom definisem sva RentAuta na serveru da mogu da attacham 3dtextlabel?
Nure
4
Enforcer
26. Sep. 2018.
@muma.
Nure
4
Enforcer
26. Sep. 2018.
muma. wrote on September 26, 2018, 2:28 pm:
new LabelRentVeh;

Na OnGameModeInit za sva rent vozila kreiraš label pod varijablom: LabelRentVeh = ..."Rent Vozilo\n{168E0F}'SLOBODNO'"

i kada igrač renta vozilo destroyaš taj label vozila pod tom varijablom LabelRentVeh i kreiraš novi LabelRentVeh = ..."Rent Vozilo\n{FF0000}'ZAUZETO'"

i kada istekne rent opet tom vozilu koje je rentao destroyaš/updateuješ taj label sa zauzeto na slobodno
    new Text3D:rentauta;
autorent = AddStaticVehicleEx(401,141.2159000,-1949.9873000,3.4707000,234.6715000,-1,-1,998); //Bravura
autorent = AddStaticVehicleEx(401,143.7709000,-1945.8297000,3.4707000,234.6715000,-1,-1,998); //Bravura
autorent = AddStaticVehicleEx(401,146.1730000,-1941.9910000,3.4707000,234.6715000,-1,-1,998); //Bravura
autorent = AddStaticVehicleEx(401,148.9303000,-1938.1860000,3.4707000,234.6715000,-1,-1,998); //Bravura

rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);
  rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);
  rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);
  rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);

ovako @muma.
Purda121
5
OG Legend
26. Sep. 2018.
Nure wrote on September 26, 2018, 3:03 pm:
    new Text3D:rentauta;
autorent = AddStaticVehicleEx(401,141.2159000,-1949.9873000,3.4707000,234.6715000,-1,-1,998); //Bravura
autorent = AddStaticVehicleEx(401,143.7709000,-1945.8297000,3.4707000,234.6715000,-1,-1,998); //Bravura
autorent = AddStaticVehicleEx(401,146.1730000,-1941.9910000,3.4707000,234.6715000,-1,-1,998); //Bravura
autorent = AddStaticVehicleEx(401,148.9303000,-1938.1860000,3.4707000,234.6715000,-1,-1,998); //Bravura

rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);
  rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);
  rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);
  rentauta = Create3DTextLabel(""SPLAVA"", 0x33CCFFAA, 0.0, 0.0, 0.0, 35.0, 0, 1);
    Attach3DTextLabelToVehicle(rentauta, autorent ,0,0,0);

ovako @muma.

Nisi ga najbolje shvatio 😄

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha