|
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
}
|
|