Playing Hour System?
#9

pawn Код:
SetTimer("Time", 60000, true); //gamemodeinit.
public Time()
{
    new hour, minute, second; // variables
    gettime(hour, minute, second); // current time
    foreach(Player, i) //loops through all the players
    {
        SetPlayerTime(i, hour, minute); //set game time.
        PlayerInfo[i][pTime]++; //+1 minute
        SetPlayerScore(i, floatround(CharInfo[i][cTime] / 60, floatround_floor)); // updating score (shows in hours)
    }
    return 1;
}
I use this, but it works on minutes, not hours.
Reply


Messages In This Thread
Playing Hour System? - by seanny - 20.10.2011, 18:02
Re: Playing Hour System? - by grand.Theft.Otto - 20.10.2011, 18:07
Re: Playing Hour System? - by seanny - 20.10.2011, 18:54
Re: Playing Hour System? - by Stigg - 20.10.2011, 18:55
Re: Playing Hour System? - by seanny - 20.10.2011, 18:56
Re: Playing Hour System? - by Macluawn - 20.10.2011, 19:03
Re: Playing Hour System? - by grand.Theft.Otto - 20.10.2011, 19:04
Re: Playing Hour System? - by seanny - 20.10.2011, 19:05
Re: Playing Hour System? - by Macluawn - 20.10.2011, 19:09
Re: Playing Hour System? - by seanny - 20.10.2011, 19:13

Forum Jump:


Users browsing this thread: 2 Guest(s)