new ServerWeather; //At the top//When you set the weatherSetWeather(2); //For example 2ServerWeather = 2;//When you change the player's weather backSetPlayerWeather(playerid,ServerWeather);