Jump to content
Followers 0
cristiii.

[PLUGIN] AMX_WHO ULTIMATE + VIP FIXED

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[i] = read_flags(g_groupFlags[i])
   g_groupFlagsValueVIP[i] = read_flags(g_groupFlagsVIP[i]) //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[i])
   for(a = 0; a < inum; ++a) 
        {
   player = players[a]
   get_user_name(player, name, 31)
   if(get_user_flags(player) == g_groupFlagsValue[i] || get_user_flags(player) == g_groupFlagsValueVIP[i]) //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: -

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Followers 0
|

Theme Made by Zayon & Cyber Designs

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.