MyWeather Command
#1

When i type /myweather it always returns me the message that i have to use: /myweather [wheatherid] ?
pawn Код:
if (strcmp(cmd, "/myweather", true) == 0)
{
    if(pInfo[playerid][VIPlevel] >= 1) {
    new weather;
    if ( sscanf( cmd, "d", weather ) ) return SendClientMessage( playerid, COLOR_WHITE, "Use: {FFFF00}/myweather [weatherid]" );
    if ( ( weather < 0 ) || ( weather > 52 ) ) return SendClientMessage( playerid, COLOR_WHITE, "asd 0 asd 52!" );
    SetPlayerWeather( playerid, weather );
    format( string, sizeof( string ), "asdasdasdas {E60000}%d", weather );
    SendClientMessage( playerid, COLOR_YELLOW, string );
    }
    return 1;
}
Reply


Messages In This Thread
MyWeather Command - by martoivanov - 23.07.2013, 10:50
Re: MyWeather Command - by maxpain43 - 23.07.2013, 10:55
Re: MyWeather Command - by martoivanov - 23.07.2013, 17:37

Forum Jump:


Users browsing this thread: 1 Guest(s)