31.05.2013, 12:05
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..
Thanks.
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;
}