I want people to turn invisble gradually, you can see the effects .
Dont care the shadow atm.
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#define PLUGIN "Invisible"
#define VERSION "1.0"
#define AUTHOR "ME"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public turn_invisible(id)
{
if(get_user_rendering(id) > 1)
{
set_user_rendering(id, get_user_rendering(id) - 5)
set_task(0.05, "turn_invisible", id+100)
}
if(get_user_rendering(id) < 1)
{
remove_task(id+100)
}
}
I know there is no get_user_rendering , can someone come up with a stock or find another way? +Karma for help ~~