Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- forward AutoWeather();
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- SetTimer("AutoWeather", 60000, 1);
- return 1;
- }
- public OnFilterScriptExit()
- {
- KillTimer(AutoWeather);
- return 1;
- }
- #else
- main()
- {
- print("\n----------------------------------");
- print(" Automatic Weather System By Ciandlah");
- print("----------------------------------\n");
- }
- public AutoWeather()
- {
- new rand = random(15);
- new string[256];
- format(string, sizeof(string), "Server Note: The weather ID has been change to %d, please wait an hour before the next weather switch.", rand);
- SendClientMessageToAll(-1, string);
- SetWeather(rand);
- return 1;
- }
- #endif
Advertisement
Add Comment
Please, Sign In to add comment