Raised This Month: $ Target: $400
 0% 

Disappear immediately after death! Help!


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xaleer
Member
Join Date: May 2014
Location: Ukraine
Old 06-06-2014 , 09:10   Disappear immediately after death! Help!
Reply With Quote #1

I have CSDM server and in my csdm.cfg i write cvar: "spawn_wait_time = 0.5". After kill turns out bad effect when the model killed player rises to fly at spawn. This effect disappears if put the plugin type "Gore Ultimate", but it does not suit me, it is necessary that the player simply disappeared after kill! Help me please, i searched the forum, did not find what i need, possibly because of my bad English, because I'm writing this post through Google translator)))
Xaleer is offline
Send a message via Skype™ to Xaleer
bibu
Veteran Member
Join Date: Sep 2010
Old 06-06-2014 , 13:26   Re: Disappear immediately after death! Help!
Reply With Quote #2

PHP Code:
#include < amxmodx >  

public plugin_init( ) { 
    
register_plugin"Remove Dead Bodies""1.0""Amxx Community" ); 
     
    
set_msg_blockget_user_msgid"ClCorpse" ), BLOCK_SET ); 

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Xaleer
Member
Join Date: May 2014
Location: Ukraine
Old 06-06-2014 , 20:48   Re: Disappear immediately after death! Help!
Reply With Quote #3

Quote:
Originally Posted by bibu View Post
PHP Code:
#include < amxmodx >  

public plugin_init( ) { 
    
register_plugin"Remove Dead Bodies""1.0""Amxx Community" ); 
     
    
set_msg_blockget_user_msgid"ClCorpse" ), BLOCK_SET ); 

Thanks! But did not help... still have this effect... player model does not disappear after death, and appears in the same place and begins to fly to next respawn, i write respawn time 2 seconds, did not help, same...

Last edited by Xaleer; 06-06-2014 at 20:49.
Xaleer is offline
Send a message via Skype™ to Xaleer
bibu
Veteran Member
Join Date: Sep 2010
Old 06-06-2014 , 23:50   Re: Disappear immediately after death! Help!
Reply With Quote #4

Make a screenshot then..
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Xaleer
Member
Join Date: May 2014
Location: Ukraine
Old 06-07-2014 , 09:47   Re: Disappear immediately after death! Help!
Reply With Quote #5

Quote:
Originally Posted by bibu View Post
Make a screenshot then..
I filmed a small video for you)) http://youtu.be/Ybg8mpvBiRY
Xaleer is offline
Send a message via Skype™ to Xaleer
bibu
Veteran Member
Join Date: Sep 2010
Old 06-07-2014 , 13:47   Re: Disappear immediately after death! Help!
Reply With Quote #6

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.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
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
Xaleer
Member
Join Date: May 2014
Location: Ukraine
Old 06-08-2014 , 14:07   Re: Disappear immediately after death! Help!
Reply With Quote #8

here delay:

Quote:
#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_task(0.5, "hide_body",id);
}

public Player_Spawn(id){

if(is_user_alive(id))
set_user_rendering(id);
}

public hide_body(id){
if(is_user_connected(id))
set_user_rendering(id, kRenderFxNone, 0, 0, 0, kRenderTransAlpha , 0)
}
and how write to how many seconds hide the body?

Last edited by Xaleer; 06-08-2014 at 14:09.
Xaleer is offline
Send a message via Skype™ to Xaleer
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 06-08-2014 , 14:30   Re: Disappear immediately after death! Help!
Reply With Quote #9

It's the first parameter of set_task - the time in seconds. This float defines how many seconds later the function will be executed.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
Xaleer
Member
Join Date: May 2014
Location: Ukraine
Old 06-08-2014 , 21:56   Re: Disappear immediately after death! Help!
Reply With Quote #10

Quote:
Originally Posted by Flick3rR View Post
It's the first parameter of set_task - the time in seconds. This float defines how many seconds later the function will be executed.
this is done in a moment, I need to remove the model in the time interval from 0.5-0.8, when the model fly to respawn
Xaleer is offline
Send a message via Skype™ to Xaleer
Reply



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