Raised This Month: $32 Target: $400
 8% 

amx_who extra flag t problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Danielx931
Member
Join Date: Nov 2020
Old 12-06-2020 , 05:06   amx_who extra flag t problem
Reply With Quote #1

Changed the amx_who ...but i still have the problem
So i have a vip plugin with free vip flag t , when the vip free is running the admins get an extra flag... and we can't see the online admins anymore.
If anyone can help me please.. i can't solve this damn problem

PHP Code:
#include <amxmisc>
#define MAX_GROUPS 13

    
new g_groupNames[MAX_GROUPS][] = {
"[1] Founders",
"[2] Owner",
"[3] Co-Owner",
"[4] Manager",
"[5] God",
"[6] Semi-god",
"[7] Super-moderator",
"[8] Moderator",
"[9] Administrator",
"[10] Helper",
"[11] Lady",
"[12] Vip",
"[13] Reserved name"

}
    new 
g_groupFlags[MAX_GROUPS][] = {
    
"abcdefghijklmnopqrsu",
    
"abcdefghijmnopqrsu",
    
"abcdefghijmnopqrs",
    
"bcdefijmnopqrs",
    
"bcdefijmnopqr",
    
"bcdefijmnop",
    
"bcdefijmn",
    
"bcdefijm",
    
"bcdefij",
    
"bcdefj",
    
"abt",
    
"bt",
    
"b"
}
    new 
g_groupFlagsVIP[MAX_GROUPS][] = { 
    
"abcdefghijklmnopqrstu",
    
"abcdefghijmnopqrstu",
    
"abcdefghijmnopqrst",
    
"bcdefijmnopqrs",
    
"bcdefijmnopqr",
    
"bcdefijmnop",
    
"bcdefijmn",
    
"bcdefijm",
    
"bcdefij",
    
"bcdefj",
    
"abt",
    
"bt",
    
"b"
    
}
   new 
g_groupFlagsValue[MAX_GROUPS]
   new 
g_groupFlagsValueVIP[MAX_GROUPS
   public 
plugin_init() 
{
   
register_plugin("amx_who""1.0""")
   
register_concmd("amx_who""cmdWho")
   for(new 
0MAX_GROUPSi++) 
 {
   
g_groupFlagsValue[i] = read_flags(g_groupFlags[i])
   
g_groupFlagsValueVIP[i] = read_flags(g_groupFlagsVIP[i]) 
     }
}
   public 
cmdWho(id
{
   new 
players[32], inumplayername[32], ia
   get_players
(playersinum)
   
console_print(id"------------------------------------------------------")
   
console_print(id"---------||---------")
   
console_print(id"------------------------------------------------------")
   for(
0MAX_GROUPSi++) 
      {
   
console_print(id"%s"g_groupNames[i])
   for(
0inum; ++a
        {
   
player players[a]
   
get_user_name(playername31)
   if(
get_user_flags(player) == g_groupFlagsValue[i] || get_user_flags(player) == g_groupFlagsValueVIP[i]) 
           {
   
console_print(id"%s"name)
           }
        }
      }
   
console_print(id"------------------------------------------------------")
   
console_print(id"--------------||-------------")
   
console_print(id"------------------------------------------------------")
   return 
PLUGIN_HANDLED


Last edited by Danielx931; 12-06-2020 at 05:07.
Danielx931 is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 12-06-2020 , 09:53   Re: amx_who extra flag t problem
Reply With Quote #2

i have no idea what you requested...better tell us some example so we can try to do it
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Danielx931
Member
Join Date: Nov 2020
Old 12-06-2020 , 12:55   Re: amx_who extra flag t problem
Reply With Quote #3

Quote:
Originally Posted by JocAnis View Post
i have no idea what you requested...better tell us some example so we can try to do it

Last edited by Danielx931; 02-20-2022 at 19:06.
Danielx931 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:48.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode