20.10.2011, 19:09
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;
}