13.05.2010, 09:05
why my weather change to slow? ex : i type /weather 2 and i have to wait 2 mins then change
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; }