|
具有m权限的用户可以直接在控制台执行amx_invis 1来隐身,amx_invis 0是现身,但是人还是半透明的。当然也可以用bind把这条命令绑定到一个键上去。
HOHO!昨天隐身玩了一下,真是太BT了,到敌人堆里乱转都没事。
/* AMX Mod script.
*
* (c) 2003, Potter
* This file is provided as is (no warranties).
*/
#include <amxmod>
#include <amxmisc>
public plugin_init(){
register_plugin("invisibility","0.9","default")
register_clcmd("amx_invis","admin_invis",ADMIN_LEVEL_A,"amx_invis 1|0")
}
public admin_invis(id,level,cid){
if (!cmd_access(id,level,cid,2)) return PLUGIN_HANDLED
new arg[2]
read_argv(1,arg,1)
if (arg[0]=='1'){
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,5)
console_print(id,"You are invisible now!")
}
else
{
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,100)
console_print(id,"You are uninvisible now!")
}
return PLUGIN_HANDLED
} |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|