Advertisement
OtKashix

Untitled

Oct 23rd, 2021 (edited)
1,148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.73 KB | None | 0 0
  1. enum Jugadores{
  2.     Nombre,
  3.     Float:Posicion[3],
  4.     bool:Registro,
  5.     Skin,
  6.     Float:Vida,
  7.     Float:Chaleco,
  8.     Dinero,
  9.     Banco,
  10.     Nivel,
  11.     Exp,
  12.     Trabajo,
  13.     Permiso,
  14.     bool:Conectado
  15. };
  16. new Jugador[MAX_PLAYERS][Jugadores];
  17.  
  18. SetTimerEx("givePayday", 1000 * 60 * 10, true, "i", Jugador);
  19.  
  20. forward givePayday(jgd); // Line 161
  21. public givePayday(jgd)
  22. {
  23.     new time[3];
  24.     new hours, minutes, seconds;
  25.     gettime(time[0],time[1],time[2]);
  26.  
  27.     hours = time[0];
  28.     minutes = time[1];
  29.     seconds = time[2];
  30.     if(hours >= 0 && hours <= 24){
  31.         if(minutes >= 0 && minutes <= 10){
  32.             // Código dar dinero a todos
  33.             for(new i = 0; i < sizeof(jgd); i++)
  34.             {
  35.                 GivePlayerMoney(jgd[i][Nombre], 750); // Line 176
  36.             }
  37.  
  38.         }
  39.     }
  40.     return 1;
  41. }; // Line 182
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement