SA-MP Forums Archive
Question about cars - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Question about cars (/showthread.php?tid=308073)



Question about cars - vent - 02.01.2012

Hello! I have an question. Is there any shorter way to use this script?
pawn Код:
new vehicle_id, Text3D:vehicle3Dtext, vehicle_id2, Text3D:vehicle3Dtext2;
   
    vehicle3Dtext = Create3DTextLabel(""COL_LIGHTBLUE"Auto mark: "MUST"Sentinel \n "COL_LIGHTBLUE"Omanik: "MUST"Linn", COLOR_WHITE, 0.0, 0.0, 0.0, 50.0, 0, 1);
    vehicle3Dtext2 = Create3DTextLabel(""COL_LIGHTBLUE"Auto mark: "MUST"Sentinel \n "COL_LIGHTBLUE"Omanik: "MUST"Linn", COLOR_WHITE, 0.0, 0.0, 0.0, 50.0, 0, 1);
    vehicle_id = CreateVehicle(405,-1465.4740,2605.9497,55.6322,89.7749,0,0, 99999999999999);
    vehicle_id2 = CreateVehicle(405,-1472.0035,2606.0029,55.6335,89.3398,0,0, 99999999999999);
    Attach3DTextLabelToVehicle( vehicle3Dtext, vehicle_id, 0.0, 0.0, 2.0);
    Attach3DTextLabelToVehicle( vehicle3Dtext2, vehicle_id2, 0.0, 0.0, 2.0);