Raised This Month: $ Target: $400
 0% 

Disappear immediately after death! Help!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Xaleer
Member
Join Date: May 2014
Location: Ukraine
Old 06-08-2014 , 10:06   Re: Disappear immediately after death! Help!
Reply With Quote #7

Quote:
Originally Posted by bibu View Post
Try this:

PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>

public plugin_init()
{
    
register_plugin("Hide Death Sequence""1.0""AMXX Community")
    
    
RegisterHam(Ham_Spawn"player""Player_Spawn"1)
    
RegisterHam(Ham_Killed"player""Player_Killed"1)
}

public 
Player_Killed(id)
{
    
set_user_rendering(idkRenderFxNone000kRenderTransAlpha 0)
}

public 
Player_Spawn(id)
{
    if(
is_user_alive(id))
        
set_user_rendering(id)

Btw, you should post such thing next time on Requests section of the forum.
thank you! it's works! but is it possible to put a delay on the disappearance, cvar? because the player disappears immediately, not after 0.5 seconds, and a little later seen him fly ...

Last edited by Xaleer; 06-08-2014 at 14:06.
Xaleer is offline
Send a message via Skype™ to Xaleer
 



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 09:41.


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