Quote:
Originally Posted by Bicentric
pawn Код:
COMMAND:admins(playerid, params[]) { SendClientMessage(playerid, 0x80FF00FF, "Online admins:"); for(new i; i != GetMaxPlayers(); ++i) { if(IsPlayerConnected(i)) { if(IsPlayerAdmin(i)) { new pName[MAX_PLAYER_NAME], adminsMessage[100], finalMessage[500]; GetPlayerName(playerid, pName, sizeof(pName)); format(adminsMessage, sizeof(adminsMessage), "%s(%d)\n", pName, playerid); strcat(finalMessage, adminsMessage); ShowPlayerDialog(playerid, 1000, DIALOG_STYLE_MSGBOX, "Online Admins", finalMessage, "Okay", ""); } } } return 1; }
Not tested, and works with ZCMD, I can convert it to strcmp if you wish. But it would be easier with messages, here is my somewhat overdone command for my server. Please tell me if it doesn't work so I can fix it for you.
|
I will test it now and I have a reason to do it in a dialog it's because I want to have something different from the other servers.