Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2010
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 KB | None | 0 0
  1. //topo:
  2. forward reloginho(playerid);
  3. new Text:Reloginho1;
  4. new Text:Reloginho2;
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. SetTimer("reloginho",1000,1);
  9.  
  10. }
  11. public CriarTextDraws()
  12. {
  13.  
  14. Reloginho1 = TextDrawCreate(525.000000,5.000000,"--");
  15. Reloginho2 = TextDrawCreate(550.000000,23.000000,"--");
  16. TextDrawAlignment(Reloginho1,0);
  17. TextDrawAlignment(Reloginho2,0);
  18. TextDrawBackgroundColor(Reloginho1,0x000000FF);
  19. TextDrawBackgroundColor(Reloginho2,0x000000FF);
  20. TextDrawFont(Reloginho1,2);
  21. TextDrawLetterSize(Reloginho1,0.399999,2.000000);
  22. TextDrawFont(Reloginho2,2);
  23. TextDrawLetterSize(Reloginho2,0.399999,2.000000);
  24. TextDrawColor(Reloginho1,0xCDB79EAA);
  25. TextDrawColor(Reloginho2,0xCDB79EAA);
  26. TextDrawSetProportional(Reloginho1,1);
  27. TextDrawSetProportional(Reloginho2,1);
  28. TextDrawSetShadow(Reloginho1,1);
  29. TextDrawSetShadow(Reloginho2,1);
  30.  
  31. TextDrawSetOutline(Reloginho1,1);
  32. TextDrawSetOutline(Reloginho2,1);
  33. TextDrawShowForAll(Reloginho1);
  34. TextDrawShowForAll(Reloginho2);
  35. }
  36.  
  37. public OnPlayerSpawn(playerid)
  38. {
  39. TextDrawHideForAll(Reloginho1);
  40. TextDrawShowForPlayer(playerid, Reloginho1);
  41. TextDrawHideForAll(Reloginho2);
  42. TextDrawShowForPlayer(playerid, Reloginho2);
  43. return 1;
  44. }
  45. //-----------=================-----------//
  46. public reloginho(playerid)
  47. {
  48. new
  49. string[256],
  50. ano,
  51. mes,
  52. dia,
  53. horas,
  54. minutos,
  55. segundos;
  56. getdate(ano, mes, dia);
  57. gettime(horas, minutos, segundos);
  58. format(string, sizeof string, "%d/%s%d/2009", dia, ((mes < 10) ? ("0") : ("")), mes);
  59. TextDrawSetString(Reloginho1, string);
  60. format(string, sizeof string, "%s%d:%s%d:%s%d", (horas < 10) ? ("0") : (""), horas, (minutos < 10) ? ("0") : (""), minutos, (segundos < 10) ? ("0") : (""), segundos);
  61. TextDrawSetString(Reloginho2, string);
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement