Raised This Month: $ Target: $400
 0% 

help with clan tag


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
vi3tmofo
Member
Join Date: Jun 2009
Old 09-19-2011 , 22:29   help with clan tag
Reply With Quote #1

hey the plugins work great. but how do i take out the immunity part. i want all admins to tag up even with the letter A immun. please help thanks


#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Admin Tag Enforcement/Protection", "1", "atambo")
register_cvar("amx_taginfront", "1")
register_cvar("amx_tagprotect", "1")
register_cvar("amx_clantag", "none")
}
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)
}
}
vi3tmofo is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-19-2011 , 22:36   Re: help with clan tag
Reply With Quote #2

You've posted this same thread at least 3 times.

Posting more isn't going to make us want to help you any more.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please

Last edited by nikhilgupta345; 09-19-2011 at 22:48.
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
vi3tmofo
Member
Join Date: Jun 2009
Old 09-19-2011 , 22:45   Re: help with clan tag
Reply With Quote #3

they told me to go post it in the plugins forum thats what im doing. im sorry im a newb i didnt know where to post. so im lost. i didnt mean for people to get man
vi3tmofo is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 09-19-2011 , 22:48   Re: help with clan tag
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?t=167699

Doc-Holiday already told you to stop posting so much. Then you go and post again.

Be patient.
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 09-19-2011 , 22:49   Re: help with clan tag
Reply With Quote #5

Quote:
Originally Posted by nikhilgupta345 View Post
https://forums.alliedmods.net/showthread.php?t=167699

Doc-Holiday already told you to stop posting so much. Then you go and post again.

Be patient.
this isnt where i said to post.. i said to post in the requests... forum. not new submissions
Doc-Holiday is offline
modernwarfare
Senior Member
Join Date: Aug 2011
Location: sweden
Old 09-20-2011 , 01:43   Re: help with clan tag
Reply With Quote #6

wrong section

but will help if you put the thread in the right place next time

here you go:
Code:
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("Admin Tag Enforcement/Protection", "1", "atambo")
register_cvar("amx_taginfront", "1")
register_cvar("amx_tagprotect", "1")
register_cvar("amx_clantag", "none")
}
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_LEVEL_A)))
{
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_LEVEL_A)))
{
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)
}
}
its admin flag m

instead of a now
__________________
Im supporting/coding XP Mod Plugin
Free Palestine
R.I.P. The 2967 American people that lost their lives 9/11 and R.I.P.
The 48,644 Afghan and 1,690,903 Iraqi people that paid the ultimate price for a crime they did not commit.



modernwarfare is offline
Send a message via MSN to modernwarfare Send a message via Skype™ to modernwarfare
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:12.


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