Raised This Month: $66 Target: $400
 16% 

Show The Kill


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Gameplay        Approver:   Exolent[jNr] (178)
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 05-03-2009 , 05:11   Show The Kill
Reply With Quote #1

Show The Kill

Description:
This plugin shows in the bottom right hand corner just above your money when you kill someone. It simply says "KILL." Or above the crosshair. There is also a cvar for it to say HEADSHOT when you get a headshot.

Reason:
The reason for this plugin is becuase whenever i play cs and im playing lets say deathmatch, while I am shooting at someone(usually when they are far away) i shoot until i see out of the corner of my eye the +300. When you have $16000 dollars and you get a kill the +300 doesnt show up so I usually keep shooting. This is just a simple plugin that lets you know you killed someone.

Cvars:
stk_on (1/0) default: 1 turns plugin on/off
stk_cross (1/0) defualt: 1 puts the KILL over the crosshair
stk_headshot (1/0) defualt: 1 says HEADSHOT when you get a headshot!
stk_screenfade (1/0) defualt: 1 the screen fades red when you kill someone.
stk_red (0-255) default: 255 changes the color of the screenfade and the HEADSHOT or KILL.
stk_green (0-255) default: 0
changes the color of the screenfade and the HEADSHOT or KILL.
stk_blue (0-255) default: 0 changes the color of the screenfade and the HEADSHOT or KILL.


Screen Shot:


sidenote:
If you dont already have the screenfade_util you will need to download it as well and put it in your addons/amxmodx/scripting/include folder.

Thanks to:
xPaw
Exolent
Bugsy- especially for my badly named cvars etc. haha
ConnorMcLeod- for the screenfade_util

updates:
1.1
New cvar: stk_cross 1/0 defualt 0 = puts the KILL over the crosshair
1.2
Optimized code a bunch. new cvar: stk_headshot 1/0 defualt 1
1.3
more optimization and when you kill yourself it no longer displays KILL. thanks bugsy.
1.4
added screenfade when you kill someone
1.5
added a color changing cvar for the rgb colors of the screenfade and the KILL/HEADSHOT
Attached Files
File Type: inc screenfade_util.inc (2.2 KB, 1564 views)
File Type: sma Get Plugin or Get Source (showthekill.sma - 4144 views - 1.8 KB)
__________________
[B]

Last edited by {PHILMAGROIN}; 07-23-2009 at 20:57. Reason: Uploaded compiled version.
{PHILMAGROIN} is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 05-03-2009 , 05:25   Re: Show The Kill
Reply With Quote #2

Ohh, i know that from other games
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 05-03-2009 , 05:38   Re: Show The Kill
Reply With Quote #3

Use pcvar
You need branches after if( Killer )

PHP Code:
#include <amxmodx>

#define PLUGIN "Show the Kill"
#define VERSION "1.0"
#define AUTHOR "{PHILMAGROIN}"

new gCvar_Enabled;

public 
plugin_init() {
    
register_pluginPLUGINVERSIONAUTHOR );
    
gCvar_Enabled register_cvar"stk_on""1" );
    
register_event"DeathMsg""find_it""a" );
}

public 
find_itid ) {
    if( 
get_pcvar_numgCvar_Enabled ) ) {
        if( 
read_data) ) {
            
set_hudmessage255000.940.8301.03.00.010.01, -);
            
show_hudmessageid"KILL" );
        }
    }

__________________
xPaw is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 05-03-2009 , 05:42   Re: Show The Kill
Reply With Quote #4

Quote:
Originally Posted by xPaw View Post
Use pcvar
You need branches after if( Killer )

PHP Code:
#include <amxmodx>

#define PLUGIN "Show the Kill"
#define VERSION "1.0"
#define AUTHOR "{PHILMAGROIN}"

new gCvar_Enabled;

public 
plugin_init() {
    
register_pluginPLUGINVERSIONAUTHOR );
    
gCvar_Enabled register_cvar"stk_on""1" );
    
