[Ajuda] preciso de ajuda em uma textdraw
#1

fiz essa textdraw mais nao sei como colocar para funfar o status do player
alguem me ajuda com essa tetxdraw





new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
new Text:Textdraw13;
new Text:Textdraw14;
new Text:Textdraw15;
new Text:Textdraw16;


Textdraw0 = TextDrawCreate(550.780151, 407.033538, "usebox");
TextDrawLetterSize(Textdraw0, 0.001733, -15.74871;
TextDrawTextSize(Textdraw0, 636.642150, 1.225000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 102);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 0);

Textdraw1 = TextDrawCreate(560.023620, 270.958526, "SCORE:");
TextDrawLetterSize(Textdraw1, 0.219955, 1.285000);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, 16711935);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 2);
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 2);

Textdraw2 = TextDrawCreate(560.304443, 285.600372, "SPREE:");
TextDrawLetterSize(Textdraw2, 0.233589, 1.398750);
TextDrawTextSize(Textdraw2, -43.572467, -15.750000);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, 16711935);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, -2);
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 2);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetSelectable(Textdraw2, true);

Textdraw3 = TextDrawCreate(561.288208, 301.466613, "PING:");
TextDrawLetterSize(Textdraw3, 0.191376, 1.531166);
TextDrawAlignment(Textdraw3, 1);
TextDrawColor(Textdraw3, 16711935);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 2);
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 2);
TextDrawSetProportional(Textdraw3, 1);

Textdraw4 = TextDrawCreate(561.523010, 317.916412, "FPS:");
TextDrawLetterSize(Textdraw4, 0.235885, 1.525915);
TextDrawAlignment(Textdraw4, 1);
TextDrawColor(Textdraw4, 16711935);
TextDrawSetShadow(Textdraw4, 0);
TextDrawSetOutline(Textdraw4, 2);
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 2);
TextDrawSetProportional(Textdraw4, 1);

Textdraw5 = TextDrawCreate(561.304748, 335.483489, "SKIN:");
TextDrawLetterSize(Textdraw5, 0.231013, 1.437831);
TextDrawAlignment(Textdraw5, 1);
TextDrawColor(Textdraw5, 16711935);
TextDrawSetShadow(Textdraw5, 0);
TextDrawSetOutline(Textdraw5, 2);
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 2);
TextDrawSetProportional(Textdraw5, 1);

Textdraw6 = TextDrawCreate(551.325561, 287.008483, "HUD:radar_spray");
TextDrawLetterSize(Textdraw6, 0.000000, 0.000000);
TextDrawTextSize(Textdraw6, 8.527069, 12.541687);
TextDrawAlignment(Textdraw6, 1);
TextDrawColor(Textdraw6, -1);
TextDrawSetShadow(Textdraw6, 0);
TextDrawSetOutline(Textdraw6, 0);
TextDrawFont(Textdraw6, 4);

Textdraw7 = TextDrawCreate(560.962463, 371.841766, "MORREU:");
TextDrawLetterSize(Textdraw7, 0.186269, 1.471663);
TextDrawAlignment(Textdraw7, 1);
TextDrawColor(Textdraw7, 16711935);
TextDrawSetShadow(Textdraw7, 0);
TextDrawSetOutline(Textdraw7, 2);
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 2);
TextDrawSetProportional(Textdraw7, 1);

Textdraw8 = TextDrawCreate(561.306457, 389.350463, "PLAYERS:");
TextDrawLetterSize(Textdraw8, 0.198872, 1.390580);
TextDrawAlignment(Textdraw8, 1);
TextDrawColor(Textdraw8, 16711935);
TextDrawSetShadow(Textdraw8, 0);
TextDrawSetOutline(Textdraw8, 2);
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 2);
TextDrawSetProportional(Textdraw8, 1);

Textdraw9 = TextDrawCreate(576.330200, 353.349853, "MATOU:");
TextDrawLetterSize(Textdraw9, 0.190017, 1.539913);
TextDrawAlignment(Textdraw9, 2);
TextDrawColor(Textdraw9, 16711935);
TextDrawSetShadow(Textdraw9, 0);
TextDrawSetOutline(Textdraw9, 2);
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 2);
TextDrawSetProportional(Textdraw9, 1);

Textdraw10 = TextDrawCreate(550.546081, 319.474517, "HUD:radar_triadsCasino");
TextDrawLetterSize(Textdraw10, 0.000000, 0.000000);
TextDrawTextSize(Textdraw10, 8.527069, 12.541687);
TextDrawAlignment(Textdraw10, 1);
TextDrawColor(Textdraw10, -1);
TextDrawSetShadow(Textdraw10, 0);
TextDrawSetOutline(Textdraw10, 0);
TextDrawFont(Textdraw10, 4);

Textdraw11 = TextDrawCreate(550.702880, 335.990966, "HUD:radar_chicken");
TextDrawLetterSize(Textdraw11, 0.000000, 0.000000);
TextDrawTextSize(Textdraw11, 8.527069, 12.541687);
TextDrawAlignment(Textdraw11, 1);
TextDrawColor(Textdraw11, -1);
TextDrawSetShadow(Textdraw11, 0);
TextDrawSetOutline(Textdraw11, 0);
TextDrawFont(Textdraw11, 4);

Textdraw12 = TextDrawCreate(549.716247, 271.366851, "HUD:radar_race");
TextDrawLetterSize(Textdraw12, 0.000000, 0.000000);
TextDrawTextSize(Textdraw12, 8.527069, 12.541687);
TextDrawAlignment(Textdraw12, 1);
TextDrawColor(Textdraw12, -1);
TextDrawSetShadow(Textdraw12, 0);
TextDrawSetOutline(Textdraw12, 0);
TextDrawFont(Textdraw12, 4);

Textdraw13 = TextDrawCreate(550.717529, 302.899658, "HUD:radar_LocoSyndicate");
TextDrawLetterSize(Textdraw13, 0.000000, 0.000000);
TextDrawTextSize(Textdraw13, 8.527069, 12.541687);
TextDrawAlignment(Textdraw13, 1);
TextDrawColor(Textdraw13, -1);
TextDrawSetShadow(Textdraw13, 0);
TextDrawSetOutline(Textdraw13, 0);
TextDrawFont(Textdraw13, 4);

Textdraw14 = TextDrawCreate(551.000061, 355.074310, "HUD:radar_ammugun");
TextDrawLetterSize(Textdraw14, 0.000000, 0.000000);
TextDrawTextSize(Textdraw14, 8.527069, 12.541687);
TextDrawAlignment(Textdraw14, 1);
TextDrawColor(Textdraw14, -1);
TextDrawSetShadow(Textdraw14, 0);
TextDrawSetOutline(Textdraw14, 0);
TextDrawFont(Textdraw14, 4);

Textdraw15 = TextDrawCreate(550.594604, 372.932861, "HUD:radar_hostpital");
TextDrawLetterSize(Textdraw15, 0.000000, 0.000000);
TextDrawTextSize(Textdraw15, 8.527069, 12.541687);
TextDrawAlignment(Textdraw15, 1);
TextDrawColor(Textdraw15, -1);
TextDrawSetShadow(Textdraw15, 0);
TextDrawSetOutline(Textdraw15, 0);
TextDrawFont(Textdraw15, 4);

Textdraw16 = TextDrawCreate(550.624877, 390.132720, "HUD:radar_gangG");
TextDrawLetterSize(Textdraw16, 0.000000, 0.000000);
TextDrawTextSize(Textdraw16, 8.527069, 12.541687);
TextDrawAlignment(Textdraw16, 1);
TextDrawColor(Textdraw16, -1);
TextDrawSetShadow(Textdraw16, 0);
TextDrawSetOutline(Textdraw16, 0);
TextDrawFont(Textdraw16, 4);
Reply
#2

Bom, primeiramente vocк estб usando as textdraws de modo errado, vocк precisa usar PlayerTextDraw.

Estude sobre PlayerTextDrawSetString, depois, use a minha include iBranch e use as callbacks customizadas pra colocar as informaзхes que vocк precisa, por exemplo, usar o PlayerTextDrawSetString na OnPlayerFPSChange pra alterar a quantidade de FPS, a parte de mortes й sу incrementar quando um player matar o outro, daн vocк adciona +1 kill pro killerid e +1 morte pro player que morreu.
Reply
#3

Crie as TextDrawns do status, e depois use TextDrawSetString para coloca-la pra funfar, espero ter ajudado. (Mas dessa forma terб que fazer a verificaзгo por player, para que nгo bug).
(Recomendo: Que crie textdrawns com estб funзгo e depois use esta.)
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)