14.11.2008, 17:41
pawn Код:
new Weather, str[12];
forward ChangeWeather();
public OnFilterScriptInit()
return SetTimer("ChangeWeather", 60000, 1);
public ChangeWeather()
{
if(Weather < 23)
Weather++;
else
Weather = 0;
format(str, 12, weather %d", Weather);
SendRconCommand(str);
for(new i = 0; i < GetMaxPlayers(); i++)
if(IsPlayerConnected(i))
SetPlayerTime(i, Weather, 00);
return 1;
}