PayDay system
#2

You need a one second timer in which you'll do something like this:


pawn Код:
SetTimer("OneSecondTimer", 1000, 1);

public OneSecondTimer()
{
      for(new i = 0; i < MAX_PLAYERS; i++)
      {
            if(IsPlayerConnected(i))
            {  
                 PlayerInfo[i][pPayDayTime]++;
                 if(PlayerInfo[i][pPayDayTime] >= 60)
                 {
                     GivePlayerMoney(i, 200);
                     PlayerInfo[i][pPayDayTime] = 0;
                 }
            }
      }
}
And u will need to save the seconds inside players ini file.
Reply


Messages In This Thread
PayDay system - by PaulDinam - 26.09.2012, 18:11
Re: PayDay system - by Cypress - 26.09.2012, 18:28
Re: PayDay system - by PaulDinam - 26.09.2012, 18:30
Re: PayDay system - by Cypress - 26.09.2012, 18:35
Re: PayDay system - by PaulDinam - 26.09.2012, 18:44
Re: PayDay system - by Cypress - 26.09.2012, 18:45
Re: PayDay system - by PaulDinam - 26.09.2012, 19:31

Forum Jump:


Users browsing this thread: 5 Guest(s)