[SOLVED] Attach 3D label to plane
#1

Hi,
I wan't to attach a 3D text label to a plane, but it has to be different for each player...
I tried something like this;
Код:
OnTop;
new Text3D:Text[MAX_PLAYERS];

OnPlayerConnect;
Text[playerid] = Create3DTextLabel("Plane 1",0x008080FF,0.0,0.0,0.0,40.0,0);
Attach3DTextLabelToVehicle(Text3D:Text, PLANE_1, 0.0, 0.0, 0.0)
But it didn't work...
Please help
TnQ
Reply
#2

https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Reply
#3

Quote:
Originally Posted by dice7
I checked the wiki, but I dont know how to script it ;S
Reply
#4

Код:
OnPlayerConnect;
Text[playerid] = Create3DTextLabel("Plane 1",0x008080FF,0.0,0.0,0.0,40.0,0);
Attach3DTextLabelToVehicle(Text[playerid], PLANE_1, 0.0, 0.0, 0.0)
Reply
#5

Quote:
Originally Posted by GTAguillaume
Код:
OnPlayerConnect;
Text[playerid] = Create3DTextLabel("Plane 1",0x008080FF,0.0,0.0,0.0,40.0,0);
Attach3DTextLabelToVehicle(Text[playerid], PLANE_1, 0.0, 0.0, 0.0)
TnQ (:
Reply
#6

Please how'll do that for a connection to the text appear all vehicles occurred?
Reply
#7

Quote:
Originally Posted by -8oHd4N-
Please how'll do that for a connection to the text appear all vehicles occurred?
I don't understand your question...
Reply
#8

Quote:
Originally Posted by TheFluxThing
Quote:
Originally Posted by -8oHd4N-
Please how'll do that for a connection to the text appear all vehicles occurred?
I don't understand your question...
that's what I mean

Код:
public OnGameModeInit(){
new Text3D: VehicleText;
for(new v=0; v<MAX_VEHICLES_EX; v++)
VehicleText = Create3DTextLabel("999",0xFFFFFFFF,0.0,0.0,0.0,20,0,1);
Attach3DTextLabelToVehicle(VehicleText, GetPlayerVehicleID(v), 0.0, 0.0, 1.0);
return 1;
}
bad code, just to show
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)