SA-MP Forums Archive
3D Text label attached to player? [REP+] - 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 Text label attached to player? [REP+] (/showthread.php?tid=330199)



3D Text label attached to player? [REP+] - introzen - 31.03.2012

pawn Код:
new string[128];
format(string,sizeof(string),"%s",pName(playerid));
CreatePlayer3DTextLabel(playerid,string,0x9ACD32AA,0.0,0.0,0.7,40.0,playerid,INVALID_VEHICLE_ID,0);
That code doesn't, for some reason, create a label over the players head.
Why?

Thanks.


Re: 3D Text label attached to player? [REP+] - OxyG3N - 31.03.2012

pawn Код:
new string[26];
format(string,sizeof(string),"%s",pName(playerid));
new PlayerLabel = Create3DTextLabel(string, COLOR, 0.0, 0.0, 40.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel, playerid, 0.0, 0.0, 0.47);



Re: 3D Text label attached to player? [REP+] - introzen - 31.03.2012

Doesn't work.


Re: 3D Text label attached to player? [REP+] - OxyG3N - 31.03.2012

Sorry my fault.
pawn Код:
new string[26];
format(string,sizeof(string),"%s",pName(playerid));
new Text3D:PlayerLabel = Create3DTextLabel(string, COLOR, 0.0, 0.0, 40.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel, playerid, 0.0, 0.0, 0.47);



Re: 3D Text label attached to player? [REP+] - introzen - 31.03.2012

Quote:
Originally Posted by OxyG3N
Посмотреть сообщение
Sorry my fault.
pawn Код:
new string[26];
format(string,sizeof(string),"%s",pName(playerid));
new Text3D:PlayerLabel = Create3DTextLabel(string, COLOR, 0.0, 0.0, 40.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel, playerid, 0.0, 0.0, 0.47);
Already tried. Not working.


Re: 3D Text label attached to player? [REP+] - fordawinzz - 31.03.2012

pawn Код:
new string[MAX_PLAYER_NAME];
new Text3D:PlayerLabel[MAX_PLAYERS];
format(string,sizeof(string),"%s",pName(playerid));
PlayerLabel[playerid] = Create3DTextLabel(string, COLOR, 0.0, 0.0, 0.0, 20.0, 0, 1);
Attach3DTextLabelToPlayer(PlayerLabel[playerid], playerid, 0.0, 0.0, 0.3);



Re: 3D Text label attached to player? [REP+] - introzen - 31.03.2012

Doesn't work.


Re: 3D Text label attached to player? [REP+] - OxyG3N - 31.03.2012

Only other players will see label wich are attached to your head.


Re: 3D Text label attached to player? [REP+] - introzen - 31.03.2012

Thanks.