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

`` tnx!
[postedited]
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)