|
发表于 2009-2-20 15:00:24
|
显示全部楼层
来自 中国–广东–广州–白云区
源码在此
#include <amxmodx>
#include <amxmisc>
#define PLUGIN_NAME "New Plug-In"
#define PLUGIN_VERSION "1.0"
#define PLUGIN_AUTHOR "zwfgdlc"
public plugin_init()
{
register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR);
register_logevent("join_team",3,"1=joined team","2=CT","2=TERRORIST")
}
public join_team()
{
new log[64],name[32],tag[32],temp[6],team[16]
read_logargv(0,log,63)
read_logargv(2,team,15)
parse_loguser(log,name,31)
copy(temp,6,name)
new id=get_user_index(name)
if(equal(team,"CT"))
{
if(equal(temp,"[BLUE]"))
{
return;
}else if(contain(temp,"[CS||9527=]")!=-1)
{
copy(temp,5,name);
if(equal(temp,"[CS||9527=]"))
format(tag,31,"[BLUE]%s",name[6]);
}
else
{
format(tag,31,"[BLUE]%s",name);
}
}else{
if(equal(temp,"[BLUE]"))
{
format(tag,31,"[CS||9527%s",name[6]);
}else if(contain(temp,"[CS||9527=]")!=-1)
{
copy(temp,5,name)
if(equal(temp,"[CS||9527=]"))
return;
}else{
format(tag,31,"[CS||9527=]%s",name);
}
}
set_user_info(id,"name",tag)
} |
|