register_event"DeathMsg""find_it""a" );
}

public 
find_itid ) {
    if( 
get_pcvar_numgCvar_Enabled ) ) {
        if( 
read_data) ) {
            
set_hudmessage255000.940.8301.03.00.010.01, -);
            
show_hudmessageid"KILL" );
        }
    }

changed!
__________________
[B]
{PHILMAGROIN} is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 05-03-2009 , 07:47   Re: Show The Kill
Reply With Quote #5

isnt it better, if you use DEAD instead of KILL ?

btw n1 plugin..

what about Multilingual?
KadiR is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 05-03-2009 , 11:53   Re: Show The Kill
Reply With Quote #6

Quote:
Originally Posted by KadiR View Post
isnt it better, if you use DEAD instead of KILL ?

btw n1 plugin..

what about Multilingual?
I thought about it. but then i figured its just one word, i dont think it is necessary. but if people want it ill do it.
__________________
[B]
{PHILMAGROIN} is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 05-03-2009 , 13:59   Re: Show The Kill
Reply With Quote #7

Quote:
Originally Posted by KadiR View Post
isnt it better, if you use DEAD instead of KILL?
KadiR is offline
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 05-03-2009 , 14:03   Re: Show The Kill
Reply With Quote #8

eh. I dont think it really matters. at first I had it just +1 but you can see KILL better. and the name sounds better =]
__________________
[B]
{PHILMAGROIN} is offline
TitANious
Veteran Member
Join Date: Feb 2009
Location: Denmark
Old 05-03-2009 , 14:30   Re: Show The Kill
Reply With Quote #9

Use pcvar?
PHP Code:
#include <amxmodx>

#define PLUGIN "Show the Kill"
#define VERSION "1.0"
#define AUTHOR "{PHILMAGROIN}"

new gCvar_Enabled;
new 
gCvar_deathmessage;

public 
plugin_init() {
    
register_pluginPLUGINVERSIONAUTHOR );
    
gCvar_Enabled register_cvar"stk_on""1" );
    new 
gCvar_deathmessage register_cvar ("Deathmsg_msg""KILL")
    
register_event"DeathMsg""find_it""a" );
}

public 
find_itid ) {
    if( 
get_pcvar_numgCvar_Enabled ) ) {
        if( 
read_data) ) {
            
set_hudmessage255000.940.8301.03.00.010.01, -);
            
show_hudmessageid"get_pcvar_num(gCvar_deathmessage)" );
        }
    }

I hope it work
__________________
I dislike this.

"A sneeze never comes alone!" <-- Important to remember.
TitANious is offline
Send a message via MSN to TitANious
{PHILMAGROIN}
Senior Member
Join Date: Aug 2007
Location: In the middle of the des
Old 05-03-2009 , 14:32   Re: Show The Kill
Reply With Quote #10

Quote:
Originally Posted by TitANious View Post
Use pcvar?
PHP Code:
#include <amxmodx>

#define PLUGIN "Show the Kill"
#define VERSION "1.0"
#define AUTHOR "{PHILMAGROIN}"

new gCvar_Enabled;
new 
gCvar_deathmessage;

public 
plugin_init() {
    
register_pluginPLUGINVERSIONAUTHOR );
    
gCvar_Enabled register_cvar"stk_on""1" );
    new 
gCvar_deathmessage register_cvar ("Deathmsg_msg""KILL")
    
register_event"DeathMsg""find_it""a" );
}

public 
find_itid ) {
    if( 
get_pcvar_numgCvar_Enabled ) ) {
        if( 
read_data) ) {
            
set_hudmessage255000.940.8301.03.00.010.01, -);
            
show_hudmessageid"get_pcvar_num(gCvar_deathmessage)" );
        }
    }

I hope it work
already did thanks to xPaw. Why would you have two with such a simple plugin? all i need is a simple on/off cvar.
__________________
[B]
{PHILMAGROIN} is offline
Reply


Thread Tools
Display Modes

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 07:15.


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