Люксоровский с уменьшением идов погоды до 21
[code]#include <a_samp> new allowedweather[21] = {
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
public OnGameModeInit()
{
SetTimer("Weather",900000,1);
return 1;
}
forward Weather();
public Weather()
{
new wid = allowedweather[random(21)];
SetWeather(wid);
printf("[DEBUG] Weather have been changed to [%d]",wid);
return 1;
}[code]
Добавлено (27.11.2008, 12:12)
---------------------------------------------
[/pwn]
#include <a_samp>
new allowedweather[21] = {
0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20};
public OnGameModeInit()
{
SetTimer("Weather",900000,1);
return 1;
}
forward Weather();
public Weather()
{
new wid = allowedweather[random(21)];
SetWeather(wid);
printf("[DEBUG] Weather have been changed to [%d]",wid);
return 1;
}
[pwn]