View Single Post
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 05-07-2012 , 15:15   Re: Admin Prefixes V1.0 by m0skVi4a ;]
Reply With Quote #21

Wouldn't this be easier?

PHP Code:
#include <amxmodx> 
#include <colorchat>

#define PLUGIN "Admin Tags" 
#define VERSION "1.1" 
#define AUTHOR "emblaze" 

new flagi[] = { 
    
ADMIN_IMMUNITY

new 
tagi[][] = { 
    
"[ADMIN]"


public 
plugin_init() { 
    
register_plugin(PLUGINVERSIONAUTHOR

public 
client_authorized (id) { 
    new 
username[32
    
get_user_name(idusername31
    
    new 
user_flags get_user_flags(id
    for (new 
ii<sizeof(flagi); i++) 
        if (
user_flags flagi[i]) 
        { 
            if (
contain(usernametagi[i])==-1
                
ColorChat(idGREEN"name ^"%s^x01 %s^""tagi[i], username
            break 
        } 

__________________
We all live under the same sky but we have different horizons.

Last edited by bLacK-bLooD; 05-07-2012 at 15:16.
bLacK-bLooD is offline