20.04.2013, 20:57
pawn Код:
command(admins, playerid) {
static count = 0, msg[46];
for (new i = GetMaxPlayers(); i != -1; --i) {
if (IsPlayerConnected(i) && pInfo[i][Administrador] == true) {
format(msg, sizeof(msg), "Administrador Online: %s", pName(i));
SendClientMessage(playerid, Branco, msg);
count ++;
}
}
if (count == 0) return SendClientMessage(playerid, Verde, "Nenhum Administrador Online");
return 1;
}