Kill NO-sXe-I 不能正常随机杀死没装SXE的玩家
这个插件在DOD下不能自动随机杀死没装反作弊的玩家只是不停的发出设定的信息,请高手看一下,谢谢
/* 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
param = id
set_task( float(NO_SXEI_TIME), "checkName", id, param, 1, "b" )
}
}
kill_no_sxe_player( id )
{
new name
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 = ""
new dest
new id = param
new name
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
}
回复: Kill NO-sXe-I 不能正常随机杀死没装SXE的玩家
现在好了,可以正常用了这么简单的问题,我都不会,唉。。。
kill_no_sxe_player( id )
{
new name
get_user_name( id, name, 31 )
client_cmd(id, "say /我没有安装SXE反作弊,我该死,我无耻; kill; say /让我死吧,谁让我没安装反作弊;")
}
public checkName(param[])
页:
[1]