Raised This Month: $12 Target: $400
 3% 

/all


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
MuhammedHamza.
BANNED
Join Date: Sep 2012
Old 09-28-2012 , 13:00   /all
Reply With Quote #1

/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 :

Last edited by MuhammedHamza.; 09-29-2012 at 10:38. Reason: Small Mistake!
MuhammedHamza. is offline
MuhammedHamza.
BANNED
Join Date: Sep 2012
Old 09-28-2012 , 13:02   Re: /all
Reply With Quote #2

And The Level Givin To Classic Administrator Is ADMIN_LEVEL_N
MuhammedHamza. is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 09-28-2012 , 13:21   Re: /all
Reply With Quote #3

Search for it... This has been asked at least 3 times during this week.
__________________

Accepting all kinds of requests via private message.
matsi is offline
MuhammedHamza.
BANNED
Join Date: Sep 2012
Old 09-29-2012 , 10:23   Re: /all
Reply With Quote #4

I Know But It's For Admin , Golden And Silver! x/
MuhammedHamza. is offline
matsi
Thinkosaur
Join Date: Sep 2006
Old 09-29-2012 , 10:29   Re: /all
Reply With Quote #5

Quote:
Originally Posted by MuhammedHamza. View Post
I Know But It's For Admin , Golden And Silver! x/
And its so hard to change it ?????
__________________

Accepting all kinds of requests via private message.
matsi is offline
MuhammedHamza.
BANNED
Join Date: Sep 2012
Old 09-29-2012 , 10:35   Re: /all
Reply With Quote #6

Oh Come On Do It :/!
MuhammedHamza. is offline
Unkolix
Veteran Member
Join Date: Sep 2012
Old 09-29-2012 , 12:38   Re: /all
Reply With Quote #7

What are the flags for classic admin, admin and vip?
Unkolix is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 09-30-2012 , 11:22   Re: /all
Reply With Quote #8

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


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

Last edited by sami_spt; 09-30-2012 at 11:23. Reason: Sorry did a mistake :P
sami_spt is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 09-30-2012 , 12:45   Re: /all
Reply With Quote #9

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.
__________________
What an elegant solution to a problem that doesn't need solving....
Liverwiz is offline
sami_spt
Veteran Member
Join Date: Sep 2012
Location: I<3 pussy cats
Old 09-30-2012 , 13:28   Re: /all
Reply With Quote #10

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
I know this :- n - User defined Level B

Last edited by sami_spt; 09-30-2012 at 14:21. Reason: ADDED MORE BUNCH OF WORDS
sami_spt is offline
Reply



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 18:07.


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