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

knife kill effect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
anakonda001
Member
Join Date: Jul 2020
Old 08-14-2020 , 11:44   knife kill effect
Reply With Quote #1

I'm looking for a plugin, the effect of killing with a knife as in the video, the download link does not work

Last edited by anakonda001; 08-14-2020 at 19:16.
anakonda001 is offline
rx1983
Senior Member
Join Date: Jan 2009
Location: BRASIL
Old 08-14-2020 , 12:01   Re: knife kill effect
Reply With Quote #2

PHP Code:
#include amxmodx
#include hamsandwich
#include fakemeta

new const TDFW[] = "sound/td_for_what.mp3";

new 
kSynccylinderspr;

public 
plugin_precache() 
{
    
precache_genericTDFW );
    
cylinderspr precache_model("sprites/shockwave.spr");
}

public 
plugin_init() 
{
    
register_plugin"KNIFE KILL TDFW" "1.0" "kikizon" );
    
    
RegisterHamHam_Killed "player" "ham_PlayerKilledPost" true );
    
kSync CreateHudSyncObj();
}

public 
ham_PlayerKilledPostvictim attacker shouldgib )
{
    if( !
is_user_connectedattacker ) || !attacker ) return;
    if( 
get_user_weaponattacker ) != CSW_KNIFE ) return;
    
    
    
Funcvictim attacker )
}

Funcid id2 )
{
    static 
name][ 32 ], origin];
    
get_user_nameid name[0], 31 );
    
get_user_nameid2 name[1], 31 );
    
get_user_origin(idorigin3)
    
    
set_hudmessage204 204 0.0 0.55 4.0 4.0 );
    
ShowSyncHudMsgkSync"%s^nHA FILERIADO a:^n%s^nOOOOHH!! Turn Down For What!!!" name], name] );    
    
    
//client_cmd( 0, "MP3Volume 0.8" );
    
client_cmd"mp3 play ^"%s^""TDFW );
    
    
// Screen Shake
    
message_begin(MSG_ONEget_user_msgid("ScreenShake"), {0,0,0}, id);
    
write_short(1<<14);
    
write_short(1<<14);
    
write_short(1<<14);
    
message_end();
    
    
// Implosion ( Particulas hacia dentro )
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin);
    
write_byte(TE_IMPLOSION);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]);
    
write_byte(128);
    
write_byte(20);
    
write_byte(3);
    
message_end();

    
// LavaSplash ( Particulas hacia fuera )
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin);
    
write_byte(TE_LAVASPLASH);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]);
    
message_end();
    
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+50.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+100.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+150.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+250.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+350.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();

__________________
rx1983 is offline
Send a message via MSN to rx1983
anakonda001
Member
Join Date: Jul 2020
Old 08-14-2020 , 13:19   Re: knife kill effect
Reply With Quote #3

Quote:
Originally Posted by rx1983 View Post
PHP Code:
#include amxmodx
#include hamsandwich
#include fakemeta

new const TDFW[] = "sound/td_for_what.mp3";

new 
kSynccylinderspr;

public 
plugin_precache() 
{
    
precache_genericTDFW );
    
cylinderspr precache_model("sprites/shockwave.spr");
}

public 
plugin_init() 
{
    
register_plugin"KNIFE KILL TDFW" "1.0" "kikizon" );
    
    
RegisterHamHam_Killed "player" "ham_PlayerKilledPost" true );
    
kSync CreateHudSyncObj();
}

public 
ham_PlayerKilledPostvictim attacker shouldgib )
{
    if( !
is_user_connectedattacker ) || !attacker ) return;
    if( 
get_user_weaponattacker ) != CSW_KNIFE ) return;
    
    
    
Funcvictim attacker )
}

Funcid id2 )
{
    static 
name][ 32 ], origin];
    
get_user_nameid name[0], 31 );
    
get_user_nameid2 name[1], 31 );
    
get_user_origin(idorigin3)
    
    
set_hudmessage204 204 0.0 0.55 4.0 4.0 );
    
ShowSyncHudMsgkSync"%s^nHA FILERIADO a:^n%s^nOOOOHH!! Turn Down For What!!!" name], name] );    
    
    
//client_cmd( 0, "MP3Volume 0.8" );
    
client_cmd"mp3 play ^"%s^""TDFW );
    
    
// Screen Shake
    
message_begin(MSG_ONEget_user_msgid("ScreenShake"), {0,0,0}, id);
    
write_short(1<<14);
    
write_short(1<<14);
    
write_short(1<<14);
    
message_end();
    
    
// Implosion ( Particulas hacia dentro )
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin);
    
write_byte(TE_IMPLOSION);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]);
    
write_byte(128);
    
write_byte(20);
    
write_byte(3);
    
message_end();

    
// LavaSplash ( Particulas hacia fuera )
    
message_begin(MSG_PVSSVC_TEMPENTITYorigin);
    
write_byte(TE_LAVASPLASH);
    
write_coord(origin[0]);
    
write_coord(origin[1]);
    
write_coord(origin[2]);
    
message_end();
    
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+50.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+100.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+150.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+250.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();
    
    
engfunc(EngFunc_MessageBeginMSG_PVSSVC_TEMPENTITYorigin0);
    
write_byte(TE_BEAMCYLINDER);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]);
    
engfunc(EngFunc_WriteCoordorigin[0]);
    
engfunc(EngFunc_WriteCoordorigin[1]);
    
engfunc(EngFunc_WriteCoordorigin[2]+350.0);
    
write_shortcylinderspr );
    
write_byte(0);
    
write_byte(0);
    
write_byte(4);
    
write_byte(60);
    
write_byte(0);
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(random_num(0,255));
    
write_byte(200);
    
write_byte(0);
    
message_end();

does not work, only shows hud message
anakonda001 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 01:29.


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