[Ajuda] Criar comando /admins e /report?
#2

pawn Код:
CMD:admins(playerid) {

    new i, str[55], strDialog[500], Cont = 0, Nome[MAX_PLAYER_NAME];
   
    for ( i = 0; i < MAX_PLAYERS; ++i) {
   
        if ( IsPlayerConnected(i) && PlayerInfo[i][pAdmin] != 0 ) {
       
            GetPlayerName(i, Nome, MAX_PLAYER_NAME);
            format (str, sizeof str, "%s - Administrador nнvel %d\n", Nome, PlayerInfo[i][pAdmin] );
            strcat(strDialog, str);
            Cont++;
        }
    }
   
    if ( Cont == 0)
        ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Administradores online!", "Nгo hб administradores online!", "Fechar", #);
    else
        ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Administradores online!", strDialog, "Fechar", #);
       
    return 1;
}
Sobre o report й basicamente isso.
Reply


Messages In This Thread
Criar comando /admins e /report? - by LucaAllexandre - 07.01.2014, 13:19
Re: Criar comando /admins e /report? - by Gii - 07.01.2014, 13:26
Re: Criar comando /admins e /report? - by LucaAllexandre - 07.01.2014, 13:29
Re: Criar comando /admins e /report? - by Gii - 07.01.2014, 13:30
Re: Criar comando /admins e /report? - by LucaAllexandre - 07.01.2014, 13:36
Re: Criar comando /admins e /report? - by Gii - 07.01.2014, 13:49
Re: Criar comando /admins e /report? - by GodsAndMonsters - 07.01.2014, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)