Advertisement
Guest User

Untitled

a guest
Jul 16th, 2018
649
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. #include <a_samp>
  2. /*
  3. ETO VAM PA AKO SLUZI JEBAJGA AKO NE :DD SRECNO ( SANEL SAMPER ON FB )))
  4. */
  5. #define FILTERSCRIPT
  6.  
  7. new Text:SANELVREME, Text:SANELTD;
  8.  
  9. forward VremeTimer(playerid);
  10.  
  11. public VremeTimer(playerid)
  12. {
  13. new string[128],godina,mjesec,dan,sati,minute;
  14. getdate(godina, mjesec, dan), gettime(sati, minute);
  15. format(string, sizeof string, "%d/%s%d/%s%d", dan, ((mjesec < 10) ? ("0") : ("")), mjesec, (godina < 10) ? ("0") : (""), godina);
  16. TextDrawSetString(SANELTD, string);
  17. format(string, sizeof string, "%s%d:%s%d", (sati < 10) ? ("0") : (""), sati, (minute < 10) ? ("0") : (""), minute);
  18. TextDrawSetString(SANELVREME, string);
  19. }
  20.  
  21. public OnFilterScriptInit()
  22. {
  23. SANELVREME = TextDrawCreate(570.500000, 418.319976, "12:24:46");
  24. TextDrawLetterSize(SANELVREME, 0.284499, 1.207999);
  25. TextDrawAlignment(SANELVREME, 1);
  26. TextDrawColor(SANELVREME, 16777215);
  27. TextDrawSetShadow(SANELVREME, 0);
  28. TextDrawSetOutline(SANELVREME, 1);
  29. TextDrawBackgroundColor(SANELVREME, 51);
  30. TextDrawFont(SANELVREME, 3);
  31. TextDrawSetProportional(SANELVREME, 1);
  32. SetTimer("VremeTimer",1000,true);
  33.  
  34. SANELTD = TextDrawCreate(565.500000, 432.320068, "12/12/2018");
  35. TextDrawLetterSize(SANELTD, 0.301999, 1.135200);
  36. TextDrawAlignment(SANELTD, 1);
  37. TextDrawColor(SANELTD, -1);
  38. TextDrawSetShadow(SANELTD, 0);
  39. TextDrawSetOutline(SANELTD, 1);
  40. TextDrawBackgroundColor(SANELTD, 51);
  41. TextDrawFont(SANELTD, 3);
  42. TextDrawSetProportional(SANELTD, 1);
  43. SetTimer("VremeTimer",1000,true);
  44. return 1;
  45. }
  46.  
  47. public OnPlayerSpawn(playerid)
  48. {
  49. TextDrawShowForPlayer(playerid, SANELVREME);
  50. TextDrawShowForPlayer(playerid, SANELTD);
  51. return 1;
  52. }
  53.  
  54. public OnPlayerDisconnect(playerid, reason)
  55. {
  56. TextDrawHideForPlayer(playerid, SANELVREME);
  57. TextDrawHideForPlayer(playerid, SANELTD);
  58. return 1;
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement