25.07.2013, 14:29
Como fasso pra esse comando /admins fica em dialog ?
pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
{
SendClientMessage(playerid, 0x96D742AA, "Administradores Online:");
for(new i=0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerAdmin(i))
{
if(admin[i] == false)
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(i, nome, sizeof(nome));
format(string, sizeof(string), "Admin: %s (%d)", nome, i);
SendClientMessage(playerid, 0xFFFFFFAA, string);
count[playerid]++;
}
}
}
}
if(count[playerid] == 0)
{
SendClientMessage(playerid, 0xFFFFFFAA, "Nгo existe nenhum administrador conectado no momento!");
}
return 1;
}