SA-MP Forums Archive
3d Lable text - 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)
+--- Thread: 3d Lable text (/showthread.php?tid=292116)



3d Lable text - Bhuvani - 22.10.2011

How make playername on 3d lable text


Re: 3d Lable text - AeroBlast - 22.10.2011

pawn Код:
//At the top of your script

new Text:mylabel;

//Under OnGameModeInIt

mylabel = Create3DTextLabel("Name",0x008080FF,30.0,40.0,50.0,40.0,0); //Creating the Label

//Where you wanna put it

new string[128],name[24]; //Creating the variables
GetPlayerName(playerid,name,24); //Getting the player's name
format(string,128,"%s",name); //Putting the name into a string
Update3DTextLabelText(mylabel, 0xFFFFFFFF, string); //Changing the text of the label



Re: 3d Lable text - [L3th4l] - 22.10.2011

And make that a label per player, or else everyone will be getting someone else's name