ScoreTimer
#1

Anyone know how to set this to 1 hour = 1 score?

Код:
#define SCORE_TIME          60 * 3
pawn Код:
forward ScoreTimer();
public ScoreTimer()
{
    new pTime[4];
    for(new i; i < MAX_PLAYERS; i++)
    {
        TotalGameTime(i, pTime[0], pTime[1], pTime[2]);
        pTime[3] = (pTime[0] * 3600) + (pTime[1] * 60) + pTime[2];
        if((pTime[3] - LastConnected[i]) == SCORE_TIME)
        {
            SetPlayerScore(i, GetPlayerScore(i) + 1);
            LastConnected[i] = pTime[3];
        }
    }
    return 1;
}
Reply


Messages In This Thread
ScoreTimer - by kbalor - 11.08.2012, 20:07
Re: ScoreTimer - by FalconX - 11.08.2012, 20:17
Re: ScoreTimer - by kbalor - 11.08.2012, 20:31
Re: ScoreTimer - by FalconX - 11.08.2012, 20:38
Re: ScoreTimer - by kbalor - 11.08.2012, 21:09
Re: ScoreTimer - by FalconX - 11.08.2012, 21:10

Forum Jump:


Users browsing this thread: 1 Guest(s)