Jump to content

Welcome to XtreamPlay # România Sience 2020

Guest Image

 

Hello and welcome to XtreamPlay # România Sience 2020, we wish you a great time on our forum! Also reminding you that to have full benefits on our community, please sign up an account by pressing the "Sign Up" button. If you already have an account just log in using the specific button in this section.


Sign in to follow this  
Kpone

Plugin amx_who + vip inclus

Recommended Posts

Descriere: Deci , stiu ca toti cautati o rezolvare la o anumita problema : daca adaug vip (cu flag) la cineva , sau daca scot flagu de vip acces de la cineva , acesta nu va mai aparea in who. Sau alta chestie : daca am pluginu de VIP FREE pornit pe server , nu vor mai aparea gradele adminilor calumea , deoarece pe server s-a pus default flag pe "t" de exemplu.. AM REZOLVAREA CHIAR AICI!!
Descarcare:  Asa , deci sa incepem (sa explicam pasii pe care i-am facut odata cu creearea acestui plugin)

#include <amxmodx>
    #define MAX_GROUPS 10
    
new g_groupNames[MAX_GROUPS][] = { //aici se afla numele fiecarui grad
"[1]  => Fondator <=",
"[2]  => Owner <=",
"[3]  => Co-Owner <=",
"[4]  => God <=",
"[5]  => Super-Moderator <=",
"[6]  => Moderator <=",
"[7]  => Administrator <=",
"[8]  => Helper <=",
"[9]  => V.I.P <=",
"[10] => Slot <="
}
    new g_groupFlags[MAX_GROUPS][] = { //aici se afla flagurile doar pentru admine , fara flag-ul t (flag-ul t este cel mai folosit pentru VIP ACCES , eu l-am luat ca exemplu pe acesta).
    "abcdefghijklmnopqrsu",
    "abcdefghijkmnopqrsu",
    "abcdefgijmnopqrsu",
    "abcdefgijmnopqrs",
    "abcdefgijmnopqr",
    "abcdefijmnopq",
    "bcdefijmno",
    "bcefijmno",
    "bt",
    "b"
}
    new g_groupFlagsVIP[MAX_GROUPS][] = { //aici este creeat grupul de flaguri pentru admine+ flagul t. vip acces
    "abcdefghijklmnopqrsut",
    "abcdefghijkmnopqrsut",
    "abcdefgijmnopqrsut",
    "abcdefgijmnopqrst",
    "abcdefgijmnopqrt",
    "abcdefijmnopqt",
    "bcdefijmnot",
    "bcefijmnot",
    "bt",
    "bt"
}
       new g_groupFlagsValue[MAX_GROUPS]
   new g_groupFlagsValueVIP[MAX_GROUPS] //am creeat un nou grup pe care pluginul trebuie sa il citeasca
    public plugin_init() 
{
       register_plugin("ultimate_who", "2.0", "CS.UDP.RO")
   register_clcmd("say /who","cmdWho")
       for(new i = 0; i < MAX_GROUPS; i++) 
 {
   g_groupFlagsValue = read_flags(g_groupFlags)
   g_groupFlagsValueVIP = read_flags(g_groupFlagsVIP) //citeste flagurile adminelor + vip
     }
}
    public cmdWho(id) 
{
   new players[32], inum, player, name[32], i, a
   get_players(players, inum)
   console_print(id, "-------------------------------")
   console_print(id, "=========ADMINS ONLINE=========")
   console_print(id, "-------------------------------")
   for(i = 0; i < MAX_GROUPS; i++) 
      {
   console_print(id, "-%s-", g_groupNames)
   for(a = 0; a < inum; ++a) 
        {
   player = players[a]
   get_user_name(player, name, 31)
   if(get_user_flags(player) == g_groupFlagsValue || get_user_flags(player) == g_groupFlagsValueVIP) //arata si adminii fara vip si pe cei cu vip 
           {
   console_print(id, "%s", name)
           }
        }
      }
   console_print(id, "=========NUME SERVER=========")
   console_print(id, "-------------------------------")
   client_cmd(id,"toggleconsole")
   return PLUGIN_HANDLED
}

Nume: ULTIMATE WHO (BUG FOR VIP ACCES FIXED)
Versiune: 2.0 by LNd # UDP NETWORK
Link oficial: aici


Instalare:
1. Fisierul ultimate_who.sma il puneti in addons/amxmodx/scripting
2. Fisierul ultimate_who.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

ultimate_who.amxx

4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg): 

Imagini: -

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
  • Create New...