SA-MP Forums Archive
3D TextLabel on spawn - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: 3D TextLabel on spawn (/showthread.php?tid=146117)



3D TextLabel on spawn - Memoryz - 05.05.2010

pawn Код:
public OnVehicleSpawn(vehicleid)
{
  if(IsAircraft(vehicleid))
  {
  new Text3D:vehtext;
  vehtext = Create3DTextLabel("Text Goes Here", COLOR_GREEN, 0.0, 0.0, 0.0, 50.0, 0, 1 );
  Attach3DTextLabelToVehicle(vehtext, vehicleid, 0.0, 0.0, 2.0);
  }
  return true;
}
Is what I have so far, I want it to show "Text Goes Here" when a vehicle spawns, but it isn't doing that.

Can anyone help me?


Re: 3D TextLabel on spawn - luigifan9 - 05.05.2010

try defining the aircraft.


pawn Код:
air1 = Createvehicle(AIRCRAFTID, X, Y, Z)
then where it say svehicle id put air1


Re: 3D TextLabel on spawn - Memoryz - 05.05.2010

Quote:
Originally Posted by luigifan9
try defining the aircraft.


pawn Код:
air1 = Createvehicle(AIRCRAFTID, X, Y, Z)
then where it say svehicle id put air1
I have 300 aircrafts, would take a long ass time to do air1, air2, air 256, air 257, air 300, etc...


Re: 3D TextLabel on spawn - luigifan9 - 05.05.2010

Well, free up a weekend


Re: 3D TextLabel on spawn - -Rebel Son- - 05.05.2010

You can probably make a

new Aircraft();
{id},
{id},
and so on. then call it.

P.S Luigi your picture scares me.