Weather Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Weather Problem (
/showthread.php?tid=371061)
Weather Problem -
kbalor - 22.08.2012
It only change the time not the weather. Example If try /weather 31 it's black but no storm/rain or any calamity. I've also try other weather still same.
pawn Код:
CMD:myweather( playerid, params[ ] )
{
new weather;
if( sscanf( params, "i", weather ) ) return SendClientMessage( playerid, 0xFFFFFFFF, "{FFFF00}Usage: /setweather <0-45>" );
if( weather > 45 || weather < 0 ) return SendClientMessage( playerid, 0xFFFFFFFF, "{FF0000}Error: Available Weathers: 0-45" );
SetPlayerWeather(playerid,weather);
return 1;
}
Re: Weather Problem -
[MWR]Blood - 22.08.2012
https://sampwiki.blast.hk/wiki/WeatherID
Re: Weather Problem - HuSs3n - 22.08.2012
there is nothing wrong with the code
try weather id 16 for rain/storms
Re: Weather Problem -
Akira297 - 22.08.2012
Rain and Storm Weather ID(s)
Rain - 8.
SandStorm - 19.
Re: Weather Problem -
kbalor - 22.08.2012
Thanks for your reply guys + rep to all! cookies time!
EDIT: Why If I do /time there is a time appearing? but I did not put any code for that.
Re: Weather Problem -
Babul - 22.08.2012
do you have the clock enabled? if so, the weather will need 1 (real) minute to "snap in" (at a full hour:00) - its the smooth transitions which got introduced some years ago..
TogglePlayerClock(playerid,1); when spawning does the job.
if the clock is showing, and you want immediate weatherchanges to happen (in /weather), then try setting the weather twice, or set the playerclock after
SetPlayerWeather