Raised This Month: $ Target: $400
 0% 

Force Clantag on Teamjoin


Post New Thread Reply   
 
Thread Tools Display Modes
deadman909
Veteran Member
Join Date: Oct 2008
Old 07-30-2009 , 16:21   Re: Force Clantag on Teamjoin
Reply With Quote #11

Ok so this will do a Tag Check right. If an Admin enter and doest have the Tag On. I will automatically put it in there name.
Ex:
Admin: ProKilla
Tag Check: ProKilla= No Tag On
Name Change: LMC. ProKilla

Something like that
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 07-30-2009 , 18:03   Re: Force Clantag on Teamjoin
Reply With Quote #12

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_putinserverclient )
{
    static 
szName32 ];
    
get_user_nameclientszName31 );
    
    
CheckTagclientszName );
}

public 
client_infochangedclient )
{
    static 
szOldName32 ], szNewName32 ];
    
get_user_nameclientszOldName31 );
    
get_user_infoclientg_szNameInfoKeyszNewName31 );
    
    if( !
equalszOldNameszNewName ) )
    {
        
CheckTagclientszNewName );
    }
}

CheckTag( const client, const szName[ ] )
{
    static 
szFlags27 ], iFlags;
    
get_pcvar_stringpCvarFlagszFlags26 );
    
    
iFlags read_flagsszFlags );
    if( ( 
get_user_flagsclient ) & iFlags ) == iFlags )
    {
        static 
szTag16 ];
        
get_pcvar_stringpCvarTagszTag15 );
        
        if( 
containszNameszTag ) == -)
        {
            static const 
szFormat[ ] = "%s%s";
            
            static 
szNewName32 ];
            
            if( 
get_pcvar_numpCvarInFront ) )
            {
                
formatexszNewName31szFormatszTagszName );
            }
            else
            {
                
formatexszNewName31szFormatszNameszTag );
            }
            
            
set_user_infoclientg_szNameInfoKeyszNewName );
        }
    }

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
jeon
Junior Member
Join Date: Aug 2010
Old 12-12-2011 , 18:14   Re: Force Clantag on Teamjoin
Reply With Quote #13

SOMEONE FIX THIS PLUGIN.

WE JUST WANT TO TAKE OFF PEOPLES TAGS THAT DOES NOT HAVE ADMIN CHAT.

WE WANT TO ALSO PROTECT MORE THEN 1 TAG.
jeon is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 12-12-2011 , 19:19   Re: Force Clantag on Teamjoin
Reply With Quote #14

WHY ARE YOU WRITING IN ALL CAPS? It is annoying. You already posted in two other threads about this, so just wait for a response. BTW you are probably not going to get one that allows for IP support, since Steam ID is better.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
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 11:41.


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