Ajuda com textdraw - Pereira - 10/08/2022
Fala rapaziada, criar esse roda pé para o meu servidor e estou precisando da ajuda de vcs. Como faço para colocar a quantidade de dinheiro do player naquele "9999999999"
Código: new Text:TDEditor_TD[6];
TDEditor_TD[0] = TextDrawCreate(1.058829, 437.333496, "box");
TextDrawLetterSize(TDEditor_TD[0], 0.000000, 0.729410);
TextDrawTextSize(TDEditor_TD[0], 649.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[0], 1);
TextDrawColor(TDEditor_TD[0], -65281);
TextDrawUseBox(TDEditor_TD[0], 1);
TextDrawBoxColor(TDEditor_TD[0], 255);
TextDrawSetShadow(TDEditor_TD[0], 0);
TextDrawFont(TDEditor_TD[0], 2);
TextDrawSetProportional(TDEditor_TD[0], 1);
TDEditor_TD[1] = TextDrawCreate(508.352966, 434.216705, "B");
TextDrawLetterSize(TDEditor_TD[1], 0.400000, 1.600000);
TextDrawAlignment(TDEditor_TD[1], 1);
TextDrawColor(TDEditor_TD[1], -1);
TextDrawSetShadow(TDEditor_TD[1], 0);
TextDrawSetOutline(TDEditor_TD[1], 1);
TextDrawBackgroundColor(TDEditor_TD[1], 255);
TextDrawFont(TDEditor_TD[1], 1);
TextDrawSetProportional(TDEditor_TD[1], 1);
TDEditor_TD[2] = TextDrawCreate(509.764831, 439.833557, "box");
TextDrawLetterSize(TDEditor_TD[2], 0.000000, 0.447056);
TextDrawTextSize(TDEditor_TD[2], 514.000000, 0.000000);
TextDrawAlignment(TDEditor_TD[2], 1);
TextDrawColor(TDEditor_TD[2], -1);
TextDrawUseBox(TDEditor_TD[2], 1);
TextDrawBoxColor(TDEditor_TD[2], -2139062017);
TextDrawSetShadow(TDEditor_TD[2], 0);
TextDrawBackgroundColor(TDEditor_TD[2], 255);
TextDrawFont(TDEditor_TD[2], 1);
TextDrawSetProportional(TDEditor_TD[2], 1);
TDEditor_TD[3] = TextDrawCreate(4.352946, 437.333343, "VERSAO_1.0");
TextDrawLetterSize(TDEditor_TD[3], 0.199058, 0.876666);
TextDrawAlignment(TDEditor_TD[3], 1);
TextDrawColor(TDEditor_TD[3], -1);
TextDrawSetShadow(TDEditor_TD[3], 0);
TextDrawSetOutline(TDEditor_TD[3], 1);
TextDrawBackgroundColor(TDEditor_TD[3], 255);
TextDrawFont(TDEditor_TD[3], 1);
TextDrawSetProportional(TDEditor_TD[3], 1);
TDEditor_TD[4] = TextDrawCreate(594.044921, 439.833557, "box");
TextDrawLetterSize(TDEditor_TD[4], 0.000000, 0.447056);
TextDrawTextSize(TDEditor_TD[4], 598.279418, 0.000000);
TextDrawAlignment(TDEditor_TD[4], 1);
TextDrawColor(TDEditor_TD[4], -1);
TextDrawUseBox(TDEditor_TD[4], 1);
TextDrawBoxColor(TDEditor_TD[4], -2139062017);
TextDrawSetShadow(TDEditor_TD[4], 0);
TextDrawBackgroundColor(TDEditor_TD[4], 255);
TextDrawFont(TDEditor_TD[4], 1);
TextDrawSetProportional(TDEditor_TD[4], 1);
TDEditor_TD[5] = TextDrawCreate(593.533264, 432.016571, "c");
TextDrawLetterSize(TDEditor_TD[5], 0.400000, 1.600000);
TextDrawAlignment(TDEditor_TD[5], 1);
TextDrawColor(TDEditor_TD[5], -1);
TextDrawSetShadow(TDEditor_TD[5], 0);
TextDrawSetOutline(TDEditor_TD[5], 1);
TextDrawBackgroundColor(TDEditor_TD[5], 255);
TextDrawFont(TDEditor_TD[5], 0);
TextDrawSetProportional(TDEditor_TD[5], 1);
//Player TextDraws:
new PlayerText:TDEditor_PTD[MAX_PLAYERS][2];
TDEditor_PTD[playerid][0] = CreatePlayerTextDraw(playerid, 520.117553, 436.166717, "9999999999");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][0], 0.247529, 1.168331);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][0], -1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][0], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][0], 1);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][0], 1);
TDEditor_PTD[playerid][1] = CreatePlayerTextDraw(playerid, 603.830749, 435.316772, "999");
PlayerTextDrawLetterSize(playerid, TDEditor_PTD[playerid][1], 0.255058, 1.302497);
PlayerTextDrawAlignment(playerid, TDEditor_PTD[playerid][1], 1);
PlayerTextDrawColor(playerid, TDEditor_PTD[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, TDEditor_PTD[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, TDEditor_PTD[playerid][1], 1);
PlayerTextDrawBackgroundColor(playerid, TDEditor_PTD[playerid][1], 255);
PlayerTextDrawFont(playerid, TDEditor_PTD[playerid][1], 1);
PlayerTextDrawSetProportional(playerid, TDEditor_PTD[playerid][1], 1);
RE: Ajuda com textdraw - xbruno1000x - 10/08/2022
É só setar o string da textdraw. Coloque um timer chamando o código ou insira na OnPlayerUpdate caso não saiba criar um.
Código: new tdstring[32];
format(tdstring, sizeof(tdstring), "%d", GetPlayerMoney(playerid));
PlayerTextDrawSetString(playerid, TDEditor_PTD[playerid][0], tdstring);
RE: Ajuda com textdraw - Pereira - 10/08/2022
(10/08/2022 04:59)xbruno1000x Escreveu: É só setar o string da textdraw. Coloque um timer chamando o código ou insira na OnPlayerUpdate caso não saiba criar um.
Código: new tdstring[32];
format(tdstring, sizeof(tdstring), "%d", GetPlayerMoney(playerid));
PlayerTextDrawSetString(playerid, TDEditor_PTD[playerid][0], tdstring);
Vlw irmão, consegui.
|