No, because the code provided does not work properly.
PHP Code:
#include <amxmodx>
#include <amxmisc>
new const g_szNameInfoKey[ ] = "name";
new pCvarInFront;
new pCvarTag;
new pCvarFlag;
public plugin_init( )
{
register_plugin( "Force Admin Tag", "0.1", "Exolent" );
pCvarInFront = register_cvar( "tag_infront", "1" );
pCvarTag = register_cvar( "tag_name", "ADMIN | " );
pCvarFlag = register_cvar( "tag_flag", "c" );
}
public client_putinserver( client )
{
static szName[ 32 ];
get_user_name( client, szName, 31 );
CheckTag( client, szName );
}
public client_infochanged( client )
{
static szOldName[ 32 ], szNewName[ 32 ];
get_user_name( client, szOldName, 31 );
get_user_info( client, g_szNameInfoKey, szNewName, 31 );
if( !equal( szOldName, szNewName ) )
{
CheckTag( client, szNewName );
}
}
CheckTag( const client, const szName[ ] )
{
static szFlags[ 27 ], iFlags;
get_pcvar_string( pCvarFlag, szFlags, 26 );
iFlags = read_flags( szFlags );
if( ( get_user_flags( client ) & iFlags ) == iFlags )
{
static szTag[ 16 ];
get_pcvar_string( pCvarTag, szTag, 15 );
if( contain( szName, szTag ) == -1 )
{
static const szFormat[ ] = "%s%s";
static szNewName[ 32 ];
if( get_pcvar_num( pCvarInFront ) )
{
formatex( szNewName, 31, szFormat, szTag, szName );
}
else
{
formatex( szNewName, 31, szFormat, szName, szTag );
}
set_user_info( client, g_szNameInfoKey, szNewName );
}
}
}
__________________