SA-MP Forums Archive
Hello. Where i can find Example :/w 1-20 ( /w=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: Hello. Where i can find Example :/w 1-20 ( /w=weather) (/showthread.php?tid=302297)



Hello. Where i can find Example :/w 1-20 ( /w=weather) - ProdrifterX - 08.12.2011

`` tnx!
[postedited]


Re: Hello. Where i can find Example :/w 1-20 ( /w=weather) - [MG]Dimi - 08.12.2011

Why not making it with zcmd?

pawn Код:
CMD:w(playerid,params[])
{
    new id;
    if(sscanf(params,"i",id)) return SendClientMessage(playerid,-1,"Usage: /w [1-14]");
    if(id < 1 || id > 14) return SendClientMessage(playerid,-1,"Usage: /w [1-14]");
    SetPlayerWeather(playerid,id);
    return 1;
}
it's much easier. Also you don't have to check is it 1, then is it 2 etc. just put weather variable inside SetPlayerWeather.