Weather Problem
#1

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;
}
Reply
#2

https://sampwiki.blast.hk/wiki/WeatherID
Reply
#3

there is nothing wrong with the code
try weather id 16 for rain/storms
Reply
#4

Rain and Storm Weather ID(s)

Rain - 8.
SandStorm - 19.
Reply
#5

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.
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)