27.06.2013, 05:44
whats the problem with that ?
though ur code can be shortened:
add Time() in ongamemodeinit;
like
though ur code can be shortened:
pawn Код:
public Time()
{
new hour,minute,second;
gettime(hour,minute,second);
FixHour(hour);
hour = shifthour;
if( hour >= 24 ) SetWorldTime(0);
else SetWorldTime(hour);
SetWeather(random(18));
}
like
pawn Код:
public OnGameModeInit()
{
Time();//will call the function
}