Advertisement
Guest User

sld

a guest
Jan 30th, 2009
797
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.67 KB | None | 0 0
  1. /*
  2.     [FS]Reloginho feito por [CCV]saalada[]
  3.     [Horas/Minutos/Segundos] - [Dia/Mκs/Ano]
  4.     Por favor, nγo retire os Creditos!!
  5. */
  6. #include <a_samp>
  7. //-----------=================-----------//
  8. forward reloginho(playerid);
  9. new Text:Reloginho1;
  10. new Text:Reloginho2;
  11. //-----------=================-----------//
  12. public OnFilterScriptInit()
  13. {
  14.     print("//////////////////////////////////////////");
  15.     print("// |-------|         [FS]Reloginho      //");
  16.     print("// |       |                            //");
  17.     print("// |  _|   |           Created by       //");
  18.     print("// |       |         [CCV]saalada[]     //");
  19.     print("// |-------|                            //");
  20.     print("//////////////////////////////////////////");
  21.    
  22.     SetTimer("reloginho",1000,1);
  23.    
  24.     Reloginho1 = TextDrawCreate(525.000000,5.000000,"--");
  25.     Reloginho2 = TextDrawCreate(550.000000,23.000000,"--");
  26.     TextDrawAlignment(Reloginho1,0);
  27.     TextDrawAlignment(Reloginho2,0);
  28.     TextDrawBackgroundColor(Reloginho1,0x000000FF);
  29.     TextDrawBackgroundColor(Reloginho2,0x000000FF);
  30.     TextDrawFont(Reloginho1,2);
  31.     TextDrawLetterSize(Reloginho1,0.399999,2.000000);
  32.     TextDrawFont(Reloginho2,2);
  33.     TextDrawLetterSize(Reloginho2,0.399999,2.000000);
  34.     TextDrawColor(Reloginho1,0xFFFFFFFF);
  35.     TextDrawColor(Reloginho2,0xFFFFFFFF);
  36.     TextDrawSetProportional(Reloginho1,1);
  37.     TextDrawSetProportional(Reloginho2,1);
  38.     TextDrawSetShadow(Reloginho1,1);
  39.     TextDrawSetShadow(Reloginho2,1);
  40.    
  41.     TextDrawSetOutline(Reloginho1,1);
  42.     TextDrawSetOutline(Reloginho2,1);
  43.     TextDrawShowForAll(Reloginho1);
  44.     TextDrawShowForAll(Reloginho2);
  45.     return 1;
  46. }
  47. //-----------=================-----------//
  48. public OnFilterScriptExit()
  49. {
  50.     TextDrawDestroy(Reloginho1);
  51.     TextDrawDestroy(Reloginho2);
  52.     TextDrawHideForAll(Reloginho1);
  53.     TextDrawHideForAll(Reloginho2);
  54.    
  55.     print("[FS]Reloginho foi deslogado com Sucesso! :)");
  56.     return 1;
  57. }
  58. //-----------=================-----------//
  59. public OnPlayerSpawn(playerid)
  60. {
  61.     TextDrawHideForAll(Reloginho1);
  62.     TextDrawShowForPlayer(playerid, Reloginho1);
  63.     TextDrawHideForAll(Reloginho2);
  64.     TextDrawShowForPlayer(playerid, Reloginho2);
  65.     return 1;
  66. }
  67. //-----------=================-----------//
  68. public reloginho(playerid)
  69. {
  70.     new
  71.         string[256],
  72.         ano,
  73.         mes,
  74.         dia,
  75.         horas,
  76.         minutos,
  77.         segundos;
  78.     getdate(ano, mes, dia);
  79.     gettime(horas, minutos, segundos);
  80.     format(string, sizeof string, "%d/%s%d/2009", dia, ((mes < 10) ? ("0") : ("")), mes);
  81.     TextDrawSetString(Reloginho1, string);
  82.     format(string, sizeof string, "%s%d:%s%d:%s%d", (horas < 10) ? ("0") : (""), horas, (minutos < 10) ? ("0") : (""), minutos, (segundos < 10) ? ("0") : (""), segundos);
  83.     TextDrawSetString(Reloginho2, string);
  84. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement