15.02.2012, 12:10
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
um atach em 3d mosrando somente o score do player. dou rep
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]);
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,//..);
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 );