Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- dcmd(admins, 6, cmdtext);
- return 0;
- }
- dcmd_admins(playerid, params[])
- {
- new chose;
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- if(PInfo[i][Level] > 0)
- {
- new aname[60], astring[100];
- GetPlayerName(i, aname, sizeof(aname));
- format(astring, sizeof(astring), "%s[%i] Level: %i", aname, i, PInfo[i][Level]);
- strcat(astring, sizeof(astring));
- chose = 1;
- ShowPlayerDialog(playerid, 236, DIALOG_STYLE_MSGBOX, "Online Admins List", string, "Close", "");
- }
- }
- }
- if(chose == 0)
- {
- ShowPlayerDialog(playerid, 236, DIALOG_STYLE_MSGBOX, "Online Admins List", "No Administrators Online!", "Close", "");
- }
- return 1;
- #pragma unused params
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement