07.11.2010, 15:08
Maybe you forgot something, I'll make you a new one, just follow the tutorial!
1. add
2. search "enum pinfo" and then add:
3. go on "ongamemodeinit" and add
4. go on at the end of Scripts and add
This code is on croatian language,easily translate If there is something not good to say.
SORRY FOR MY BAD ENGLISH!
1. add
Код:
forward RandomWeather();
Код:
enum weather_info { wt_id, wt_text[255] }; new gRandomWeatherIDs[][weather_info] = { {1,"Plavo nebo"}, {2,"Plavo nebo"}, {3,"Plavo nebo"}, {7,"Plavo nebo"}, {8,"Oluja"}, {9,"Hladno i maglovito"}, {10,"Čisto Plavo nebo"}, {11,"Vrućina"}, {12,"Normalno,Suncano"}, {16,"Kiљovito"} };
Код:
SetTimer("RandomWeather", 600000, 1);
Код:
public RandomWeather() { new rand = random(sizeof(gRandomWeatherIDs)); new strout[256]; format(strout, sizeof(strout), "Vremenska prognoza: Vrijeme ce biti %s", gRandomWeatherIDs[rand][wt_text]); SetWeather(gRandomWeatherIDs[rand][wt_id]); SendClientMessageToAll(COLOR_LIGHTGREEN,strout); print(strout); }
SORRY FOR MY BAD ENGLISH!