Raised This Month: $ Target: $400
 0% 

Invisibility effects helpS~!~


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dstopgunner
Senior Member
Join Date: Oct 2007
Old 05-22-2009 , 09:17   Invisibility effects helpS~!~
Reply With Quote #1

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 ~~
dstopgunner is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 05-22-2009 , 09:29   Re: Invisibility effects helpS~!~
Reply With Quote #2

use pev_renderamt.
Arkshine is offline
dstopgunner
Senior Member
Join Date: Oct 2007
Old 05-22-2009 , 10:34   Re: Invisibility effects helpS~!~
Reply With Quote #3

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>?
dstopgunner is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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