Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2020
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. #include <a_samp>
  2. #include <core>
  3. #include <float>
  4.  
  5. new glob0;
  6.  
  7. new Text:glob4[137];
  8.  
  9. new glob228;
  10.  
  11. new glob22C;
  12.  
  13.  
  14. public OnFilterScriptInit()
  15. {
  16. print("\n--------------------------------------");
  17. print(" Zaman Ve Tarih Sistemi Acilmistir ! By : Craxs");
  18. print("--------------------------------------\n");
  19. SetTimer("settime", 1000, true);
  20. glob4 = TextDrawCreate(576.2675, 13.8185, glob228);
  21. TextDrawLetterSize(glob4, 0.2759, 1.4091);
  22. TextDrawAlignment(glob4, 2);
  23. TextDrawColor(glob4, 0xFFFFFFFF);
  24. TextDrawSetShadow(glob4, 0);
  25. TextDrawSetOutline(glob4, 1);
  26. TextDrawBackgroundColor(glob4, 0x000000FF);
  27. TextDrawFont(glob4, 3);
  28. TextDrawSetProportional(glob4, true);
  29. TextDrawSetShadow(glob4, 0);
  30. glob0 = TextDrawCreate(576.4006, 25.0185, glob22C);
  31. TextDrawLetterSize(glob0, 0.5126, 2.5519);
  32. TextDrawAlignment(glob0, 2);
  33. TextDrawColor(glob0, 0xFFFFFFFF);
  34. TextDrawSetShadow(glob0, 0);
  35. TextDrawSetOutline(glob0, 1);
  36. TextDrawBackgroundColor(glob0, 0x000000FF);
  37. TextDrawFont(glob0, 3);
  38. TextDrawSetProportional(glob0, true);
  39. TextDrawSetShadow(glob0, 0);
  40. return 1;
  41. }
  42.  
  43. public OnFilterScriptExit()
  44. {
  45. print("\n-----------------------------------------------------");
  46. print(" Zaman Ve Tarih Sistemi Kapanmistir ! By : Craxs");
  47. print("-----------------------------------------------------/n");
  48. return 1;
  49. }
  50.  
  51. public OnPlayerSpawn(playerid)
  52. {
  53. TextDrawShowForPlayer(playerid, glob4);
  54. return 1;
  55. }
  56.  
  57. public OnPlayerDisconnect(playerid, reason)
  58. {
  59. TextDrawHideForPlayer(playerid, glob4);
  60. return 1;
  61. }
  62.  
  63. public settime()
  64. {
  65. new var0[256], var1 = 0, var2 = 0, var3 = 0, var4 = 0, var5 = 0;
  66. gettime(var4, var5, 0);
  67. format(var0, 256, "%d/%s%d/%s%d", var3, (var2 < 10 ? 1252 : 1260), var2, (var1 < 10 ? 1264 : 1272), var1);
  68. TextDrawSetString(glob4, var0);
  69. format(var0, 256, "%s%d:%s%d", (var4 < 10 ? 1316 : 1324), var4, (var5 < 10 ? 1328 : 1336), var5);
  70. TextDrawSetString(glob0, var0);
  71. return 0;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement