Advertisement
Peppery

adminzz

Feb 27th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. public OnPlayerCommandText(playerid, cmdtext[])
  2.  
  3. {
  4. dcmd(admins, 6, cmdtext);
  5. return 0;
  6. }
  7.  
  8. dcmd_admins(playerid, params[])
  9. {
  10. SendClientMessage(playerid, COLOR_YELLOW, "Online admins:");
  11. new chose;
  12. for(new i=0;i<MAX_PLAYERS;i++)
  13. {
  14. if(PInfo[i][Level] > 1)
  15. {
  16. new name[60], string[100];
  17. GetPlayerName(i, name, 60);
  18. format(string, 100, "%s[%i] Level: %i", name, i, PInfo[i][Level]);
  19. SendClientMessage(playerid, COLOR_WHITE, string);
  20. chose = 1;
  21. }
  22. }
  23. if(chose == 0)
  24. {
  25. SendClientMessage(playerid, COLOR_WHITE, "No administrators online!");
  26. }
  27. return 1;
  28. #pragma unused params
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement