Advertisement
Guest User

Untitled

a guest
Aug 30th, 2015
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. forward HoraEnPunto();
  2. public HoraEnPunto() //Payday()
  3. {
  4. new hora, minuto, segundo;
  5. gettime(hora, minuto, segundo);
  6. if(minuto == 0)
  7. {
  8. if(EnHora == 1) { EnHora = 0; return 0; }
  9. EnHora=1;
  10. if(hora == 0 || hora == 12) { ReabastecerNegocios(); }
  11. SetWorldTime(hora+6);
  12. for(new i = 0; i < MAX_PLAYERS; i++)
  13. {
  14. if(!IsPlayerConnected(i) || PlayerInfo[i][pJugando] == 0) continue;
  15. if(hora > 24)
  16. format(string, 128, "HORA DEL SERVIDOR: [%d:00]", hora+6);
  17. SendClientMessage(i, Blanco, string);
  18. if(PlayerInfo[i][pMinuto] >= 20)
  19. {
  20. ComprobarHambre(i);
  21. ComprobarNivel(i);
  22. ComprobarContrato(i);
  23. Abstinencia(i);
  24. format(string, 128, "Tu personaje %s ha sido guardado correctamente a las %d:%d0", pName(i), hora+6, minuto);
  25. SendClientMessage(i, Verde, string);
  26. }
  27. Sueldo(i);
  28. }
  29. return 1;
  30. }
  31. EnHora=0;
  32. return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement