14.02.2015, 09:53
First of all this is not a FS, these are just commands.
Secondly, It is very poorly scripted. The commands can be made in one command like:
Anyway not bad for your 2nd FS.
Secondly, It is very poorly scripted. The commands can be made in one command like:
pawn Код:
CMD:weather(playerid,params[])
{
new str[128];
if(!strlen(params)) return SendClientMessage(playerid, -1, "Use /weather [0-20].");
if(strval(params) < 0 || strval(params) > 20) return SendClientMessage(playerid, -1, "Use /weather [0-20].");
format(str, 128, "Your weather has been changed to ID %d.", strval(params));
SendClientMessage(playerid, -1, str);
SetPlayerWeather(playerid, strval(params));
return 1;
}