Custura

Untitled

Jul 2nd, 2017
149
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.06 KB | None | 0 0
  1. /// DATE - TIME start
  2.  
  3. new Text:Time, Text:Date;
  4.  
  5. new string[256];
  6. new year,month,day,hours,minutes,seconds;
  7. getdate(year, month, day), gettime(hours, minutes, seconds);
  8. format(string, sizeof string, "%d/%s%d/%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year);
  9. TextDrawSetString(Date, string);
  10. format(string, sizeof string, "%s%d:%s%d", (hours < 10) ? ("0") : (""), hours, (minutes < 10) ? ("0") : (""), minutes, (seconds < 10) ? ("0") : (""), seconds);
  11. TextDrawSetString(Time, string);
  12.  
  13. Date = TextDrawCreate(542.000061, 4.960021,"--");
  14. TextDrawFont(Date,1);
  15. TextDrawLetterSize(Date,0.367999, 1.525333);
  16. TextDrawColor(Date,-16777279);
  17. TextDrawSetShadow(Date, 1);
  18. TextDrawSetOutline(Date, 1);
  19.  
  20. Time = TextDrawCreate(499.200073, 4.400056,"--");
  21. TextDrawFont(Time,3);
  22. TextDrawLetterSize(Time,0.417999, 2.086044);
  23. TextDrawColor(Time,-16777279);
  24. TextDrawSetShadow(Time, 1);
  25. TextDrawSetOutline(Time, 1);
  26.  
  27. OnPlayerSpawn
  28. TextDrawShowForPlayer(playerid, Time);
  29. TextDrawShowForPlayer(playerid, Date);
  30.  
  31. /// DATE - TIME end
  32.  
  33. /// PlayerNameTD start
  34.  
  35. new PlayerText: PlayerNameTD[MAX_PLAYERS][1];
  36.  
  37. PlayerNameTD[playerid][0] = CreatePlayerTextDraw(playerid, 90, 317.833343, "Player");
  38. PlayerTextDrawLetterSize(playerid, PlayerNameTD[playerid][0], 0.298666, 1.309628);
  39. PlayerTextDrawAlignment(playerid, PlayerNameTD[playerid][0], 2);
  40. PlayerTextDrawColor(playerid, PlayerNameTD[playerid][0], 0x2685A4FF);
  41. PlayerTextDrawSetShadow(playerid, PlayerNameTD[playerid][0], 0);
  42. PlayerTextDrawSetOutline(playerid, PlayerNameTD[playerid][0], 1);
  43. PlayerTextDrawBackgroundColor(playerid, PlayerNameTD[playerid][0], 255);
  44. PlayerTextDrawFont(playerid, PlayerNameTD[playerid][0], 1);
  45. PlayerTextDrawSetProportional(playerid, PlayerNameTD[playerid][0], 1);
  46. PlayerTextDrawSetShadow(playerid, PlayerNameTD[playerid][0], 0);
  47.  
  48. OnPlayerSpawn
  49. new strname[256];
  50. foreach (new i : Player)
  51. {
  52. format(strname, sizeof(strname), "%s (%d)", GetName(i), i);
  53. PlayerTextDrawSetString(i, PlayerNameTD[i][0], strname);
  54. PlayerTextDrawShow(i, PlayerNameTD[i][0]);
  55. }
  56.  
  57. /// PlayerNameTD end
  58.  
  59. /// Galactic - Terra start
  60.  
  61. new Text:galhud_Global[4];
  62.  
  63. galhud_Global[0] = TextDrawCreate(51.054183, 328.833251, "-");
  64. TextDrawLetterSize(galhud_Global[0], 6.516544, 0.969999);
  65. TextDrawAlignment(galhud_Global[0], 1);
  66. TextDrawColor(galhud_Global[0], 255);
  67. TextDrawSetShadow(galhud_Global[0], 1);
  68. TextDrawSetOutline(galhud_Global[0], 2);
  69. TextDrawBackgroundColor(galhud_Global[0], 255);
  70. TextDrawFont(galhud_Global[0], 2);
  71. TextDrawSetProportional(galhud_Global[0], 1);
  72. TextDrawSetShadow(galhud_Global[0], 1);
  73.  
  74. galhud_Global[1] = TextDrawCreate(49.648620, 310.749816, "-");
  75. TextDrawLetterSize(galhud_Global[1], 6.516544, 0.969999);
  76. TextDrawAlignment(galhud_Global[1], 1);
  77. TextDrawColor(galhud_Global[1], 255);
  78. TextDrawSetShadow(galhud_Global[1], 1);
  79. TextDrawSetOutline(galhud_Global[1], 2);
  80. TextDrawBackgroundColor(galhud_Global[1], 255);
  81. TextDrawFont(galhud_Global[1], 2);
  82. TextDrawSetProportional(galhud_Global[1], 1);
  83. TextDrawSetShadow(galhud_Global[1], 1);
  84.  
  85. galhud_Global[2] = TextDrawCreate(548, 21, "GALACTIC");
  86. TextDrawLetterSize(galhud_Global[2], 0.335812, 1.279165);
  87. TextDrawAlignment(galhud_Global[2], 1);
  88. TextDrawColor(galhud_Global[2], -1);
  89. TextDrawSetShadow(galhud_Global[2], 1);
  90. TextDrawSetOutline(galhud_Global[2], 1);
  91. TextDrawBackgroundColor(galhud_Global[2], 255);
  92. TextDrawFont(galhud_Global[2], 1);
  93. TextDrawSetProportional(galhud_Global[2], 1);
  94. TextDrawSetShadow(galhud_Global[2], 1);
  95.  
  96. galhud_Global[3] = TextDrawCreate(566, 30, "TERRA");
  97. TextDrawLetterSize(galhud_Global[3], 0.335812, 1.279165);
  98. TextDrawAlignment(galhud_Global[3], 1);
  99. TextDrawColor(galhud_Global[3], 0x2685A4FF);
  100. TextDrawSetShadow(galhud_Global[3], 1);
  101. TextDrawSetOutline(galhud_Global[3], 1);
  102. TextDrawBackgroundColor(galhud_Global[3], 255);
  103. TextDrawFont(galhud_Global[3], 3);
  104. TextDrawSetProportional(galhud_Global[3], 1);
  105. TextDrawSetShadow(galhud_Global[3], 1);
  106.  
  107. // Galactic - TERRA end
Advertisement
Add Comment
Please, Sign In to add comment