Guest User

Untitled

a guest
Nov 12th, 2016
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. if(strcmp(cmd, "/admins", true) == 0 || strcmp(cmd, "/supporter", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. SendClientMessage(playerid, 0xAFAFAFAA, "Admins/Supporter Online:");
  6. for(new i = 0; i < MAX_PLAYERS; i++)
  7. {
  8. if(IsPlayerConnected(i))
  9. {
  10. GetPlayerName(i, sendername, sizeof(sendername));
  11. switch(PlayerInfo[i][pSupporter])
  12. {
  13. case 1:format(string,sizeof(string),"Probe.Supporter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  14. case 2:format(string,sizeof(string),"Supporter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  15. }
  16. switch(PlayerInfo[i][pAdmin])
  17. {
  18. case 1:format(string,sizeof(string),"Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  19. case 2:format(string,sizeof(string),"Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  20. case 3:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  21. case 4:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  22. case 5:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  23. case 6:format(string,sizeof(string),"Super-Moderator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  24. case 1337:format(string,sizeof(string),"Administrator: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  25. case 1338:format(string,sizeof(string),"High-Admin: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  26. case 2000:format(string,sizeof(string),"Stv.Serverleiter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  27. case 2001:format(string,sizeof(string),"Serverleiter: %s || Reports: %d",sendername,PlayerInfo[i][pReports]);
  28. }
  29. SendClientMessage(playerid, 0xAFAFAFAA, string);
  30. }
  31. }
  32. }
  33. return 1;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment