Advertisement
RiseAboveHate

Untitled

Mar 20th, 2015
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. YCMD:admins(playerid, params[], help)
  2. {
  3. new ACount = 0;
  4. format(Str, sizeof(Str), "");
  5. for(new i; i < MAX_PLAYERS; i++)
  6. {
  7. if(IsPlayerConnected(i) && PFile[i][pHaveAdmin] != 0 && PFile[i][pAdminInv] == 0)
  8. {
  9. format(Str, sizeof(Str), "%s {FFFF00}%d. {FFFFFF}%s [ID: %d | Level:%d]\n", Str, PFile[i][pName], i, PFile[i][pAdminLevel]);
  10. ACount++;
  11. ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, " אדמינים מחוברים ", Str, "אישור", "");
  12. }
  13. }
  14. if(!ACount) return ShowPlayerDialog(playerid, DIALOG_ADMINS, DIALOG_STYLE_MSGBOX, "אדמינים מחוברים", "אין אדמינים מחוברים", "אישור", "");
  15. return 1;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement