[Ajuda] Comando nгo surte efeito
#2

Tenta este ...

pawn Код:
COMMAND:admins(playerid, params[])
{
    new AdminList[500], Name[24], s[100];
    SendAdminText(playerid, "/admins", params);
    if (APlayerData[playerid][LoggedIn] == true)
    {
        for (new i; i < MAX_PLAYERS; i++)
        {
            GetPlayerName(i, Name, sizeof(Name));
            if (APlayerData[i][PlayerLevel] > 0 && IsPlayerConnected(i))
            {
                format(AdminList, 500, "%s%s: %s (id: %i), Level de admin: %i\n", AdminList, AdminLevelName[APlayerData[i][PlayerLevel]], Name, i, APlayerData[i][PlayerLevel]);
                strcat(s, AdminList);
            }
        }
        if (strlen(AdminList) > 0)
            ShowPlayerDialog(playerid, DialogNoResponse, DIALOG_STYLE_MSGBOX, "Admins Online:", s, "OK", " ");
        else SendClientMessage(playerid, 0xFF0000FF, "[TCB] Nгo tem admins online!");
    }
    return 1;
}
Reply


Messages In This Thread
Comando nгo surte efeito - by duuuwh - 04.03.2013, 05:17
Re: Comando nгo surte efeito - by mau.tito - 04.03.2013, 08:43
Re: Comando nгo surte efeito - by duuuwh - 04.03.2013, 14:29
Re: Comando nгo surte efeito - by feliphemort - 04.03.2013, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)