[Tutorial] How to make Random weather.
#10

Quote:
Originally Posted by HeLiOn_PrImE
Посмотреть сообщение
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.
im not sure who made this simple stock but i know it was not me

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));
}
Reply


Messages In This Thread
How to make Random weather. - by Tee - 05.02.2011, 15:23
Re: How to make Random weather. - by Ockad - 05.02.2011, 18:29
Re: How to make Random weather. - by [03]Garsino - 05.02.2011, 18:31
Re: How to make Random weather. - by Antonio [G-RP] - 05.02.2011, 18:32
Re: How to make Random weather. - by Ockad - 05.02.2011, 18:34
Re: How to make Random weather. - by [03]Garsino - 05.02.2011, 18:36
Re: How to make Random weather. - by Ockad - 05.02.2011, 18:37
Re: How to make Random weather. - by Tee - 05.02.2011, 18:48
Re: How to make Random weather. - by HeLiOn_PrImE - 19.06.2012, 10:08
Re: How to make Random weather. - by Jonny5 - 21.06.2012, 23:52

Forum Jump:


Users browsing this thread: 3 Guest(s)