26.09.2012, 18:28
You need a one second timer in which you'll do something like this:
And u will need to save the seconds inside players ini file.
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;
}
}
}
}