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

[REQ] HeadShot with fade colored


Post New Thread Reply   
 
Thread Tools Display Modes
iloadding
Member
Join Date: Jul 2013
Old 09-11-2013 , 17:15   Re: [REQ] HeadShot with fade colored
Reply With Quote #11

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

new Killer

public plugin_init()
{
    
register_event("DeathMsg""hook_death""a""1>0")
}

public 
hook_death()
{
    
Killer read_data(1)
    
    if((
read_data(3) == 1) && (read_data(5) == 0))
    {
        
message_begin(MSG_ONEget_user_msgid("ScreenFade"), {0,0,0}, Killer)
        
write_short(1<<10)
        
write_short(1<<10)
        
write_short(0x0000)
        
write_byte(0)
        
write_byte(0)
        
write_byte(200)
        
write_byte(75)
        
message_end()
        return 
PLUGIN_HANDLED
    
}
    else
    {
        return 
PLUGIN_HANDLED
    
}
    return 
PLUGIN_HANDLED

Blue Screen.

** Now works, i tested **
how should I do to show the effect for the player who took the headshot?
iloadding is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 09-11-2013 , 21:23   Re: [REQ] HeadShot with fade colored
Reply With Quote #12

Code:
#include < amxmodx > new g_iMsgScreenFade; public plugin_init( ) {     register_event( "DeathMsg", "EventDeath", "a", "1>0", "3=1" );         g_iMsgScreenFade = get_user_msgid( "ScreenFade" ); } public EventDeath( ) {     new victim = read_data( 2 );         message_begin( MSG_ONE_UNRELIABLE, g_iMsgScreenFade, _, victim );     write_short( 1 << 10 );     write_short( 1 << 10 );     write_short( 0x0000 );     write_byte( 0 );     write_byte( 100 );     write_byte( 240 );     write_byte( 75 );     message_end( ); }
__________________



pacheco 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 17:20.


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