[inchis] Cerere plugin /who

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Locked
_.m!NNimaL.[;x]
Membru, skill +1
Membru, skill +1
Posts: 212
Joined: 28 Jun 2012, 12:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 4 times
Contact:

07 Dec 2013, 09:43

Salut, as vrea si eu un plugin cand scri in chat /who sau /admins sa apara o lista cu admini :D

Detinator - abcdefghijklmnopqrstu
Staff - abcdegfhijmnopqrst
Owner+Vip - bcdefijmnopqrst
God+Vip - bcdefijmnopqrt
Moderator - bcdefijmnor
Administrator - bcefijmnor
Helper - bcefojmr
Slot - b
V.I.P - t

Multumesc.
Image
User avatar
Adventx
Membru, skill +4
Membru, skill +4
Posts: 1785
Joined: 17 Sep 2013, 20:44
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 125 times
Been thanked: 142 times
Contact:

07 Dec 2013, 09:46

| Afiseaza codul
#include <amxmodx>
#include <amxmisc>

#define MAX_GROUPS 9

new g_groupNames[MAX_GROUPS][] = {
"Detinator",
"Staff",
"Owner+Vip",
"God+Vip",
"Moderator",
"Administrator",
"Helper",
"Slot",
"V.I.P"
}
new g_groupFlags[MAX_GROUPS][] = {
"abcdefghijklmnopqrstu",
"abcdegfhijmnopqrst",
"bcdefijmnopqrst",
"bcdefijmnopqrt",
"bcdefijmnor",
"bcefijmnor",
"bcefojmr",
"b",
"t"
}

new g_groupFlagsValue[MAX_GROUPS]

public plugin_init() {
  register_plugin("Amx Who", "1.0", "Author")
  register_concmd("amx_who", "cmdWho", 0)
  for(new i = 0; i < MAX_GROUPS; i++) {
    g_groupFlagsValue = read_flags(g_groupFlags)
  }
}

public cmdWho(id) {
  new players[32], inum, player, name[32], i, a
  get_players(players, inum)
  console_print(id, "==========")
  for(i = 0; i < MAX_GROUPS; i++) {
    console_print(id, "-----[%d]%s-----", i+1, g_groupNames)
    for(a = 0; a < inum; ++a) {
      player = players[a]
      get_user_name(player, name, 31)
      if(get_user_flags(player) == g_groupFlagsValue) {
        console_print(id, "%s", name)
      }
    }
  }
  console_print(id, "------")
  return PLUGIN_HANDLED
}
User avatar
sUperstar
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3324
Joined: 01 Mar 2013, 23:08
Detinator Steam: Da
Reputatie: Restrictie moderator [abuz de functie]
Fost eXtream mod
Utilizator neserios (tepar!)
Has thanked: 41 times
Been thanked: 97 times

08 Dec 2013, 19:42

2.1. Nu mai cereti pluginuri din lista de mai jos:
○ pluginuri de tip slowhack
○ pluginuri de tip redirect
amx_who
RIPPLE FAUCET - Castiga pana la 1 Ripple pe zi!
Locked

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 19 guests