[Ajuda] 2 Duvidas :)
#1

Galera tenho 2 Dъvidas e vou fazer em um sу tуpico

1- Queria saber se existe algum sistema ou como fazer que se o Player erra o RCON 3 vezes ele й kickado.

2- Queria um /admins, que quando digitado aparecia o seguinte



Nomes dos Adm's On
Precisa de Ajuda? Digite aqui!
Enviar - Cancelar

Quando Um player digitasse alguma coisa la apareceria a todos os Administradores OnLine.

____Ajuda Admin____
Player: Nome do Player aqui.
Duvida: Duvida do Player aqui
____Ajuda Admin____

Meu comando /admins se ajudar.
pawn Код:
CMD:admins(playerid, params[])
{
    // Setup local variables
    new AdminList[2000], Name[24], Adm;

    // Check if the player has logged in
    if (APlayerData[playerid][LoggedIn] == true)
    {
        // Scan through all players
        for (new i; i < MAX_PLAYERS; i++)
        {
            // Check if this player is connected
            if (IsPlayerConnected(i))
            {
                // Get the name of the player
                GetPlayerName(i, Name, sizeof(Name));
                //Check if that player is an admin (using the PlayerLevel)
                if (APlayerData[i][PlayerLevel] >= 1)
                {
                    // Add all admin players to the list
                    Adm++;
                    format(AdminList, sizeof(AdminList), "%s{FFFFFF} {ff0000}%s {FFFFFF} %s (ID:%i){00FF00} [Level: %i]{999999}: {999999}(Tempo conectado: {FFFFFF}%s{999999})\n", AdminList,AdminLevelName[APlayerData[i][PlayerLevel]], Name, i, APlayerData[i][PlayerLevel], Convert(APlayerData[i][TempoConectado])); // Add the name of the admin-player to the list
                }
            }
        }
        // Check if there were admin-names added to the list
        if (strlen(AdminList) > 0)
        {
            format(AdminList, sizeof(AdminList), "%s\n{00FF00}%d {FFFFFF}Administradores {999999}", AdminList, Adm);
            ShowPlayerDialog(playerid, DialogNoResponse, DIALOG_STYLE_MSGBOX, "{00FF00}ж {FFFFFF}Administradores online:", AdminList, "Fechar", "");
        }
        else
            SendClientMessage(playerid, -1, "» {999999}Os {FFFFFF}administradores {999999}do servidor estгo offline no {00FF00}momento!"); // No admins are online
    }
    else
        return false;

    // Let the server know that this was a valid command
    return true;
}
Reply


Messages In This Thread
2 Duvidas :) - by GHLEMES - 21.06.2014, 19:48
Re: 2 Duvidas :) - by WLSF - 21.06.2014, 19:57
Re: 2 Duvidas :) - by Alwe - 21.06.2014, 20:08
Re: 2 Duvidas :) - by PT - 21.06.2014, 20:09

Forum Jump:


Users browsing this thread: 2 Guest(s)