[Ajuda] Score do Player textdraw
#1

Opa tudo bom, eu criei um textdraw, e eu nгo sei como faзo para pegar o Score do player conectado alguйm pode me ajudar ?, E tambйm queria saber como faзo para mostrar o textdraw para todos os players, ja tentei o TextDrawShowForAll, mas nгo aparece para os players.

@TextDraw que eu criei
Код:
Textdraw0 = TextDrawCreate(16.000000, 430.000000, "SCORE:");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 3);
TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
TextDrawColor(Textdraw0, 5373951);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 0);
TextDrawSetShadow(Textdraw0, 1);
TextDrawSetSelectable(Textdraw0, 1);

Textdraw1 = TextDrawCreate(-4.000000, 437.000000, ".");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
TextDrawColor(Textdraw1, -1);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
TextDrawUseBox(Textdraw1, 1);
TextDrawBoxColor(Textdraw1, 255);
TextDrawTextSize(Textdraw1, 678.000000, 167.000000);
TextDrawSetSelectable(Textdraw1, 0);

Textdraw2 = TextDrawCreate(-4.000000, 424.000000, ".");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.500000, 1.000000);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
TextDrawUseBox(Textdraw2, 1);
TextDrawBoxColor(Textdraw2, 255);
TextDrawTextSize(Textdraw2, 678.000000, 167.000000);
TextDrawSetSelectable(Textdraw2, 0);

Textdraw3 = TextDrawCreate(80.000000, 430.000000, "00");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 3);
TextDrawLetterSize(Textdraw3, 0.500000, 1.000000);
TextDrawColor(Textdraw3, 5373951);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 0);
TextDrawSetShadow(Textdraw3, 1);
TextDrawSetSelectable(Textdraw3, 1);
Reply
#2

https://sampwiki.blast.hk/wiki/Textdraw
Se й uma Textdraw para cada jogador, deveria ser feito usando PlayerTextdraw

armazene um valor nas variavel vгo estбr o score
e para por na textdraw

https://sampwiki.blast.hk/wiki/PlayerTextDrawSetString

~~~

Nгo recomendo de nenhuma forma, comeзar fazendo textdraw para cada jogador, isso requer um bom conhecimento e lуgica ..
Reply
#3

Cria em PlayerTextDraw...
Depois usa PlayerTextDrawSetString para setar o level do player, usando a funзгo GetPlayerScore.
Reply
#4

PHP код:
public OnPlayerUpdate(playerid)
{
    new 
ata[12];
    
format(atasizeof(ata), "score: %d"GetPlayerScore(playerid));
    
PlayerTextDrawSetString(playeridTextDrawata);
    return 
1;

base
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)