Raised This Month: $51 Target: $400
 12% 

Remove Player body when die


Post New Thread Reply   
 
Thread Tools Display Modes
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-09-2008 , 14:25   Re: Remove Player body when die
Reply With Quote #11

Thanks, I understand now.

hleV, for that you will have to create en entity and hooking touch and such.
__________________
Arkshine is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 05-08-2009 , 06:41   Re: Remove Player body when die
Reply With Quote #12

Quote:
Originally Posted by arkshine View Post
Thanks, I understand now.

hleV, for that you will have to create en entity and hooking touch and such.
Bump. Can anyone try to make it? I failed once.

I also intend to use the corpses to regain health (like un "Juicy Corpse" plugin but it wouldn't require to stare at corpse's feets).
__________________

Last edited by hleV; 05-08-2009 at 06:44.
hleV is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-10-2012 , 15:31   Re: Remove Player body when die
Reply With Quote #13

Bump for the second question.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-10-2012 , 17:06   Re: Remove Player body when die
Reply With Quote #14

What's the difference between

Quote:
Originally Posted by Arkshine View Post
In plugin_init () : set_msg_block ( get_user_msgid ( "ClCorpse" ), BLOCK_SET ) , will be block all the times.
and

Quote:
Originally Posted by Arkshine View Post
If you need to filter just use register_message () and return PLUGIN_HANDLED when need.
?
__________________
You can do anything you set your mind to, man.


Last edited by Devil259; 01-10-2012 at 17:06.
Devil259 is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 01-10-2012 , 17:23   Re: Remove Player body when die
Reply With Quote #15

I meant this as second question:

Quote:
Originally Posted by hleV View Post
Is it possible to leave the player's body even if the player is spawned after death without spawning a new entity on the body?
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-11-2012 , 06:39   Re: Remove Player body when die
Reply With Quote #16

I know, but I asked another question
__________________
You can do anything you set your mind to, man.

Devil259 is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 01-11-2012 , 06:47   Re: Remove Player body when die
Reply With Quote #17

Quote:
Originally Posted by Devil259 View Post
What's the difference between



and



?
Registering a message and doing stuff in its callback allows you to do more checks/stuff there. If you only need to block the message without checking anything, then set_msg_block() is what you use, as it doesn't create a callback and I'm positive is more efficient.
__________________

Last edited by hleV; 01-11-2012 at 06:48.
hleV is offline
Devil259
Veteran Member
Join Date: Dec 2009
Location: France (59)
Old 01-11-2012 , 07:42   Re: Remove Player body when die
Reply With Quote #18

Oh okay, I didn't understand it. Thank you. (I already used set_msg_block( ) but I didn't see the "and return PLUGIN_HANDLED when need" of Arkshine post.
__________________
You can do anything you set your mind to, man.

Devil259 is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 01-13-2012 , 12:31   Re: Remove Player body when die
Reply With Quote #19

Can you do a dissolve animation like in source?
Doc-Holiday is offline
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 12:08.


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