Advertisement
Guest User

FS tempo real

a guest
Jul 15th, 2016
1,259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. /*
  2. "-----------------------------------------------------"
  3. "-----------------------------------------------------"
  4. "---| Criado por moura98, nao retire os creditos! |---"
  5. "-----------------------------------------------------"
  6. "-----------------------------------------------------"
  7. */
  8. #define FILTERSCRIPT
  9. #if defined FILTERSCRIPT
  10.  
  11. #include <a_samp>
  12. forward atualizar_hora();
  13.  
  14. public OnFilterScriptInit()
  15. {
  16. print("FS Ligado!");
  17. SetTimer("atualizar_hora", 1000, true);
  18. }
  19. public OnFilterScriptExit()
  20. {
  21. print("FS Desligado!");
  22. }
  23. public atualizar_hora()
  24. {
  25. new hora, minuto, segundo;
  26. gettime(hora, minuto, segundo);
  27. switch(hora)
  28. {
  29. case 0..4: SetWorldTime(3);
  30. case 5..10: SetWorldTime(7);
  31. case 11..15: SetWorldTime(12);
  32. case 16..18: SetWorldTime(20);
  33. case 19..23: SetWorldTime(0);
  34. }
  35. }
  36.  
  37. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement