#define TIME_SECOND // Comment it (write two '/' to the front of this line)
//------------------------------------------------------------------------------
//This is the weather changer's interval (how often change the weather)
#define TIME_SECOND // If you defined this, it means you give the interval in SECONDS, not MILISECONDS.
// #define TIME_MILISEC // If you defined this, it means you give the interval in MILISECONDS, not SECONDS.
#define wtime 5 // If you defined TIME_SECOND, you have to put this interval in SECONDS, not MILISECONDS.
//This is the weather changer's interval (how often change the weather)
//------------------------------------------------------------------------------
//
// More lines after...
//
//
public WeatherChanger()
{
SendRconCommand("weather 0");
#if defined TIME_MILISEC
SetTimer("Weather3",wtime,0);
#endif
#if defined TIME_SECOND
SetTimer("Weather3",wtime*1000,0);
#endif
return 1;
}
//------------------------------------------------------------------------------
//This is the weather changer's interval (how often change the weather)
#define TIME_SECOND // If you defined this, it means you give the interval in SECONDS, not MILLISECONDS.
#define wtime 300 // If you defined TIME_SECOND, you have to put this interval in SECONDS, not MILLISECONDS.
//This is the weather changer's interval (how often change the weather)
//------------------------------------------------------------------------------
//
//
// More lines after...
//
//
public WeatherChanger()
{
SendRconCommand("weather 0");
#if defined TIME_SECOND
SetTimer("Weather3",wtime*1000,0);
#else
SetTimer("Weather3",wtime,0);
#endif
return 1;
}
//------------------------------------------------------------------------------ //This is the weather changer's interval (how often change the weather) #define TIME_SECOND // If you defined this, it means you give the interval in SECONDS, not MILISECONDS. // #define TIME_MILISEC // If you defined this, it means you give the interval in MILISECONDS, not SECONDS. #define wtime 5 // If you defined TIME_SECOND, you have to put this interval in SECONDS, not MILISECONDS. //This is the weather changer's interval (how often change the weather) //------------------------------------------------------------------------------ More lines after... #if defined TIME_MILISEC SetTimer("Weather3",wtime,0); #endif #if defined TIME_SECOND SetTimer("Weather3",wtime*1000,0); #endif |
//------------------------------------------------------------------------------ //This is the weather changer's interval (how often change the weather) #define TIME_SECOND // If you defined this, it means you give the interval in SECONDS, not MILLISECONDS. #define wtime 300 // If you defined TIME_SECOND, you have to put this interval in SECONDS, not MILLISECONDS. //This is the weather changer's interval (how often change the weather) //------------------------------------------------------------------------------ More lines after... #if defined TIME_SECOND SetTimer("Weather3",wtime*1000,0); #else SetTimer("Weather3",wtime,0); #endif |
Originally Posted by 3xPloSioNxXx
Very nice
|
Originally Posted by Roxan_Almighty
this would be really good for RP server's! Well done!
|