SA-MP Forums Archive
weather question - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: weather question (/showthread.php?tid=147590)



weather question - iJumbo - 13.05.2010

why my weather change to slow? ex : i type /weather 2 and i have to wait 2 mins then change


Re: weather question - ViruZZzZ_ChiLLL - 13.05.2010

Uhhhhh, I have never had a problem with
my /weather like that So, show us the code
please


Re: weather question - iJumbo - 13.05.2010

same as /rcon commands .... is not a command problem but i show

Код:
dcmd_setweather(playerid, params[])
{
  if(!CmdLevelCheck(playerid,"setweather")) return CmdLevelError(playerid,"setweather");
  new id,weather,string[128];
  if(sscanf(params, "ud", id,weather)) return SendClientMessage(playerid, RED, "USAGE: /SETWEATHER [NICK / ID] [WEATHERID]");
  format(string,sizeof(string),"Administrator %s have set your weather to %d",AdminName(playerid),weather);
  SendClientMessage(id,YELLOW,string);
  format(string,sizeof(string),"You have set %s his weather to %d",Name(id),weather);
  SendClientMessage(playerid,YELLOW,string);
  SetPlayerWeather(id,weather);
	return 1;
}