rendered paste body#include <a_samp>new intown[256];new LS=9;new SF=1;new LV=8;new Selo=0;forward WeatherTimer();//------------------------------------------------------------------------------public OnFilterScriptInit(){ print("LALA"); SetTimer("WeatherTimer", 1000, 1); return 1;}//------------------------------------------------------------------------------public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z){ new Float:oldposx, Float:oldposy, Float:oldposz; new Float:tempposx, Float:tempposy, Float:tempposz; GetPlayerPos(playerid, oldposx, oldposy, oldposz); tempposx = (oldposx -x); tempposy = (oldposy -y); tempposz = (oldposz -z); if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) { return 1; } return 0;}//------------------------------------------------------------------------------public WeatherTimer(){ for(new i=0; i<256; i++) { if(PlayerToPoint(1400, i, 1620.0000, -1545.0000, 96.5041)) //LS { intown[i] = 0; } else { if(PlayerToPoint(1000, i, -2220.0000, 525.0000, 181.4907)) //SF { intown[i] = 1; } else { if(PlayerToPoint(1200, i, 1950.0000, 1845.0000, 89.00000)) //LV { intown[i] = 2; } else { intown[i] = 3; } } } switch(intown[i]) { case 0: SetPlayerWeather(i, LS); //LS case 1: SetPlayerWeather(i, SF); //SF case 2: SetPlayerWeather(i, LV); //LV case 3: SetPlayerWeather(i, Selo); //Selo } } return 1;}//------------------------------------------------------------------------------