[Ajuda] /Admins
#2

pawn Код:
new
    admins_avaiable,
    adm_name [ MAX_PLAYER_NAME ],
    str_text [ 128 ];

SendClientMessage ( playerid, -1, "Administradores Disponнveis:");

for ( new s = GetMaxPlayers ( ), i; i < s; i ++ )
{
    if ( IsPlayerConnected ( i ) || i != INVALID_PLAYER_ID )
    {
        if ( /*Variбvel administrativa do jogador*/[ i ] > 0 )
        {
            admins_avaiable++;
            GetPlayerName ( i, adm_name, MAX_PLAYER_NAME );
            format ( str_text, sizeof str_text, "%s", adm_name );
            SendClientMessage ( playerid, -1, str_text );
        }
    }
}

if ( admins_avaiable == 0 )
    return SendClientMessage ( playerid, -1, "Nenhum" );
Reply


Messages In This Thread
/Admins - by clerISoN - 15.05.2013, 03:30
Re: /Admins - by Lуs - 15.05.2013, 04:08

Forum Jump:


Users browsing this thread: 3 Guest(s)