[Pedido] comando /setempo e time
#3

Aff Tenso e pra setar o tempo ? se for o comando ai
pawn Код:
CMD:setempo(playerid, params[])
{
    new t[10];
    if(!NivelRequerido(playerid, 2)) return 1;
    if(sscanf(params, "s", t)) return MensagemDupla(playerid, "Use /setempo [Manha/Tarde/Noite]", "Use o comando para alterar o tempo do servidor");
    if(strcmp(t, "manha", true) == 0)
    {
        MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para manha", Nome(playerid));
        for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            SetPlayerTime(i, 9, 0);
        }
        SetWorldTime(9);
        return 1;
    }
    if(strcmp(t, "tarde", true) == 0)
    {
        MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para tarde", Nome(playerid));
        for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            SetPlayerTime(i, 14, 0);
        }
        SetWorldTime(14);
        return 1;
    }
    if(strcmp(t, "noite", true) == 0)
    {
        MensagemFormatadaParaTodos(AZUL_CLARO, "O Admin {1B95E0}%s{00C2EC} mudou o tempo para noite", Nome(playerid));
        for(new i = 0; i < MAX_PLAYERS; ++i)
        {
            SetPlayerTime(i, 0, 0);
        }
        SetWorldTime(0);
        return 1;
    }
    Msg(playerid, CINZA, " Use /setempo [Manha/Tarde/Noite]");
    return 1;
}

// o outro comando se vira !
Reply


Messages In This Thread
comando /setempo e time - by lucaskill66 - 07.10.2012, 03:51
Re: comando /setempo e time - by Kon_BR - 07.10.2012, 04:18
Re: comando /setempo e time - by Life Advanced - 07.10.2012, 04:37
Re: comando /setempo e time - by Kon_BR - 07.10.2012, 04:40
Re: comando /setempo e time - by Life Advanced - 07.10.2012, 04:43
Re: comando /setempo e time - by Kon_BR - 07.10.2012, 04:46
Re: comando /setempo e time - by lucaskill66 - 07.10.2012, 04:54
Respuesta: comando /setempo e time - by Luciano* - 07.10.2012, 12:20
Re: comando /setempo e time - by lucaskill66 - 07.10.2012, 20:51
Re: comando /setempo e time - by Schocc - 07.10.2012, 21:15

Forum Jump:


Users browsing this thread: 9 Guest(s)