Mr. hello
I found a stealth plug-in on the website, I very much like to use it, but now there is a problem, how can we allow this plugin for the elimination of all weapons and equipment in use, when recovery appeared in the recovery of the weapons? Thank you, sir..
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fun>
#include <dodfun>
#include <dodx>
#include <fakemeta>
public plugin_init(){
register_plugin("invisibility","2.1","default")
register_concmd("amx_invis","admin_invis",ADMIN_LEVEL_M,"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,2)
console_print(id,"You are invisible now!")
}
else
{
set_user_rendering(id,kRenderFxGlowShell,0,0,0,kRenderTransAlpha,255)
console_print(id,"You are uninvisible now!")
}
return PLUGIN_HANDLED
}