Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward HoraEnPunto();
- public HoraEnPunto() //Payday()
- {
- new hora, minuto, segundo;
- gettime(hora, minuto, segundo);
- if(minuto == 0)
- {
- if(EnHora == 1) { EnHora = 0; return 0; }
- EnHora=1;
- if(hora == 0 || hora == 12) { ReabastecerNegocios(); }
- SetWorldTime(hora+6);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(!IsPlayerConnected(i) || PlayerInfo[i][pJugando] == 0) continue;
- if(hora > 24)
- format(string, 128, "HORA DEL SERVIDOR: [%d:00]", hora+6);
- SendClientMessage(i, Blanco, string);
- if(PlayerInfo[i][pMinuto] >= 20)
- {
- ComprobarHambre(i);
- ComprobarNivel(i);
- ComprobarContrato(i);
- Abstinencia(i);
- format(string, 128, "Tu personaje %s ha sido guardado correctamente a las %d:%d0", pName(i), hora+6, minuto);
- SendClientMessage(i, Verde, string);
- }
- Sueldo(i);
- }
- return 1;
- }
- EnHora=0;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement