关于 防止堵路! 人体透明插件
#include <amxmodx>#include <amxmisc>
#include <engine>
new semiclip = 1
public plugin_init() {
register_plugin("Semiclip", "1.0", "Crusher918")
register_concmd("amx_semiclip","cmd_semiclip",ADMIN_LEVEL_A,"<1|0>")
register_clcmd("fullupdate", "clcmd_fullupdate")
register_event("ResetHUD", "ResetHUD", "b")
register_event("HLTV", "new_round", "a", "1=0", "2=0")
}
public clcmd_fullupdate() {
return PLUGIN_HANDLED_MAIN
}
public cmd_semiclip(id,level,cid) {
if(!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new name
new arg1
read_argv(1,arg1,31)
new cvarnum = str_to_num(arg1)
semiclip = cvarnum
get_user_name(id,name,31)
new players, pnum
get_players(players,pnum,"a")
if(semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_TRIGGER)
}
client_print(0,print_chat," ADMIN %s: set semiclip on",name)
}
else if(!semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_BBOX)
}
client_print(0,print_chat," ADMIN %s: unset semiclip off",name)
}
return PLUGIN_HANDLED
}
public ResetHUD(id) {
if(semiclip)
entity_set_int(id, EV_INT_solid, SOLID_TRIGGER)
else if(!semiclip)
entity_set_int(id, EV_INT_solid, SOLID_BBOX)
}
public new_round() {
new players, pnum
get_players(players,pnum,"a")
if(semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_TRIGGER)
}
}
else if(!semiclip) {
for(new i=0;i<pnum;++i) {
entity_set_int(i, EV_INT_solid, SOLID_BBOX)
}
}
return PLUGIN_HANDLED
}
这个插件有个很大的BUG
当没有人接近人体的时候。我希望那个人是以实体的形式出现的
以上这个插件就没有达到这种效果。搞得像隐身一样。
接近人体的时候我就希望是插件的效果
如图:
求修复 好东西大家分享 我的意见 ,这样不好啊 ,没有 嘟噜效果 ,大家 打 cs 的勤奋少了很多啊 ,听不到谩骂声了 ,其实呢 ,谩骂也是一时的牢骚而已,影响cs 玩家的心情,也希望高人改善
页:
[1]