Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] [TextDraw]Speedometer

$
0
0
The textdraw of the speedometer (not a system).


Code:

new Text:SpeedGlobalTD[4];

SpeedGlobalTD[0] = TextDrawCreate(592.333251, 394.763061, "");
TextDrawLetterSize(SpeedGlobalTD[0], 0.000000, 0.000000);
TextDrawTextSize(SpeedGlobalTD[0], 48.000000, 52.000000);
TextDrawAlignment(SpeedGlobalTD[0], 1);
TextDrawColor(SpeedGlobalTD[0], 255);
TextDrawSetShadow(SpeedGlobalTD[0], 0);
TextDrawSetOutline(SpeedGlobalTD[0], 0);
TextDrawBackgroundColor(SpeedGlobalTD[0], 0);
TextDrawFont(SpeedGlobalTD[0], 5);
TextDrawSetProportional(SpeedGlobalTD[0], 0);
TextDrawSetShadow(SpeedGlobalTD[0], 0);
TextDrawSetPreviewModel(SpeedGlobalTD[0], 1895);
TextDrawSetPreviewRot(SpeedGlobalTD[0], 0.000000, 0.000000, 0.000000, 1.000000);

SpeedGlobalTD[1] = TextDrawCreate(512.999755, 367.800170, "");
TextDrawLetterSize(SpeedGlobalTD[1], 0.000000, 0.000000);
TextDrawTextSize(SpeedGlobalTD[1], 101.000000, 100.000000);
TextDrawAlignment(SpeedGlobalTD[1], 1);
TextDrawColor(SpeedGlobalTD[1], 255);
TextDrawSetShadow(SpeedGlobalTD[1], 0);
TextDrawSetOutline(SpeedGlobalTD[1], 0);
TextDrawBackgroundColor(SpeedGlobalTD[1], 0);
TextDrawFont(SpeedGlobalTD[1], 5);
TextDrawSetProportional(SpeedGlobalTD[1], 0);
TextDrawSetShadow(SpeedGlobalTD[1], 0);
TextDrawSetPreviewModel(SpeedGlobalTD[1], 3533);
TextDrawSetPreviewRot(SpeedGlobalTD[1], 0.000000, 90.000000, 90.000000, 1.000000);

SpeedGlobalTD[2] = TextDrawCreate(557.666625, 388.540802, "");
TextDrawLetterSize(SpeedGlobalTD[2], 0.000000, 0.000000);
TextDrawTextSize(SpeedGlobalTD[2], 52.000000, 80.000000);
TextDrawAlignment(SpeedGlobalTD[2], 1);
TextDrawColor(SpeedGlobalTD[2], 255);
TextDrawSetShadow(SpeedGlobalTD[2], 0);
TextDrawSetOutline(SpeedGlobalTD[2], 0);
TextDrawBackgroundColor(SpeedGlobalTD[2], 0);
TextDrawFont(SpeedGlobalTD[2], 5);
TextDrawSetProportional(SpeedGlobalTD[2], 0);
TextDrawSetShadow(SpeedGlobalTD[2], 0);
TextDrawSetSelectable(SpeedGlobalTD[2], true);
TextDrawSetPreviewModel(SpeedGlobalTD[2], 3533);
TextDrawSetPreviewRot(SpeedGlobalTD[2], 0.000000, 90.000000, 90.000000, 1.000000);

SpeedGlobalTD[3] = TextDrawCreate(627.366516, 414.736724, "kmh");
TextDrawLetterSize(SpeedGlobalTD[3], 0.189000, 0.811852);
TextDrawAlignment(SpeedGlobalTD[3], 2);
TextDrawColor(SpeedGlobalTD[3], -1);
TextDrawSetShadow(SpeedGlobalTD[3], 0);
TextDrawSetOutline(SpeedGlobalTD[3], 0);
TextDrawBackgroundColor(SpeedGlobalTD[3], 255);
TextDrawFont(SpeedGlobalTD[3], 2);
TextDrawSetProportional(SpeedGlobalTD[3], 0);
TextDrawSetShadow(SpeedGlobalTD[3], 0);




