24.03.2014, 11:00
pawn Код:
new hrs, min, sec;
forward StartTime();
public StartTime()
{
sec++;
if(sec == 60)
{
min++;
sec = 0;
}
if(min == 60)
{
hrs++;
mins = 0;
sec = 0;
}
if(hrs == 24)
{
hrs = 0;
min = 0;
sec = 0;
}
if(hrs == this)// your time
{
//your codes
}
return 1;
}
public OnGamemodeInit()
{
SetTimer("StartTime", 1000, 1);
return 1;
}