|
//-------------Force_cd_version and kick othea cdversion src by whlzyl337------------
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
public plugin_init()
{
register_plugin("Change Rates","0.1","SweatyBanana")
register_concmd("amx_rate","rateForce",ADMIN_KICK,"amx_rate <part of nick> - Changes client settings.")
register_plugin("Cvar Client", "1", "Me")
}
public rateForce(id,level,cid)
{
if(!cmd_access(id,level,cid,2))
return 1
new TARGET[32]
read_argv(1,TARGET,31)
new PLAYER = cmd_target(id,TARGET,7)
PLAYER = get_user_index(PLAYER)
set_user_info(PLAYER, "cd_version %i", 4.32.0)
client_print(PLAYER, print_console, "%s's need uesing cd 4.32.0",PLAYER)
return 1
}
public client_putinserver(id)
{
set_task(15.0, "verificacion", id, "b")
}
public verificacion(id)
{
if ( is_user_connected(id) )
query_client_cvar(id,"cd_version","result2")
}
public result2(id, const cvar[], const value[]){
new name[32]
get_user_name(id, name, 31)
if(equal(value,"4.32.0"))
{
client_print(id,print_chat,"%s ***", value)
}
else
{
server_cmd("kick #%d ^"Please uesing CD 4.32.0 in this server to play^"",get_user_userid(id))
}
下面这个是反作弊超强源码,可有效防止透视\加速\摇头等作弊::d: |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|