AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Invisibility effects helpS~!~ (https://forums.alliedmods.net/showthread.php?t=92931)

dstopgunner 05-22-2009 09:17

Invisibility effects helpS~!~
 
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(PLUGINVERSIONAUTHOR)
}
 
public 
turn_invisible(id)
{
 if(
get_user_rendering(id) > 1)
 {
  
set_user_rendering(idget_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 ~~

Arkshine 05-22-2009 09:29

Re: Invisibility effects helpS~!~
 
use pev_renderamt.

dstopgunner 05-22-2009 10:34

Re: Invisibility effects helpS~!~
 
can you please give a small example?
so .. pev_renderamt(id, 0) and it will slowly turn 0? in how many secs?

and another question... #include <fakemeta> or <fakemeta_util>?


All times are GMT -4. The time now is 01:33.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.