new PlayerText:SpeedPlayerTD[MAX_PLAYERS][4];

SpeedPlayerTD[playerid][0] = CreatePlayerTextDraw(playerid, 617.233154, 402.721801, "000");
PlayerTextDrawLetterSize(playerid, SpeedPlayerTD[playerid][0], 0.400000, 1.600000);
PlayerTextDrawAlignment(playerid, SpeedPlayerTD[playerid][0], 2);
PlayerTextDrawColor(playerid, SpeedPlayerTD[playerid][0], -1);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][0], 0);
PlayerTextDrawSetOutline(playerid, SpeedPlayerTD[playerid][0], 0);
PlayerTextDrawBackgroundColor(playerid, SpeedPlayerTD[playerid][0], 255);
PlayerTextDrawFont(playerid, SpeedPlayerTD[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, SpeedPlayerTD[playerid][0], 0);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][0], 0);

SpeedPlayerTD[playerid][1] = CreatePlayerTextDraw(playerid, 589.700439, 404.615112, "");
PlayerTextDrawLetterSize(playerid, SpeedPlayerTD[playerid][1], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid, SpeedPlayerTD[playerid][1], 40.000000, 44.000000);
PlayerTextDrawAlignment(playerid, SpeedPlayerTD[playerid][1], 1);
PlayerTextDrawColor(playerid, SpeedPlayerTD[playerid][1], -1);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, SpeedPlayerTD[playerid][1], 0);
PlayerTextDrawBackgroundColor(playerid, SpeedPlayerTD[playerid][1], 0);
PlayerTextDrawFont(playerid, SpeedPlayerTD[playerid][1], 5);
PlayerTextDrawSetProportional(playerid, SpeedPlayerTD[playerid][1], 0);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][1], 0);
PlayerTextDrawSetPreviewModel(playerid, SpeedPlayerTD[playerid][1], 411);
PlayerTextDrawSetPreviewRot(playerid, SpeedPlayerTD[playerid][1], -20.000000, 0.000000, 30.000000, 1.000000);
PlayerTextDrawSetPreviewVehCol(playerid, SpeedPlayerTD[playerid][1], 1, 1);

SpeedPlayerTD[playerid][2] = CreatePlayerTextDraw(playerid, 580.363647, 428.725646, "000000_km");
PlayerTextDrawLetterSize(playerid, SpeedPlayerTD[playerid][2], 0.189000, 0.811852);
PlayerTextDrawAlignment(playerid, SpeedPlayerTD[playerid][2], 2);
PlayerTextDrawColor(playerid, SpeedPlayerTD[playerid][2], -1);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, SpeedPlayerTD[playerid][2], 0);
PlayerTextDrawBackgroundColor(playerid, SpeedPlayerTD[playerid][2], 255);
PlayerTextDrawFont(playerid, SpeedPlayerTD[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, SpeedPlayerTD[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, SpeedPlayerTD[playerid][2], true);

SpeedPlayerTD[playerid][3] = CreatePlayerTextDraw(playerid, 556.033447, 413.507080, "infernus");
PlayerTextDrawLetterSize(playerid, SpeedPlayerTD[playerid][3], 0.313999, 1.475555);
PlayerTextDrawAlignment(playerid, SpeedPlayerTD[playerid][3], 2);
PlayerTextDrawColor(playerid, SpeedPlayerTD[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, SpeedPlayerTD[playerid][3], 0);
PlayerTextDrawBackgroundColor(playerid, SpeedPlayerTD[playerid][3], 255);
PlayerTextDrawFont(playerid, SpeedPlayerTD[playerid][3], 2);
PlayerTextDrawSetProportional(playerid, SpeedPlayerTD[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, SpeedPlayerTD[playerid][3], 0);


Viewing all articles
Browse latest Browse all 595

Trending Articles