MarioBlack

VelocimetroSP

Sep 3rd, 2020
1,331
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. This file was generated by Nickk's TextDraw editor script
  3. Nickk888 is the author of the NTD script
  4. */
  5.  
  6. #include <a_samp>
  7.  
  8. new Text:PublicTD[4];
  9.  
  10. public OnFilterScriptInit()
  11. {
  12.     PublicTD[0] = TextDrawCreate(277.000000, 389.000000, "velocidad:");
  13.     TextDrawFont(PublicTD[0], 3);
  14.     TextDrawLetterSize(PublicTD[0], 0.337500, 1.350000);
  15.     TextDrawTextSize(PublicTD[0], 400.000000, 17.000000);
  16.     TextDrawSetOutline(PublicTD[0], 1);
  17.     TextDrawSetShadow(PublicTD[0], 0);
  18.     TextDrawAlignment(PublicTD[0], 1);
  19.     TextDrawColor(PublicTD[0], 750545407);
  20.     TextDrawBackgroundColor(PublicTD[0], 255);
  21.     TextDrawBoxColor(PublicTD[0], 50);
  22.     TextDrawUseBox(PublicTD[0], 0);
  23.     TextDrawSetProportional(PublicTD[0], 1);
  24.     TextDrawSetSelectable(PublicTD[0], 0);
  25.  
  26.     PublicTD[1] = TextDrawCreate(344.000000, 389.000000, "000");
  27.     TextDrawFont(PublicTD[1], 3);
  28.     TextDrawLetterSize(PublicTD[1], 0.337500, 1.350000);
  29.     TextDrawTextSize(PublicTD[1], 400.000000, 17.000000);
  30.     TextDrawSetOutline(PublicTD[1], 1);
  31.     TextDrawSetShadow(PublicTD[1], 0);
  32.     TextDrawAlignment(PublicTD[1], 1);
  33.     TextDrawColor(PublicTD[1], -1);
  34.     TextDrawBackgroundColor(PublicTD[1], 255);
  35.     TextDrawBoxColor(PublicTD[1], 50);
  36.     TextDrawUseBox(PublicTD[1], 0);
  37.     TextDrawSetProportional(PublicTD[1], 1);
  38.     TextDrawSetSelectable(PublicTD[1], 0);
  39.  
  40.     PublicTD[2] = TextDrawCreate(269.000000, 404.000000, "combustible:");
  41.     TextDrawFont(PublicTD[2], 3);
  42.     TextDrawLetterSize(PublicTD[2], 0.337500, 1.350000);
  43.     TextDrawTextSize(PublicTD[2], 400.000000, 17.000000);
  44.     TextDrawSetOutline(PublicTD[2], 1);
  45.     TextDrawSetShadow(PublicTD[2], 0);
  46.     TextDrawAlignment(PublicTD[2], 1);
  47.     TextDrawColor(PublicTD[2], 750545407);
  48.     TextDrawBackgroundColor(PublicTD[2], 255);
  49.     TextDrawBoxColor(PublicTD[2], 50);
  50.     TextDrawUseBox(PublicTD[2], 0);
  51.     TextDrawSetProportional(PublicTD[2], 1);
  52.     TextDrawSetSelectable(PublicTD[2], 0);
  53.  
  54.     PublicTD[3] = TextDrawCreate(352.000000, 404.000000, "000");
  55.     TextDrawFont(PublicTD[3], 3);
  56.     TextDrawLetterSize(PublicTD[3], 0.337500, 1.350000);
  57.     TextDrawTextSize(PublicTD[3], 400.000000, 17.000000);
  58.     TextDrawSetOutline(PublicTD[3], 1);
  59.     TextDrawSetShadow(PublicTD[3], 0);
  60.     TextDrawAlignment(PublicTD[3], 1);
  61.     TextDrawColor(PublicTD[3], -1);
  62.     TextDrawBackgroundColor(PublicTD[3], 255);
  63.     TextDrawBoxColor(PublicTD[3], 50);
  64.     TextDrawUseBox(PublicTD[3], 0);
  65.     TextDrawSetProportional(PublicTD[3], 1);
  66.     TextDrawSetSelectable(PublicTD[3], 0);
  67.  
  68.     return 1;
  69. }
  70.  
  71. public OnFilterScriptExit()
  72. {
  73.     TextDrawDestroy(PublicTD[0]);
  74.     TextDrawDestroy(PublicTD[1]);
  75.     TextDrawDestroy(PublicTD[2]);
  76.     TextDrawDestroy(PublicTD[3]);
  77.     return 1;
  78. }
  79.  
  80. public OnPlayerConnect(playerid)
  81. {
  82.     return 1;
  83. }
  84.  
  85. public OnPlayerDisconnect(playerid, reason)
  86. {
  87.     return 1;
  88. }
  89.  
  90. public OnPlayerCommandText(playerid, cmdtext[])
  91. {
  92.     if(!strcmp(cmdtext, "/tdtest", true))
  93.     {
  94.         TextDrawShowForPlayer(playerid, PublicTD[0]);
  95.         TextDrawShowForPlayer(playerid, PublicTD[1]);
  96.         TextDrawShowForPlayer(playerid, PublicTD[2]);
  97.         TextDrawShowForPlayer(playerid, PublicTD[3]);
  98.         return 1;
  99.     }
  100.     return 0;
  101. }
  102.  
RAW Paste Data