Code:
#include <amxmodx>
#include <fun>
#define PLUGIN "Invis Fade"
#define VERSION "1.0"
#define AUTHOR "Zenith77"
new iFade[33]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("amx_invis", "Invis", "makes you fade to inivsible")
}
public client_connect(id) {
iFade[id] = 0
}
public Invis(id) {
if ( iFade[id] <= 255 ) {
iFade[id] ++
set_user_rendering( id, kRenderFxGlowShell, 0, 0, 0, kRenderTransAlpha, iFade[id] )
set_task( 0.2, "Invis", id )
}
if( iFade[id] >= 255) {
iFade[id] = 0
}
return PLUGIN_HANDLED
}
I would make this script better and also check it to see if works, but i am at a friends house right now, so i cant :/.
If you do compile this then you may get some loose indention errors
--Zenith77
__________________