Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.40 KB | None | 0 0
  1. //... return name;
  2. }...//
  3. BPF::reloginho()
  4. {
  5. new str[100];
  6. new
  7. ano,
  8. mes,
  9. dia,
  10. horas,
  11. minutos,
  12. segundos;
  13. getdate(ano, mes, dia);
  14. gettime(horas, minutos, segundos);
  15. horas=horas-4;
  16. if(horas>=20)
  17. getdate(ano, mes, dia);dia--;
  18. if(horas<20)
  19. getdate(ano, mes, dia);
  20. if(HV == 4)
  21. {
  22. horas--;
  23. }
  24. if(CH > 0)
  25. {
  26. horas+=CH;
  27. }
  28. if(CM > 0)
  29. {
  30. minutos+=CM;
  31. }
  32. if(CS > 0)
  33. {
  34. segundos+=CS;
  35. }
  36. if(horas > 23)
  37. {
  38. horas = 0;
  39. dia++;
  40. }
  41. format( str, sizeof(str), "~w~%02d:%02d:%02d",horas, minutos, segundos);
  42. TextDrawSetString(Reloginho2, str);
  43. format( str, sizeof str, "~w~%02d/%02d/%d",dia, mes, ano);
  44. TextDrawSetString(Reloginho1, str);
  45. if(horas == 7 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
  46. if(horas == 8 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
  47. if(horas == 13 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
  48. if(horas == 14 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
  49. if(horas == 19 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
  50. if(horas == 20 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
  51. if(horas == 1 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para a Guerra do Morro Começar!"); }
  52. if(horas == 2 && minutos == 0 && segundos == 1) { gIniciarGuerraMorro(); }
  53. if(horas == 4 && minutos == 55 && segundos == 1) { SendClientMessageToAll(COLOR_YELLOW, "[Aviso] Faltam 5 minutos para o Gmx diário se prepare!"); }
  54. if(horas == 5 && minutos == 0 && segundos == 1)
  55. {
  56. MensagemDesligou = 1;
  57. getdate(year, month, day);
  58. new string[128];
  59. format(string, sizeof(string), "AdmCmd: GMX dado as 5 Horas Automatico");
  60. BPFLogs("gmxlog", string);
  61. printf(string);
  62. foreach(Player, i)
  63. {
  64. if(IsPlayerConnected(i))
  65. {
  66. PlayerLogado[i] = 0;
  67. OnPlayerSave(i);
  68. SaveObjects(i);
  69. LogadoSV[i] = 0;
  70. //gPlayerLogged[i] = 0;
  71. }
  72. }
  73. GameModeInitExitFunc();
  74. }
  75. SyncTime();
  76. return true;
  77. }
  78.  
  79. //...static stock ChatAdmin(striing[],nivel)...//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement