Raised This Month: $ Target: $400
 0% 

Death Effect Plugin!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
BlueGaming
BANNED
Join Date: Nov 2013
Old 01-03-2014 , 07:51   Re: Death Effect Plugin!
Reply With Quote #3

try this :
PHP Code:
#include <amxmodx>
#include <engine>
// a lot of code by amxxmodx.ru & cruyff !
#pragma semicolon            1
#pragma tabsize             0

#define PLUGIN "Death Effect Explosion"
#define VERSION "0.1"
#define AUTHOR "Akman"


new _:g_iSpiteExlplosion;

public 
plugin_precache()
{
    
    
g_iSpiteExlplosion precache_model("sprites/dexplo.spr");
}

public 
plugin_init() 
{
    
register_plugin(PLUGINVERSIONAUTHOR);
    
    
// ham call !
    
register_event"DeathMsg""eDeathMsg""a" );
    
}

// Thanks cruyff
public eDeathMsg( )
{
    new 
v_Victim read_data); // Victima.
    
_Explosion(v_Victim);
}

//    Thanks amxxmodx.ru for code !
public _Explosion(id)
{
    new 
_:iAimOrigin[3];
    
    
get_user_origin(idiAimOrigin0);
    
    
    
    
message_begin(MSG_BROADCASTSVC_TEMPENTITY);    
    
    
write_byte(TE_EXPLOSION);            
    
    
/* ?????????? */
    
write_coord(iAimOrigin[0]);            
    
write_coord(iAimOrigin[1]);           
    
write_coord(iAimOrigin[2]);            
    
    
write_short(g_iSpiteExlplosion);        
    
    
write_byte(10);    
    
write_byte(10);    
    
write_byte(0);    
    
    
message_end();                     
    
    return 
PLUGIN_HANDLED;

BlueGaming is offline
 



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 20:40.


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