SA-MP Forums Archive
/weather - 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 (/showthread.php?tid=366405)



/weather - Dare Devil..... - 06.08.2012

HOW can I make a /weather command in YCMD it a player /weather ID
weather changed for every one.


Re: /weather - Cjgogo - 06.08.2012

pawn Код:
YCMD:weather(playerid,params[])
{
    new wID;
    if(sscanf(params,"d",wID)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/weather [ID]");
    else
    {
          SetWeather(wID);
          SendClientMessage(playerid,COLOR_GREEN,"Weather succesfully changed for all!!!");
    }
  return 1;
}