Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:admins(playerid, params[], help)
- {
- new ACount = 0;
- format(Str, sizeof(Str), "");
- for(new i; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && PFile[i][pHaveAdmin] != 0 && PFile[i][pAdminInv] == 0)
- {
- format(Str, sizeof(Str), "%s {FFFF00}%d. {FFFFFF}%s [ID: %d | Level:%d]\n", Str, PFile[i][pName], i, PFile[i][pAdminLevel]);
- ACount++;
- ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, " אדמינים מחוברים ", Str, "אישור", "");
- }
- }
- if(!ACount) return ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "אדמינים מחוברים", "אין אדמינים מחוברים", "אישור", "");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement