30.10.2012, 20:28
How i can make a script wich i can change after 9 PM to evening weather?
static Minute, Second;
static Minute, Second; forward SecondTimer();
SetTimer("SecondTimer", 1000, 1);
public SecondTimer() { Second++; if(Second == 60) { Second = 0; Minute++; if(Minute == 21) // It's 9 PM { SetWeather(3); // Your weather ID } if(Minute == 24) { Minute = 0; } } return 1; }
SetPlayerTime(playerid, Minute, Second);