|
发表于 2007-11-27 18:34:54
|
显示全部楼层
|阅读模式
来自 中国–江苏–南京
这个插件在DOD下不能自动随机杀死没装反作弊的玩家
只是不停的发出设定的信息,请高手看一下,谢谢
[PHP]
/* AMX Mod X script.
*
* (c) 2007 nkiller
*
* Players with immunity won't be checked
*/
#include <amxmodx>
new NO_SXEI_TIME = 30 // Seconds for Checking
new NO_SXEI_ACTIVE = 1 // Is Actived
public plugin_init()
{
register_plugin("Kill NO-sXe-I","1.0.0","www.Vday.cn")
if ( NO_SXEI_TIME < 10 ) NO_SXEI_TIME = 10
register_cvar("kns_checktime", "30") // Seconds for Checking
register_cvar("kns_active", "1") // Is Actived
}
public client_disconnect(id)
{
remove_task( id )
}
public client_putinserver(id)
{
if ( !is_user_bot(id) )
{
new param[1]
param[0] = id
set_task( float(NO_SXEI_TIME), "checkName", id, param, 1, "b" )
}
}
kill_no_sxe_player( id )
{
new name[32]
get_user_name( id, name, 31 )
client_cmd(id, "say /我没开sxe反作弊,我该死,我无耻下流 kill; say /555555,我没开sXe反作弊,所以谋杀我也没办法了ﺿ")
}
public checkName(param[])
{
NO_SXEI_TIME = get_cvar_num("kns_checktime")
NO_SXEI_ACTIVE = get_cvar_num("kns_active")
if (!(NO_SXEI_ACTIVE == 0))
{
new str[11] = "[NO-sXe-I]"
new dest[11]
new id = param[0]
new name[32]
get_user_name(id, name, 31);
copy(dest, 10, name)
if (compare_arrays(dest, str, 10))
{
kill_no_sxe_player(id)
}
}
}
bool:compare_arrays(array1[], array2[], size)
{
new i
while (i++ < size)
{
if (array1 != array2)
{
return false
}
}
return true
}
[/PHP] |
|