21.06.2012, 23:52
Quote:
How can I make the weather be set between a number of values given by me? for example I want only 3 weather ID's. 20 15 and 7.
|
pawn Код:
stock RandomNumber(...)
return getarg(random(numarg()));
//use it like
SetTimer("RandomWeather",60000,true); // In OnGameModeInit
forward RandomWeather(); // Outside any other callback
public RandomWeather() // Outside any other callback
{
return SetWeather(RandomNumber(20,15,7));
}