TheWolf Posted December 17, 2014 Posted December 17, 2014 (edited) Se pare ca nu mai am nevoie de acest script si m-am gandit sa vi-l daruiesc voua Acesta schimba automat vremea odata la: 1 minut 2 minute 3 minute 4 minute 5 minute 10 minute 20 minute Este foarte bun pentru serverele RPG #include <a_samp> #define FILTERSCRIPT #if defined FILTERSCRIPT forward WeatherAndTime(); // id timp new const RandomWorldTime[24][1] = { {0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15},{16},{17},{18},{19},{20},{21},{22},{23} }; // Id vreme new const RandomWeather[11][1] = { {1},{2},{3},{4},{5},{7},{8},{9},{10},{15},{16} }; public OnFilterScriptInit() { print("n---------------------------------------------------------------"); print(" Script incarcat"); print("---------------------------------------------------------------n"); //Timer SetTimer("WeatherAndTime", 900000, true); //60000 - 1 minute //120000 - 2 minute //180000 - 3 minute //240000 - 4 minute //300000 - 5 minute //500000 - 10 minute //900000 - 20 minute return 1; } public OnFilterScriptExit() { print(" Crysty's Automatic Weather and Time unloaded."); return 1; } public WeatherAndTime() { new rwt = random(sizeof RandomWorldTime); SetWorldTime(RandomWorldTime[rwt][0]); new rw = random(sizeof RandomWeather); SetWeather(RandomWeather[rw][0]); SendClientMessageToAll(0xFFFFFF, "{CCFF00}Meteo: {FFFFFF}Weather and time updated.{FF3366} Every 20 minutes the weather will change");// Sends a message every ten minutes to all players. } #endif Edited December 17, 2014 by ★ єXэ ★ 1
BadboyUndeadArmy Posted December 17, 2014 Posted December 17, 2014 Bun.Dupa prima impresie pare destul de folositor!
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now