#define COLOR_LIGHTBLUE 0x33CCFFAA
#define RWTime 60000*3
new Weather;
native SetTimer(funcname[],interval,repeating);
forward RandomWeather();
public RandomWeather()
{
Weather = random(20);
SetWeather(Weather);
switch(Weather)
{
case 0:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 1:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Moderate Sunny Skies [Visibility]:High [Winds]:NA [Clouds]:Moderate");
case 2:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies [Visibility]:High [Winds]:NA [Clouds]:Moderate");
case 3:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies [Visibility]:High [Winds]:NA [Clouds]:Moderate");
case 4:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 5:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 7:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 8:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Wet Rainy Weather |[Visibility]:Medium |[Winds]:Moderate |[Clouds]:Heavy");
case 9:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Thick Fog |[Visibility]:Low |[Winds]:Moderate |[Clouds]:Heavy");
case 10:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Moderate Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 11:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: HeatWave |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 12:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Hazy/Dull Weather |[Visibility]:Moderate |[Winds]:NA |[Clouds]:High");
case 13:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Hazy/Dull Weather |[Visibility]:Moderate |[Winds]:NA |[Clouds]:High");
case 14:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Hazy/Dull Weather |[Visibility]:Moderate |[Winds]:NA |[Clouds]:High");
case 15:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Heavy RainStorm |[Visibility]:Low |[Winds]:Very High |[Clouds]: very Thick");
case 16:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");
case 17:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");
case 18:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");
case 19:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sand Storm |[Visibility]:Very-Low |[Winds]: High Speed Winds |[Clouds]:Heavy");
case 20:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Toxic Green Smog |[Visibility]:Low |[Winds]:Moderate |[Clouds]:Heavy");
}
}
Weather = random(20);
SetPlayerWeather(i,Weather);
switch(Weather)
{
case 0:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 1:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Moderate Sunny Skies [Visibility]:High [Winds]:NA [Clouds]:Moderate");
case 2:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies [Visibility]:High [Winds]:NA [Clouds]:Moderate");
case 3:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies [Visibility]:High [Winds]:NA [Clouds]:Moderate");
case 4:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 5:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 7:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 8:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Wet Rainy Weather |[Visibility]:Medium |[Winds]:Moderate |[Clouds]:Heavy");
case 9:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Thick Fog |[Visibility]:Low |[Winds]:Moderate |[Clouds]:Heavy");
case 10:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Moderate Sunny Skies |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 11:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: HeatWave |[Visibility]:High |[Winds]:NA |[Clouds]:Moderate");
case 12:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Hazy/Dull Weather |[Visibility]:Moderate |[Winds]:NA |[Clouds]:High");
case 13:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Hazy/Dull Weather |[Visibility]:Moderate |[Winds]:NA |[Clouds]:High");
case 14:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Hazy/Dull Weather |[Visibility]:Moderate |[Winds]:NA |[Clouds]:High");
case 15:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Heavy RainStorm |[Visibility]:Low |[Winds]:Very High |[Clouds]: very Thick");
case 16:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");
case 17:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");
case 18:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Scorching Hot Bright Weather |[Visibility]:High |[Winds]:NA |[Clouds]:Low");
case 19:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Sand Storm |[Visibility]:Very-Low |[Winds]: High Speed Winds |[Clouds]:Heavy");
case 20:SendClientMessageToAll(COLOR_LIGHTBLUE,"METAR INFO: [Current Weather]: Toxic Green Smog |[Visibility]:Low |[Winds]:Moderate |[Clouds]:Heavy");
forward RandomWeather();
public RandomWeather()
{
Weather = random(20);
SetPlayerWeather(i,Weather);
This looks like something which has been stripped. You haven't even explained anything in detail.
|
new Weather;
Weather = random( 20 );
SetWeather( Weather );
switch ( Weather )
{
case 0 : SendClientMessageToAll( );
// ...
}
pawn Code:
|