02.05.2013, 15:35
eae galera vim pedir uma coisinha pra vcs й transformar meu /admins em dialogo pff!!!
pawn Код:
CMD:admins(playerid, params[])
{
new tot;
SendClientMessage(playerid, 0x99FF00AA, "***Admininstradores Onlines***");
loop(i, MAX_PLAYERS) {
if (IsPlayerConnected(i)) {
if (PlayerInfo[i][AdminLevel] >= 1) {
new PlayerName[MAX_PLAYER_NAME];
GetPlayerName(i, PlayerName, sizeof(PlayerName));
tot++;
format(szString, sizeof(szString), "* Admin %s(%d) (Nivel: %d) (%s)", PlayerName, i, PlayerInfo[i][AdminLevel], GetLevelAdmin(i));
SendClientMessage(playerid, 0x99FF00AA, szString);
}
}
}
if (tot == 0) {
SendClientMessage(playerid, 0x99FF00AA, "Nгo hб admins online");
}
else {
format(szString, sizeof(szString), "Hб ~~ %d ~~ Admins online..", tot);
SendClientMessage(playerid, 0x99FF00AA, szString);
}
return 1;
}