|
楼主 |
发表于 2005-11-16 20:32:35
|
显示全部楼层
来自 中国–北京–北京
回复: 【插件】C-D 辅助[非CD玩家不享受战绩统计]
[PHP]#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("No/Old C-D = No kills.", "0.9.4", "BMJ/AssKicR")
register_event("DeathMsg", "cd_check", "a")
return PLUGIN_CONTINUE
}
public cd_check()
{
new id = read_data(1) // Attacker
new team = get_user_team(id)
new deaths = get_user_deaths(id)
if (!passCheatDeathCheck(id)) {
set_user_frags(id,0)
message_begin(MSG_ALL, get_user_msgid("ScoreInfo"))
write_byte(id)
write_short(0)
write_short(deaths)
write_short(0)
write_short(team)
message_end()
client_print(id, print_center, "由于你尚未开启 C-D 你的杀敌数将不会被战绩列表统计^n获取 C-D 请访问 http://www.unitedadmins.com/cdeath.php")
}
return PLUGIN_HANDLED
}
public bool:passCheatDeathCheck(id)
{
new name[32]
if ( !is_user_connected(id) ) return true
// Ok CD is required Check the Name
get_user_name(id, name, 31)
if ( contain(name,"[No C-D]") != -1 || contain(name,"[Old C-D]") != -1 )
return false
return true
}[/PHP] |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|