AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   /all (https://forums.alliedmods.net/showthread.php?t=197064)

MuhammedHamza. 09-28-2012 13:00

/all
 
/all
When I Type /all
It Displays Admins , Vips And Classic Admin ^.^

I Made A Level (Classic Admin)

So When I Type /all
It Should Come

****Classic Administrators Online :
****Administrators Online :
****Vips Online :

MuhammedHamza. 09-28-2012 13:02

Re: /all
 
And The Level Givin To Classic Administrator Is ADMIN_LEVEL_N

matsi 09-28-2012 13:21

Re: /all
 
Search for it... This has been asked at least 3 times during this week.

MuhammedHamza. 09-29-2012 10:23

Re: /all
 
I Know But It's For Admin , Golden And Silver! x/

matsi 09-29-2012 10:29

Re: /all
 
Quote:

Originally Posted by MuhammedHamza. (Post 1808888)
I Know But It's For Admin , Golden And Silver! x/

And its so hard to change it ?????

MuhammedHamza. 09-29-2012 10:35

Re: /all
 
Oh Come On Do It :/!

Unkolix 09-29-2012 12:38

Re: /all
 
What are the flags for classic admin, admin and vip?

sami_spt 09-30-2012 11:22

Re: /all
 
Can I please get the 'Access' [FLAGS] of the admins, vip's, etc..


------------------------------------------------------------------------------------------------

Liverwiz 09-30-2012 12:45

Re: /all
 
Guys.....if you're really wanting to help him out wiht this. Write defines that are easily change.
Example:
PHP Code:

#define HIGH_ADMIN ADMIN_BAN
#define CLASSIC_ADMIN ADMIN_LEVEL_N // he specified this
#define VIP_ADMIN ADMIN_LEVEL_C 

let him change them as he wants. It also makes for easy coding and editing later.

sami_spt 09-30-2012 13:28

Re: /all
 
PHP Code:

#include <amxmodx> 

/*---------------EDIT ME------------------*/ 
#define ADMIN_CHECK ADMIN_BAN 
#define CLASSIC_CHECK ADMIN_VOTE 
#define VIP_CHECK ADMIN_CFG

static const COLOR[] = "^x04"//green 
static const CONTACT[] = ""
/*----------------------------------------*/ 

new maxplayers
new 
gmsgSayText

new 
amx_contactinfo

public 
plugin_init() { 
    
register_plugin("Final admin check""2.0""SAMI"); 
    
gmsgSayText get_user_msgid("SayText"); 
     
    
register_clcmd("say /all""print_list"); 
     
    
amx_contactinfo register_cvar("amx_contactinfo"CONTACTFCVAR_SERVER); 


public 
print_list(user) { 
    
set_task(0.1"task_print_list"user); 


public 
task_print_list(user) { 
    new 
players[32], pnum
    
get_players(playerspnum); 
     
    new 
player
    new 
flags[32]; 
    static 
names[32][32]; 
     
    for(new 
0pnumi++) { 
        
player players[i]; 
        
flags[i] = get_user_flags(player); 
        
get_user_name(playernames[i], charsmax(names[])); 
    } 
     
    static const 
admin_flags[] = {ADMIN_CHECKCLASSIC_CHECKVIP_CHECK}; 
    static const 
admin_names[][] = {"Admins""Classic Admins""VIP"}; 
     
    static 
message[256]; 
    new 
len
    new 
admin_flag
    new 
admins[32]; 
    new 
count
     
    for(new 
0jsizeof(admin_flags); i++) { 
        
len formatex(messagecharsmax(message), "%s [AMXX]  %s Online: "COLORadmin_names[i]); 
         
        
admin_flag admin_flags[i]; 
        
count 0
         
        for(
0pnumj++) { 
            if(
flags[j] & admin_flag) { 
                
admins[count++] = j
            } 
        } 
         
        if(
count 0) { 
            for(
0countj++) { 
                
len += formatex(message[len], charsmax(message) - len"%s%s"names[admins[j]], (< (count 1)) ? ", " ""); 
                 
                if(
len 96 && (< (count 1))) { 
                    
print_message(usermessage); 
                    
len formatex(messagecharsmax(message), "%s "COLOR); 
                } 
            } 
        } else { 
            
len += formatex(message[len], charsmax(message) - len" No %s are Online."admin_names[i]); 
        } 
         
        
print_message(usermessage); 
    } 
     
    static 
contact[64]; 
    
get_pcvar_string(amx_contactinfocontactcharsmax(contact)); 
     
    if(
contact[0])  { 
        static 
contactinfo[256]; 
        
formatex(contactinfo111"%s Contact Server Admin -- %s"COLORcontact); 
        
print_message(usercontactinfo); 
    } 


print_message(idmsg[]) { 
    
message_begin(MSG_ONEgmsgSayText, {0,0,0}, id); 
    
write_byte(id); 
    
write_string(msg); 
    
message_end(); 


Tell me if something is wrong ;)
Almost forgot, Please edit the access flags.. i didnt get the ADMIN_LEVEL_N :S sorry:shock:
I know this :- n - User defined Level B


All times are GMT -4. The time now is 11:40.

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