Auto Updater..
#5

pawn Код:
forward secondupdater();
public secondupdater()
{
    new hour, minute, second;
    gettime(hour, minute, second);
    for(new i; i < MAX_PLAYERS; i ++)
    {
        if(minute == 60 && second == 0)
        {
            hour++;
            SetPlayerScore(i, GetPlayerScore(i) + 1);
            SetWorldTime(hour);
            if(hour == 24)
            {
                hour = 0;
            }
        }
    }
    printf("Hour: %d, Minutes: %d, Seconds: %d.", hour, minute, second);
    if(minute == 60 && second == 0)
    {
        printf("New Hour: %d.", hour);
    }
    return 1;
}
Reply


Messages In This Thread
Auto Updater.. - by Luis- - 19.07.2011, 12:49
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 12:52
Re: Auto Updater.. - by Luis- - 19.07.2011, 12:58
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 13:25
Re: Auto Updater.. - by Luis- - 19.07.2011, 13:29
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 13:43
Re: Auto Updater.. - by wups - 19.07.2011, 14:47
Re: Auto Updater.. - by Famalamalam - 19.07.2011, 14:49

Forum Jump:


Users browsing this thread: 1 Guest(s)