[PEDIDO] Attach3DTextLabelToPlayer
#1

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
Reply
#2

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]);
Reply
#3

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,//..);
Reply
#4

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 );
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)