[SOLVED] Attach 3D label to plane - 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: [SOLVED] Attach 3D label to plane (
/showthread.php?tid=114115)
[SOLVED] Attach 3D label to plane -
Nameless303 - 17.12.2009
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
Re: [UNSOLVED] Attach 3D label to plane -
dice7 - 17.12.2009
https://sampwiki.blast.hk/wiki/CreatePlayer3DTextLabel
Re: [UNSOLVED] Attach 3D label to plane -
Nameless303 - 17.12.2009
Quote:
Originally Posted by dice7
|
I checked the wiki, but I dont know how to script it ;S
Re: [UNSOLVED] Attach 3D label to plane -
GTAguillaume - 17.12.2009
Код:
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)
Re: [UNSOLVED] Attach 3D label to plane -
Nameless303 - 17.12.2009
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 (:
Re: [SOLVED] Attach 3D label to plane -
-8oHd4N- - 18.12.2009
Please how'll do that for a connection to the text appear all vehicles occurred?
Re: [SOLVED] Attach 3D label to plane -
Nameless303 - 18.12.2009
Quote:
Originally Posted by -8oHd4N-
Please how'll do that for a connection to the text appear all vehicles occurred? ![Sad](images/smilies/sad.gif)
|
I don't understand your question...
Re: [SOLVED] Attach 3D label to plane -
-8oHd4N- - 19.12.2009
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? ![Sad](images/smilies/sad.gif)
|
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