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

[REQ] HeadShot with fade colored


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
pacheco
Senior Member
Join Date: Jul 2011
Old 12-18-2011 , 18:25   [REQ] HeadShot with fade colored
Reply With Quote #1

When player kill someone with headshot, gives in your monitor, one screen fade colored.. (red or blue, etc) Thanks!!
__________________



pacheco is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-18-2011 , 20:16   Re: [REQ] HeadShot with fade colored
Reply With Quote #2

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 **
__________________

Last edited by kramesa; 12-19-2011 at 10:40.
kramesa is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 12-19-2011 , 09:31   Re: [REQ] HeadShot with fade colored
Reply With Quote #3

Didn't work :s
__________________



pacheco is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-19-2011 , 09:34   Re: [REQ] HeadShot with fade colored
Reply With Quote #4

Try now.
__________________
kramesa is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 12-19-2011 , 09:42   Re: [REQ] HeadShot with fade colored
Reply With Quote #5

Thanks Kramesa, but didn't work too.
__________________



pacheco is offline
kramesa
Veteran Member
Join Date: Feb 2011
Location: Brazil
Old 12-19-2011 , 10:40   Re: [REQ] HeadShot with fade colored
Reply With Quote #6

Try now.
__________________
kramesa is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 12-19-2011 , 11:05   Re: [REQ] HeadShot with fade colored
Reply With Quote #7

Thanks very much brother!! works perfect
__________________



pacheco is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 12-19-2011 , 12:37   Re: [REQ] HeadShot with fade colored
Reply With Quote #8

Quote:
Originally Posted by kramesa View Post
** Now works, i tested **
You should test it before posting or at least be pretty sure it's gonna work.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 12-19-2011 , 16:03   Re: [REQ] HeadShot with fade colored
Reply With Quote #9

Improved.
PHP 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( )
{
    
message_beginMSG_ONE_UNRELIABLEg_iMsgScreenFade_read_data) );
    
write_short<< 10 );
    
write_short<< 10 );
    
write_short0x0000 );
    
write_byte);
    
write_byte100 );
    
write_byte240 );
    
write_byte75 );
    
message_end( );

__________________
xPaw is offline
pacheco
Senior Member
Join Date: Jul 2011
Old 12-19-2011 , 16:23   Re: [REQ] HeadShot with fade colored
Reply With Quote #10

Thanks xPaw and Kramesa!
__________________



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 01:35.


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