Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #tryinclude <a_samp>
- #define function::%0(%1) forward %0(%1); public %0(%1)
- public OnFilterScriptInit()
- {
- print("© Copyright Lucas Vinícius & Willian Luigi/Developers\n"),print("Sistema de Tempo @ThunderGamesBR\n"),SetTimer("RealTimeClock", 60000, 1);
- return 0b1;
- }
- function::RealTimeClock()
- {
- new horas, minutos, segundos, sInfo[40], sFormat[128];
- gettime(horas, minutos, segundos);
- if(!minutos)
- {
- new i = 0b0;
- while (++i != GetMaxPlayers())
- {
- if(IsPlayerConnected(i)) SetPlayerTime(i, horas, 0b0);
- }
- switch(horas)
- {
- case 0b0, 0b1: sInfo = "Tenha um bom inicio de madrugada, boa diversão !";
- case 0b10 .. 0b101: sInfo = "Tenha uma boa madrugada, boa diversão !";
- case 0b110 .. 0b1011: sInfo = "Bom dia, boa diversão !";
- case 0b1100 .. 0b1110: sInfo = "Tenha um Bom inicio da tarde, boa diversão !";
- case 0b1111 .. 0b10010: sInfo = "Boa tarde, boa diversão !";
- case 0b10011 .. 0b10111: sInfo = "Boa Noite, boa diversão !";
- }
- format(sFormat, 128, "* São %02dhrs, %s *", sInfo);
- SendClientMessageToAll(0x0080FFAA, sFormat);
- }
- return 0b1;
- }
Advertisement
Add Comment
Please, Sign In to add comment