SA-MP Forums Archive
[PEDIDO] Attach3DTextLabelToPlayer - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [PEDIDO] Attach3DTextLabelToPlayer (/showthread.php?tid=318487)



[PEDIDO] Attach3DTextLabelToPlayer - Delete_ - 15.02.2012

Alguem sabe como eu coloco essa funзгo mostrando o score do player?
um atach em 3d mosrando somente o score do player. dou rep


Re: [PEDIDO] Attach3DTextLabelToPlayer - [NC]BlackSky - 15.02.2012

pawn Код:
new Text3D:label;

//OnGameMode INit
label = Create3DTextLabel("Score: %d",0xFFFFFFFF,x,y,z,VARIAVEL SCORE,LOS);

//OnPlayerSpawn
new spielern[MAX_PLAYER_NAME];
GetPlayerName(playerid,spielern,sizeof spielern);
label[playerid] = Create3DTextLabel(spielern,0xFFFFFFFF,x,y,z,VARIAVEL SCORE,LOS);
Attach3DTextLabelToPlayer(label[playerid], playerid, Float:OffsetX, Float:OffsetY, Float:OffsetZ)

//OnPlayerDIsconnect

Delete3DTextLabel(label[playerid]);



Re: [PEDIDO] Attach3DTextLabelToPlayer - zbt - 15.02.2012

pawn Код:
new s[15], Text3D:score[MAX_PLAYERS];
format(s, 10 ,"Score:%i", GetPlayerScore(playerid));
Delete3DTextLabel(score[playerid]);
score[playerid] = Create3DTextLabel(s,//..);
Attach3DTextLabelToPlayer(score[playerid], playerid,//..);



Re: [PEDIDO] Attach3DTextLabelToPlayer - |_MeGaTroN_| - 15.02.2012

pawn Код:
new Text3D:mylabel[MAX_PLAYERS];
new gstring[128];
    mylabel[playerid] = Create3DTextLabel("Score: %d",0x008080FF, 30.0, 40.0, 50.0, 40.0, 0,GetPlayerScore(playerid));
    Attach3DTextLabelToPlayer(mylabel[playerid], playerid, 0.0, 0.0, 0.7);
    Update3DTextLabelText( mylabel[ GetPlayerScore( playerid ) ], -1, gstring );