Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- "-----------------------------------------------------"
- "-----------------------------------------------------"
- "---| Criado por moura98, nao retire os creditos! |---"
- "-----------------------------------------------------"
- "-----------------------------------------------------"
- */
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- #include <a_samp>
- forward atualizar_hora();
- public OnFilterScriptInit()
- {
- print("FS Ligado!");
- SetTimer("atualizar_hora", 1000, true);
- }
- public OnFilterScriptExit()
- {
- print("FS Desligado!");
- }
- public atualizar_hora()
- {
- new hora, minuto, segundo;
- gettime(hora, minuto, segundo);
- switch(hora)
- {
- case 0..4: SetWorldTime(3);
- case 5..10: SetWorldTime(7);
- case 11..15: SetWorldTime(12);
- case 16..18: SetWorldTime(20);
- case 19..23: SetWorldTime(0);
- }
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement