Jump to content

[Textdraw]Speedometer


ReaxoR'

Recommended Posts

Salut, astazi am facut si eu un textdraw pentru Speedometer! Astetp paperi bune/rele !

 

MIKvkps.png

 

 

Puneti asta la inceputul GM:

 

new Text:Speedo[10];

 

Iar astea le puneti in locul la celelalte TD de la Speedometer:

Speedo[0] = TextDrawCreate(504.583007, 332.333221, "box");
TextDrawLetterSize(Speedo[0], 0.000000, 8.360176);
TextDrawTextSize(Speedo[0], 633.923706, 0.000000);
TextDrawAlignment(Speedo[0], 1);
TextDrawColor(Speedo[0], -1);
TextDrawUseBox(Speedo[0], 1);
TextDrawBoxColor(Speedo[0], 268435541);
TextDrawSetShadow(Speedo[0], 0);
TextDrawSetOutline(Speedo[0], 0);
TextDrawBackgroundColor(Speedo[0], 255);
TextDrawFont(Speedo[0], 1);
TextDrawSetProportional(Speedo[0], 1);
TextDrawSetShadow(Speedo[0], 0);

Speedo[1] = TextDrawCreate(528.777526, 269.333435, "");
TextDrawLetterSize(Speedo[1], 0.000000, 0.000000);
TextDrawTextSize(Speedo[1], 96.559295, 113.916648);
TextDrawAlignment(Speedo[1], 1);
TextDrawColor(Speedo[1], -1);
TextDrawSetShadow(Speedo[1], 0);
TextDrawSetOutline(Speedo[1], 0);
TextDrawBackgroundColor(Speedo[1], 0);
TextDrawFont(Speedo[1], 5);
TextDrawSetProportional(Speedo[1], 1);
TextDrawSetShadow(Speedo[1], 0);
TextDrawSetPreviewModel(Speedo[1], 411);
TextDrawSetPreviewRot(Speedo[1], 0.000000, 0.000000, 320.000000, 1.000000);
TextDrawSetPreviewVehCol(Speedo[1], 1, 1);

Speedo[2] = TextDrawCreate(506.757080, 349.249877, "hud:radar_sweet");
TextDrawLetterSize(Speedo[2], 0.000000, 0.000000);
TextDrawTextSize(Speedo[2], 9.882884, 8.916657);
TextDrawAlignment(Speedo[2], 1);
TextDrawColor(Speedo[2], -1);
TextDrawSetShadow(Speedo[2], 0);
TextDrawSetOutline(Speedo[2], 0);
TextDrawBackgroundColor(Speedo[2], 255);
TextDrawFont(Speedo[2], 4);
TextDrawSetProportional(Speedo[2], 1);
TextDrawSetShadow(Speedo[2], 0);

Speedo[3] = TextDrawCreate(519.575744, 349.249908, "SPEED: 100 KM/H");
TextDrawLetterSize(Speedo[3], 0.358770, 1.004999);
TextDrawAlignment(Speedo[3], 1);
TextDrawColor(Speedo[3], -1);
TextDrawSetShadow(Speedo[3], 0);
TextDrawSetOutline(Speedo[3], -1);
TextDrawBackgroundColor(Speedo[3], 255);
TextDrawFont(Speedo[3], 3);
TextDrawSetProportional(Speedo[3], 1);
TextDrawSetShadow(Speedo[3], 0);

Speedo[4] = TextDrawCreate(507.694183, 362.083343, "hud:radar_impound");
TextDrawLetterSize(Speedo[4], 0.000000, 0.000000);
TextDrawTextSize(Speedo[4], 9.414361, 14.749997);
TextDrawAlignment(Speedo[4], 1);
TextDrawColor(Speedo[4], -1);
TextDrawSetShadow(Speedo[4], 0);
TextDrawSetOutline(Speedo[4], 0);
TextDrawBackgroundColor(Speedo[4], 255);
TextDrawFont(Speedo[4], 4);
TextDrawSetProportional(Speedo[4], 1);
TextDrawSetShadow(Speedo[4], 0);

Speedo[5] = TextDrawCreate(520.512634, 365.000000, "Fuel: 100 LITRI");
TextDrawLetterSize(Speedo[5], 0.372825, 1.121666);
TextDrawAlignment(Speedo[5], 1);
TextDrawColor(Speedo[5], -1);
TextDrawSetShadow(Speedo[5], 0);
TextDrawSetOutline(Speedo[5], 1);
TextDrawBackgroundColor(Speedo[5], 255);
TextDrawFont(Speedo[5], 3);
TextDrawSetProportional(Speedo[5], 1);
TextDrawSetShadow(Speedo[5], 0);

Speedo[6] = TextDrawCreate(508.162658, 381.333160, "hud:radar_modgarage");
TextDrawLetterSize(Speedo[6], 0.000000, 0.000000);
TextDrawTextSize(Speedo[6], 9.414367, 8.916650);
TextDrawAlignment(Speedo[6], 1);
TextDrawColor(Speedo[6], -1);
TextDrawSetShadow(Speedo[6], 0);
TextDrawSetOutline(Speedo[6], 0);
TextDrawBackgroundColor(Speedo[6], 255);
TextDrawFont(Speedo[6], 4);
TextDrawSetProportional(Speedo[6], 1);
TextDrawSetShadow(Speedo[6], 0);

Speedo[7] = TextDrawCreate(520.981323, 381.333312, "Health: 100 %");
TextDrawLetterSize(Speedo[7], 0.366266, 0.981666);
TextDrawAlignment(Speedo[7], 1);
TextDrawColor(Speedo[7], -1);
TextDrawSetShadow(Speedo[7], 0);
TextDrawSetOutline(Speedo[7], 1);
TextDrawBackgroundColor(Speedo[7], 255);
TextDrawFont(Speedo[7], 3);
TextDrawSetProportional(Speedo[7], 1);
TextDrawSetShadow(Speedo[7], 0);

Speedo[8] = TextDrawCreate(509.099914, 395.916687, "hud:radar_waypoint");
TextDrawLetterSize(Speedo[8], 0.000000, 0.000000);
TextDrawTextSize(Speedo[8], 8.477325, 8.916670);
TextDrawAlignment(Speedo[8], 1);
TextDrawColor(Speedo[8], -1);
TextDrawSetShadow(Speedo[8], 0);
TextDrawSetOutline(Speedo[8], 0);
TextDrawBackgroundColor(Speedo[8], 255);
TextDrawFont(Speedo[8], 4);
TextDrawSetProportional(Speedo[8], 1);
TextDrawSetShadow(Speedo[8], 0);



Speedo[9] = TextDrawCreate(521.449829, 394.750091, "KM: 1000");
TextDrawLetterSize(Speedo[9], 0.474495, 1.045833);
TextDrawAlignment(Speedo[9], 1);
TextDrawColor(Speedo[9], -1);
TextDrawSetShadow(Speedo[9], 0);
TextDrawSetOutline(Speedo[9], 1);
TextDrawBackgroundColor(Speedo[9], 255);
TextDrawFont(Speedo[9], 3);
TextDrawSetProportional(Speedo[9], 1);
TextDrawSetShadow(Speedo[9], 0);

 

Edited by ReaxoR'
Link to comment
Share on other sites

  • 3 weeks later...

Am inlocuit cu  TextDrawShowForPlayer, si acum imi arata ala dar sta pe loc 100 km tot la fel, din cate stiu eu un speedometer trebuie sa scada sau sa urce ?

// Desenul meu animat 
// Alte episoade aici: 
https://www.youtube.com/channel/UCF2kY1CzhHI_PCyV5LprQ1w/videos

 

 

 

Link to comment
Share on other sites

  • 9 months later...
  • 4 weeks later...

E foarte frumos, dar pacat ca sunt doar decorative.... Ar fi fost mai interesant daca chiar faceai mai multe.. :D

 

private void Copiati_asta(Plagiatori p)
{
      if(p.name != "unknown")
      {
           Cursor.Hide();
           MessageBox.Show("Daca copiezi, esti considerat un zeu iar daca muncesti este consderat un nimic");
           MessageBox.Show("Cei ce muncesc sunt criticati mai aspru decat cei care copiaza, fiindca de la cei care muncesc se asteapta performante..");
           MessageBox.Show("Ofera acelei persoane care a muncit, macar un multumesc fiindca el e cel care-ti aduce tie laudele pe care el ar trebui sa le primeasca.");
           MessageBox.Show("Poti mintii o lume intreaga dar nu te poti minti pe tine.");
           MessageBox.Show("Sper ca acest mesaj sa-ti intre bine in cap, reputatie negativa imi va dovedi ca nu ai inteles nimic");
           MessageBox.Show("Multumesc....");
           Program.close();
      }
}
Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.