[Ajuda] Clima/Tempo
#2

pawn Код:
if(strcmp(cmd, "/tempo", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] < 1337)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "   Vocк nгo esta autorizado a usar este comando!");
                return true;
            }
            if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1341)
            {
                SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/jogar)");
                return true;
            }
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_WHITE, "USE: /tempo [tempo id]");
                return true;
            }
            new name[MAX_PLAYER_NAME];
            GetPlayerName(playerid, name, sizeof(name));
            new weather;
            weather = strval(tmp);
            if(weather < 0||weather > 45) { SendClientMessage(playerid, COLOR_GREY, "   Tempo id de 0 ~ 45 !"); return true; }
            SetWeather(weather);
            SendClientMessage(playerid, COLOR_GREY, "Tempo setado!");
        }
        return true;
    }
Tente isso e me avise por favor!
Reply


Messages In This Thread
Clima/Tempo - by ArT_DsL - 23.01.2013, 11:28
Re: Clima/Tempo - by NuTShoT - 23.01.2013, 12:02
Respuesta: Clima/Tempo - by ArT_DsL - 23.01.2013, 12:27
Re: Clima/Tempo - by lucasbjs0 - 23.01.2013, 12:29
Respuesta: Clima/Tempo - by ArT_DsL - 23.01.2013, 12:33
Re: Clima/Tempo - by lucasbjs0 - 23.01.2013, 12:48
Respuesta: Clima/Tempo - by ArT_DsL - 23.01.2013, 19:16
Respuesta: Clima/Tempo - by ArT_DsL - 23.01.2013, 21:26
Re: Clima/Tempo - by bombomloko - 23.01.2013, 21:36
Respuesta: Clima/Tempo - by ArT_DsL - 23.01.2013, 23:10

Forum Jump:


Users browsing this thread: 1 Guest(s)