SHARE
TWEET

Untitled

a guest Nov 19th, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <amxmodx>
  2. #include <amxmisc>
  3. #define MAX_GROUPS 24
  4. new g_groupNames[MAX_GROUPS][] = {
  5. "-===== [1] Detinator Server =====-",
  6. "=====- [2] Manager Server =====-",
  7. "=====- [3] Diamond Member+Accese =====-",
  8. "=====- [4] Platinum Member+Accese =====-",
  9. "=====- [5] Gold Member+Accese =====-",
  10. "=====- [6] Silver Member+Accese =====-",
  11. "=====- [7] Bronz Member+Accese =====-",
  12. "=====- [8] Diamond Member =====-",
  13. "=====- [9] Platinum Member =====-",
  14. "=====- [10] Gold Member  =====-",
  15. "=====- [11] Silver Member =====-",
  16. "=====- [12] Bronze Member =====-",
  17. "=====- [13] Owner + V.I.P =====-",
  18. "=====- [14] Owner =====-",
  19. "=====- [15] Co-Owner + V.I.P ====-",
  20. "=====- [16] Co-Owner =====-",
  21. "=====- [18] Administrator + V.I.P =====-",
  22. "=====- [19] Administrator =====-",
  23. "=====- [20] Moderator + V.I.P ====-",
  24. "=====- [21] Moderator =====-",
  25. "=====- [22] Helper =====-",
  26. "=====- [23] V.I.P ====-",
  27. "=====- [24] Slot =====-"
  28.  }
  29.  
  30. new g_groupFlags[MAX_GROUPS][] = {
  31. "abcdefghijklmnpru",
  32. "bcdefghijklmnru",
  33. "bcdefgijkmnpy",
  34. "bcdefijkmnpsq",
  35. "bcdefijkmnpso",
  36. "bcdefijkmnpst",
  37. "bcdefijkmnpsx",
  38. "by",
  39. "bq",
  40. "bo",
  41. "bt",
  42. "bx",
  43. "bcdefgijkmnpr",
  44. "bcdefgijkmnp",
  45. "bcdefijkmnpr",
  46. "bcdefijkmnp",
  47. "bcdefijkmnr",
  48. "bcdefijkmn",
  49. "bcdefijmr",
  50. "bcdefijm",
  51. "bcefij",
  52. "br",
  53. "b"
  54.  }
  55. new g_groupFlagsValue[MAX_GROUPS]
  56. public plugin_init() {
  57. register_plugin("Amx Who by eXtream", "1.0", "eXtreamCS.com")
  58. register_concmd("amx_who", "cmdWho", 0)
  59. register_clcmd("/who", "cmdWho", 0)
  60. register_clcmd("/admins", "cmdWho", 0)
  61. register_clcmd("/admin", "cmdWho", 0)
  62. for(new i = 0; i < MAX_GROUPS; i++) {
  63. g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
  64. }
  65. }
  66. public cmdWho(id) {
  67. new players[32], inum, player, name[32], i, a
  68. get_players(players, inum)
  69. console_print(id, "==================================  FR.PLAYARENA.RO  ==================================")
  70. for(i = 0; i < MAX_GROUPS; i++) {
  71. console_print(id, "-----[%d]%s-----", i+1, g_groupNames[i])
  72. for(a = 0; a < inum; ++a) {
  73. player = players[a]
  74. get_user_name(player, name, 31)
  75. if(get_user_flags(player) == g_groupFlagsValue[i]) {
  76. console_print(id, "%s", name)
  77. }
  78. }
  79. }
  80. console_print(id, "==================================  FR.PLAYARENA.RO  ==================================")
  81. return PLUGIN_HANDLED
  82. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top