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

need help for edit this plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
UaExFanTasY
Senior Member
Join Date: Mar 2013
Location: UAE
Old 05-15-2016 , 11:16   need help for edit this plugin
Reply With Quote #1

PHP Code:
#include <amxmodx> 

/*---------------EDIT ME------------------*/ 
#define ADMIN_CHECK ADMIN_BAN 
#define GOLDEN_CHECK ADMIN_LEVEL_H 
#define SILVER_CHECK ADMIN_LEVEL_G 

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

new maxplayers
new 
gmsgSayText

new 
amx_contactinfo

public 
plugin_init() { 
    
register_plugin("Admin Check""1.51""OneEyed"); 
    
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_CHECKGOLDEN_CHECKSILVER_CHECK}; 
    static const 
admin_names[][] = {"Admins""Golden Players""Silver Players"}; 
     
    static 
message[256]; 
    new 
len
    new 
admin_flag
    new 
admins[32]; 
    new 
count
     
    for(new 
0jsizeof(admin_flags); i++) { 
        
len formatex(messagecharsmax(message), "%s %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 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(); 


can some one edit this plugin
and make it with three color
for example
if i type
/all
the silver player written on silver color
the golden player written on yellow color
the admin player wrriten on green color

its just 1 color now (green) only
and looking to make it with three color

thanks all
__________________

Last edited by UaExFanTasY; 05-15-2016 at 11:18. Reason: fixing the title
UaExFanTasY 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 02:33.


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