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

Admin Tag Enforcement/Protection


Post New Thread Reply   
 
Thread Tools Display Modes
deadman909
Veteran Member
Join Date: Oct 2008
Old 08-08-2009 , 14:02   Re: Admin Tag Enforcement/Protection
Reply With Quote #31

LOL this PLugins look like the one ATAMBO made PizzaHut
__________________

deadman909 is offline
Send a message via MSN to deadman909 Send a message via Yahoo to deadman909
harker
Junior Member
Join Date: Jul 2009
Old 08-19-2009 , 09:30   Re: Admin Tag Enforcement/Protection
Reply With Quote #32

I don't want to force admins to have the tag, but remove it from players.

What i have to edit in the sma file?

I tried to do it myself but i get at least 11 Errors when i compile it
harker is offline
Old 09-17-2009, 14:35
matiaslp
This message has been deleted by matiaslp.
matiaslp
Senior Member
Join Date: Apr 2007
Old 09-20-2009 , 23:00   Re: Admin Tag Enforcement/Protection
Reply With Quote #33

there it's a bug, if you join as spectator and map it's changed, you can start playing without tag!

Last edited by matiaslp; 09-21-2009 at 10:06.
matiaslp is offline
nuked
Member
Join Date: Oct 2009
Old 02-18-2010 , 08:21   Re: Admin Tag Enforcement/Protection
Reply With Quote #34

This plugin worls nicely most of the time... BUT.... Sometimes it goes berzerk and changes EVERY admin to none[clantag]nick

VERY irritating so atm we don't use it... But still - when it works it really do work!
nuked is offline
Send a message via ICQ to nuked Send a message via MSN to nuked
Reaper2331
Veteran Member
Join Date: Nov 2006
Location: Columbus,Ohio
Old 03-19-2010 , 19:22   Re: Admin Tag Enforcement/Protection
Reply With Quote #35

can you add in the feature so if cvar
amx_tagremove is 1 then when the player disconnects it removes the tag?
__________________

Reaper2331 is offline
Send a message via AIM to Reaper2331 Send a message via MSN to Reaper2331 Send a message via Yahoo to Reaper2331
Ryan.Ls
Junior Member
Join Date: Feb 2011
Old 09-12-2011 , 12:03   Re: Admin Tag Enforcement/Protection
Reply With Quote #36

Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
	register_plugin("Tag Protection", "1.0", "atambo")
	register_cvar("amx_taginfront", "1")
	register_cvar("amx_tagprotect", "1")
	register_cvar("amx_clantag", "tag")
}
public client_putinserver(id)
        set_task(1.5,"admin_entered",id) 
public admin_entered(id)
{
    	new name[32]
    	get_user_name(id, name, 31)
	return force_tag(id, name)
}
force_tag(id, name[])
{
	new clantag[24]
	get_cvar_string("amx_clantag",clantag,23)
	if(get_cvar_num("amx_tagprotect") == 0)
		return PLUGIN_CONTINUE
	if(get_cvar_num("amx_taginfront") == 1)
	{
		if(is_user_admin(id) && (containi(name, clantag)<0) && (!access(id, ADMIN_IMMUNITY)))
		{
        		copy(name,23,name)
            		client_cmd(id,"name ^"%s%s^"",clantag,name)
        	}
        	if((!is_user_admin(id)) && (containi(name, clantag)>=0))
		{
            		deletei(name, clantag)
            		trim(name)
            		if(strlen(name) == 0) 
                		copy(name, 7, "Player")
            		client_cmd(id, "name ^"%s^"", name)
        	}
    		return PLUGIN_CONTINUE
	}
	else
	{
		if(is_user_admin(id) && (containi(name, clantag)<0) && (!access(id, ADMIN_IMMUNITY)))
		{
        		copy(name,23,name)
            		client_cmd(id,"name ^"%s%s^"",name,clantag)
        	}
        	if((!is_user_admin(id)) && (containi(name, clantag)>=0))
		{
            		deletei(name, clantag)
            		trim(name)
            		if(strlen(name) == 0) 
                		copy(name, 7, "Player")
            		client_cmd(id, "name ^"%s^"", name)
        	}
    		return PLUGIN_CONTINUE
	}
	return PLUGIN_CONTINUE
}
public client_infochanged(id)
{
        new name[32]
        get_user_info(id, "name", name, 31)
	return force_tag(id, name)
}
deletei(text[], const what[])
{
    	new pos
    	new len
    	new i
    	pos = containi(text, what)
    	while (pos>=0) 
	{
        	len = strlen(what)
        	i = 0
        	while (text[pos+len+i]!=0) 
		{
            		text[pos+i] = text[pos+len+i]
            		i++
        	}
        	text[pos+i] = 0
        	pos = containi(text, what)
    	}
}
Nice plugin!

I need this, but when user is not a admin was by kicked! Code for this?

Sorry my English.
Ryan.Ls is offline
forid786786
Senior Member
Join Date: Oct 2011
Location: U.K (Cs 1.6 world)
Old 11-02-2011 , 17:26   Re: Admin Tag Enforcement/Protection
Reply With Quote #37

This works just how i want it but it has a bug it keeps adding the tag and taking it away for example [Server]-player then changing back to player then going back to [Server]-player and so on.
Can anyone help me please !
__________________
Thanks
forid786786 is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 11-05-2011 , 16:09   Re: Admin Tag Enforcement/Protection
Reply With Quote #38

Nice Plugin!
__________________
kramesa is offline
STr!ker
Senior Member
Join Date: Jun 2009
Location: Germany
Old 12-12-2011 , 10:14   Re: Admin Tag Enforcement/Protection
Reply With Quote #39

Hey, can u add a vote, when the player connects, that the name should change or not. Maybe there is a cheater and thats not good to join with a clantag ;)
STr!ker 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 18:57.


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