Advertisement
artyom_triodin1

REAL_TIME FOR SAmp

Oct 16th, 2014
306
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. new Text:T;
  4.  
  5. #if defined FILTERSCRIPT
  6.  
  7. #endif
  8.  
  9. forward TI(playerid);
  10.  
  11. public TI(playerid)
  12. {
  13. new h, m, str[64];
  14. gettime(h, m);
  15. format(str, sizeof(str), "%02d:%02d", h, m);
  16. TextDrawSetString(T, str);
  17. return 1;
  18. }
  19.  
  20. public OnFilterScriptInit()
  21. {
  22. SetTimer("TI", 1000, true);
  23. return 1;
  24. }
  25.  
  26. public OnPlayerConnect(playerid)
  27. {
  28. T = TextDrawCreate(607.0, 27.0, " ");
  29. TextDrawFont(T, 3);
  30. TextDrawSetOutline(T, 2);
  31. TextDrawColor(T, 0x00FFFFFF);
  32. TextDrawAlignment(T, 3);
  33. TextDrawLetterSize(T, 0.6, 1.5);
  34. TextDrawShowForPlayer(playerid, T);
  35. return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement