Help for a command /weather [ID OR NAME]
#1

Hi everybody !

I want to create a command /weather [Weather ID or Weather name] but I don't know how.

I use ZCMD and sscanf.

Example: /weather 16 or /weather rainy

Thanks.
Reply
#2

pawn Код:
if(strcmp(cmdtext, "/weather sun", true) == 0)
    {
        SetPlayerWeather(playerid, 0);
        return 1;
    }
For normal weather, just clouds no rain and sun.

pawn Код:
if(strcmp(cmdtext, "/weather sandstorm", true) == 0)
    {
        SetPlayerWeather(playerid, 19);
        return 1;
    }
etc etc.
Reply
#3

I'm sorry but it's not what I need.

I want to create a ZCMD command with sscanf that you can use '/weather 16' for example and '/weather sunny' with an sscanf function.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)