3D TextLabel on spawn
#1

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?
Reply
#2

try defining the aircraft.


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

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...
Reply
#4

Well, free up a weekend
Reply
#5

You can probably make a

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

P.S Luigi your picture scares me.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)