15.05.2013, 04:08
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" );