Vehicle 3d Text on one car only.. - 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: Vehicle 3d Text on one car only.. (
/showthread.php?tid=440803)
Vehicle 3d Text on one car only.. -
lean1337 - 31.05.2013
Hi, basicly when I add a 3d text to a vehicle it works fine but if I wanna add another one it disapears from the vehicle I added first and adds it to the new one..
pawn Код:
new Text3D:vehicle3Dtext[MAX_VEHICLES];
LEANCMD:(carsign)
{
new getcar = GetPlayerVehicleID(playerid);
if(!(IsPlayerInAnyVehicle(playerid))) return SCM(playerid, COLOR_LIGHTRED, "You have to be in a vehicle");
if(isnull(params)) return SCM(playerid, COLOR_LIGHTRED, "USAGE: "COL_WHITE"/carsign [Text]");
else
{
Delete3DTextLabel(vehicle3Dtext[getcar]);
vehicle3Dtext[getcar] = Create3DTextLabel(params, -1, 0.0, 0.0, 0.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(vehicle3Dtext[getcar], getcar, -0.8, -2.8, -0.3);
SCM(playerid, COLOR_LIGHTRED, "USAGE: /remove_carsign "COL_WHITE" - when you're done with it.");
}
return 1;
}
Thanks.
Re: Vehicle 3d Text on one car only.. -
dubyabeast - 31.05.2013
Wait.. You want to add 2 3d texts to one vehicle? Or do you want to add a 3d text to a different vehicle?
Re: Vehicle 3d Text on one car only.. -
lean1337 - 31.05.2013
Sorry. I want to add another 3dtext to a different vehicle.
I can basicly only have one 3dtext, not five 3dtext's to five different vehicles.