Advertisement
Jasit_Legandary

TextDraw อาหารน้ำ

Jul 4th, 2022
1,324
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 6.16 KB | None
  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:BoxFood[6];
  9. new PlayerText:vaulFood[MAX_PLAYERS][2];
  10.  
  11. public OnFilterScriptInit()
  12. {
  13.     BoxFood[0] = TextDrawCreate(595.000000, 330.000000, "_");
  14.     TextDrawFont(BoxFood[0], 1);
  15.     TextDrawLetterSize(BoxFood[0], 0.600000, 1.100003);
  16.     TextDrawTextSize(BoxFood[0], 298.500000, 56.500000);
  17.     TextDrawSetOutline(BoxFood[0], 1);
  18.     TextDrawSetShadow(BoxFood[0], 0);
  19.     TextDrawAlignment(BoxFood[0], 2);
  20.     TextDrawColor(BoxFood[0], -1);
  21.     TextDrawBackgroundColor(BoxFood[0], 255);
  22.     TextDrawBoxColor(BoxFood[0], 255);
  23.     TextDrawUseBox(BoxFood[0], 1);
  24.     TextDrawSetProportional(BoxFood[0], 1);
  25.     TextDrawSetSelectable(BoxFood[0], 0);
  26.  
  27.     BoxFood[1] = TextDrawCreate(595.000000, 349.000000, "_");
  28.     TextDrawFont(BoxFood[1], 1);
  29.     TextDrawLetterSize(BoxFood[1], 0.600000, 1.100003);
  30.     TextDrawTextSize(BoxFood[1], 298.500000, 56.500000);
  31.     TextDrawSetOutline(BoxFood[1], 1);
  32.     TextDrawSetShadow(BoxFood[1], 0);
  33.     TextDrawAlignment(BoxFood[1], 2);
  34.     TextDrawColor(BoxFood[1], -1);
  35.     TextDrawBackgroundColor(BoxFood[1], 255);
  36.     TextDrawBoxColor(BoxFood[1], 255);
  37.     TextDrawUseBox(BoxFood[1], 1);
  38.     TextDrawSetProportional(BoxFood[1], 1);
  39.     TextDrawSetSelectable(BoxFood[1], 0);
  40.  
  41.     BoxFood[2] = TextDrawCreate(577.000000, 332.000000, "_");
  42.     TextDrawFont(BoxFood[2], 2);
  43.     TextDrawLetterSize(BoxFood[2], 0.600000, 0.750002);
  44.     TextDrawTextSize(BoxFood[2], 298.500000, 17.000000);
  45.     TextDrawSetOutline(BoxFood[2], 1);
  46.     TextDrawSetShadow(BoxFood[2], 0);
  47.     TextDrawAlignment(BoxFood[2], 2);
  48.     TextDrawColor(BoxFood[2], -1);
  49.     TextDrawBackgroundColor(BoxFood[2], 255);
  50.     TextDrawBoxColor(BoxFood[2], -16776961);
  51.     TextDrawUseBox(BoxFood[2], 1);
  52.     TextDrawSetProportional(BoxFood[2], 1);
  53.     TextDrawSetSelectable(BoxFood[2], 0);
  54.  
  55.     BoxFood[3] = TextDrawCreate(577.000000, 350.000000, "_");
  56.     TextDrawFont(BoxFood[3], 2);
  57.     TextDrawLetterSize(BoxFood[3], 0.600000, 0.750002);
  58.     TextDrawTextSize(BoxFood[3], 298.500000, 17.000000);
  59.     TextDrawSetOutline(BoxFood[3], 1);
  60.     TextDrawSetShadow(BoxFood[3], 0);
  61.     TextDrawAlignment(BoxFood[3], 2);
  62.     TextDrawColor(BoxFood[3], -1);
  63.     TextDrawBackgroundColor(BoxFood[3], 255);
  64.     TextDrawBoxColor(BoxFood[3], -16776961);
  65.     TextDrawUseBox(BoxFood[3], 1);
  66.     TextDrawSetProportional(BoxFood[3], 1);
  67.     TextDrawSetSelectable(BoxFood[3], 0);
  68.  
  69.     BoxFood[4] = TextDrawCreate(570.000000, 329.000000, "HUD:radar_diner");
  70.     TextDrawFont(BoxFood[4], 4);
  71.     TextDrawLetterSize(BoxFood[4], 0.600000, 2.000000);
  72.     TextDrawTextSize(BoxFood[4], 13.000000, 10.500000);
  73.     TextDrawSetOutline(BoxFood[4], 1);
  74.     TextDrawSetShadow(BoxFood[4], 0);
  75.     TextDrawAlignment(BoxFood[4], 1);
  76.     TextDrawColor(BoxFood[4], -1);
  77.     TextDrawBackgroundColor(BoxFood[4], 255);
  78.     TextDrawBoxColor(BoxFood[4], 50);
  79.     TextDrawUseBox(BoxFood[4], 1);
  80.     TextDrawSetProportional(BoxFood[4], 1);
  81.     TextDrawSetSelectable(BoxFood[4], 0);
  82.  
  83.     BoxFood[5] = TextDrawCreate(570.000000, 348.000000, "HUD:radar_datedrink");
  84.     TextDrawFont(BoxFood[5], 4);
  85.     TextDrawLetterSize(BoxFood[5], 0.600000, 2.000000);
  86.     TextDrawTextSize(BoxFood[5], 13.000000, 10.500000);
  87.     TextDrawSetOutline(BoxFood[5], 1);
  88.     TextDrawSetShadow(BoxFood[5], 0);
  89.     TextDrawAlignment(BoxFood[5], 1);
  90.     TextDrawColor(BoxFood[5], -1);
  91.     TextDrawBackgroundColor(BoxFood[5], 255);
  92.     TextDrawBoxColor(BoxFood[5], 50);
  93.     TextDrawUseBox(BoxFood[5], 1);
  94.     TextDrawSetProportional(BoxFood[5], 1);
  95.     TextDrawSetSelectable(BoxFood[5], 0);
  96.  
  97.     return 1;
  98. }
  99.  
  100. public OnFilterScriptExit()
  101. {
  102.     TextDrawDestroy(BoxFood[0]);
  103.     TextDrawDestroy(BoxFood[1]);
  104.     TextDrawDestroy(BoxFood[2]);
  105.     TextDrawDestroy(BoxFood[3]);
  106.     TextDrawDestroy(BoxFood[4]);
  107.     TextDrawDestroy(BoxFood[5]);
  108.     return 1;
  109. }
  110.  
  111. public OnPlayerConnect(playerid)
  112. {
  113.     vaulFood[playerid][0] = CreatePlayerTextDraw(playerid, 618.000000, 326.000000, "100%");
  114.     PlayerTextDrawFont(playerid, vaulFood[playerid][0], 2);
  115.     PlayerTextDrawLetterSize(playerid, vaulFood[playerid][0], 0.220833, 1.649999);
  116.     PlayerTextDrawTextSize(playerid, vaulFood[playerid][0], 400.000000, 17.000000);
  117.     PlayerTextDrawSetOutline(playerid, vaulFood[playerid][0], 1);
  118.     PlayerTextDrawSetShadow(playerid, vaulFood[playerid][0], 0);
  119.     PlayerTextDrawAlignment(playerid, vaulFood[playerid][0], 3);
  120.     PlayerTextDrawColor(playerid, vaulFood[playerid][0], -1);
  121.     PlayerTextDrawBackgroundColor(playerid, vaulFood[playerid][0], 255);
  122.     PlayerTextDrawBoxColor(playerid, vaulFood[playerid][0], 50);
  123.     PlayerTextDrawUseBox(playerid, vaulFood[playerid][0], 0);
  124.     PlayerTextDrawSetProportional(playerid, vaulFood[playerid][0], 1);
  125.     PlayerTextDrawSetSelectable(playerid, vaulFood[playerid][0], 0);
  126.  
  127.     vaulFood[playerid][1] = CreatePlayerTextDraw(playerid, 618.000000, 345.000000, "100%");
  128.     PlayerTextDrawFont(playerid, vaulFood[playerid][1], 2);
  129.     PlayerTextDrawLetterSize(playerid, vaulFood[playerid][1], 0.220833, 1.649999);
  130.     PlayerTextDrawTextSize(playerid, vaulFood[playerid][1], 400.000000, 17.000000);
  131.     PlayerTextDrawSetOutline(playerid, vaulFood[playerid][1], 1);
  132.     PlayerTextDrawSetShadow(playerid, vaulFood[playerid][1], 0);
  133.     PlayerTextDrawAlignment(playerid, vaulFood[playerid][1], 3);
  134.     PlayerTextDrawColor(playerid, vaulFood[playerid][1], -1);
  135.     PlayerTextDrawBackgroundColor(playerid, vaulFood[playerid][1], 255);
  136.     PlayerTextDrawBoxColor(playerid, vaulFood[playerid][1], 50);
  137.     PlayerTextDrawUseBox(playerid, vaulFood[playerid][1], 0);
  138.     PlayerTextDrawSetProportional(playerid, vaulFood[playerid][1], 1);
  139.     PlayerTextDrawSetSelectable(playerid, vaulFood[playerid][1], 0);
  140.  
  141.     return 1;
  142. }
  143.  
  144. public OnPlayerDisconnect(playerid, reason)
  145. {
  146.     PlayerTextDrawDestroy(playerid, vaulFood[playerid][0]);
  147.     PlayerTextDrawDestroy(playerid, vaulFood[playerid][1]);
  148.     return 1;
  149. }
  150.  
  151. public OnPlayerCommandText(playerid, cmdtext[])
  152. {
  153.     if(!strcmp(cmdtext, "/tdtest", true))
  154.     {
  155.         TextDrawShowForPlayer(playerid, BoxFood[0]);
  156.         TextDrawShowForPlayer(playerid, BoxFood[1]);
  157.         TextDrawShowForPlayer(playerid, BoxFood[2]);
  158.         TextDrawShowForPlayer(playerid, BoxFood[3]);
  159.         TextDrawShowForPlayer(playerid, BoxFood[4]);
  160.         TextDrawShowForPlayer(playerid, BoxFood[5]);
  161.         PlayerTextDrawShow(playerid, vaulFood[playerid][0]);
  162.         PlayerTextDrawShow(playerid, vaulFood[playerid][1]);
  163.         return 1;
  164.     }
  165.     return 0;
  166. }
  167.  
Advertisement
RAW Paste Data Copied
Advertisement