View Single Post
dineshrohra
Junior Member
Join Date: Aug 2012
Location: Dubai, United Arab Emirates.
Old 08-30-2012 , 10:33   Re: silver/golden login notifier.
Reply With Quote #6

Quote:
Originally Posted by ConnorMcLeod View Post
@Ibrahim
Multiple accounts are forbidden : http://forums.alliedmods.net/member.php?u=167948


@virtual
Don't use Ibrahim's code.
Try this :
PHP Code:
// #define __COLORCHAT

#include <amxmodx>

#if defined __COLORCHAT
#include <colorchat>
#endif

enum mDatas
{
    
m_iFlag,
    
m_szTag[32]
}

new const 
g_mAdminsDatas[][mDatas] = 
{
    
// let from highest power to lowest
    
<< ( 'l' 0x61 ), "Administrator"},
    { 
<< ( 's' 0x61 ) , "Golden Player"},
    { 
<< ( 't' 0x61 ) , "Silver Player"},
    { 
<< ( 'z' 0x61 ) , "Normal Player"}
}

public 
plugin_init() 

    
register_plugin("LOGIN Join notifer","0.1","yamin"


public 
client_authorized(id)
{
    new 
iFlags get_user_flags(id)
    for(new 
ii<sizeof(g_mAdminsDatas); i++)
    {
        if( 
iFlags g_mAdminsDatas[i][m_iFlag] )
        {
            new 
szName[32
            
get_user_name(idszNamecharsmax(szName))
#if defined __COLORCHAT
            
new iColor
            
switch( )
            {
                case 
0:iColor Red
                
case sizeof(g_mAdminsDatas)-1:iColor Grey
                
default:iColor Blue
            
}
            
client_print_color(0iColor"^1*** ^4%s^1 has logged in as ^3%s"szNameg_mAdminsDatas[i][m_szTag])
#else
            
client_print(0print_chat"*** %s has logged in as %s"szNameg_mAdminsDatas[i][m_szTag])
#endif
            
break
        }
    }

ConnorMcLeod,
Where To Use This Script ?
dineshrohra is offline