Raised This Month: $ Target: $400
 0% 

remove dead body/ghost(don't know how to call it)?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
teame06
i have a hat
Join Date: Feb 2005
Location: Hat City
Old 10-08-2006 , 02:02   Re: remove dead body/ghost(don't know how to call it)?
Reply With Quote #2

By blocking the ClCorpse Event. There two ways you can block it. This code is setup for when CSDM is active. This should work with 2.1 not sure about 2.0

It not an entity either. Think it a brush or a temp entity or something.


PS. Not sure if this will block the ghost body for net problem but this will block the one left by player dying on a longer respawn time then 0.5 secs

Code:
#include <amxmodx> #include <csdm> #define OneWay new ClCorpse; public plugin_init() {     register_plugin("Corpses", "1.0", "What");     ClCorpse = get_user_msgid("ClCorpse");     #if !defined OneWay     register_message(ClCorpse, "Corpse");     #endif } #if defined OneWay public csdm_StateChange(csdm_state) {     switch(csdm_state)     {         case CSDM_ENABLE:             set_msg_block(ClCorpse, BLOCK_SET);         case CSDM_DISABLE:             set_msg_block(ClCorpse, BLOCK_NOT);     } } #else public Corpse() {     if(csdm_active())         return PLUGIN_HANDLED;     return PLUGIN_CONTINUE; } #endif
__________________
No private support via Instant Message
GunGame:SM Released

Last edited by teame06; 10-08-2006 at 02:12.
teame06 is offline
Send a message via AIM to teame06
 



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 04:50.


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