|
发表于 2005-2-11 15:43:02
|
显示全部楼层
来自 中国–北京–北京
Post by wkloveaoss
我说的也是源码啊,RAR里包括了一个插件和一个源码嘛。。。是不是? 晕死
headshot1.rar里的源码:
#include <amxmod>
#include <amxmodx>
#include <amxmisc>
public plugin_init()
{
register_plugin("headshot", "0.1", "guoxiangwei");
register_cvar("sv_headshot", "1")
register_concmd("amx_headshot", "headshot",ADMIN_RCON," 0,1")
return PLUGIN_CONTINUE
}
public headshot()
{
new arg[3]
read_argv(1,arg,2)
new inum = str_to_num(arg)
new players = get_maxplayers ( )
if ( !get_cvar_num("sv_headshot") )
return PLUGIN_CONTINUE
else
{
new n
for (n=1;n <= players;n++)
{
if (inum == 1)
{
set_user_hitzones(0, n, 2) ---应该是(0, 0, 2)
client_print(0,print_center,"现在是爆头模式!!!")
}
else if(inum == 0)
{
set_user_hitzones(0, n, 255)---应该是(0, 0, 2)
client_print(0,print_center,"爆头模式已经关闭!!!")
}
}
}
return PLUGIN_HANDLED
} |
|