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

BackSide Kill Counter v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Gameplay       
JustInCaseX
Junior Member
Join Date: Feb 2017
Old 02-24-2017 , 09:09   BackSide Kill Counter v1.1
Reply With Quote #1

BackSide Kill Counter
1.1
Just In Case


Description:
This plugin counts all backside kills and deaths. It have a menu to display player stats just like the "/stats" plugin.

CVARs:
amx_bskc_savetype "1" --- Type to save information ( Default : 1 )
| 1 For NICK |2 For IP | 3 For STEAM ID

amx_bskc_stats "1" --- On/Off "/statsback" command. ( Default : 1 )

amx_bskc_menuinfo "2" --- Cvar that controls the display of the player stats while "amx_bsc_stats" is ON. ( Default : 2 )
| 1 for Chat Message | 2 Open a new menu with player information

amx_bskc_prefix "BSKC" --- Cvar for prefix in the chat


Chat Commands:

/checkback - Shows your back stab kills and deaths.

/statsback - Open the menu player stats


Special thanks to TheRedShoko !
Attached Files
File Type: sma Get Plugin or Get Source (backside_kill_counter.sma - 705 views - 5.7 KB)

Last edited by JustInCaseX; 03-03-2017 at 11:24.
JustInCaseX is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 02-27-2017 , 12:40   Re: Back Stab Counter v1.0
Reply With Quote #2

Code:
!is_user_connected(iInflictor)

The inflictor can be a non player entity. You should change that to iAttacker but it shouldn't matter in this case if you're only detecting knife stabs.

You should also check if the weapon is a knife and if the attack was a stab not a slash.

Last edited by PartialCloning; 02-27-2017 at 12:41.
PartialCloning is offline
JustInCaseX
Junior Member
Join Date: Feb 2017
Old 02-28-2017 , 10:00   Re: Back Stab Counter v1.0
Reply With Quote #3

I'm not detecting only knife kills i detect all kills from behind My english is a bit bad soo if the name of the plugin is wrong u can tell me something else and i will rename it. I think Back Stab meaning is not only a knife kills I'm wrong ?

Quote:
Originally Posted by PartialCloning View Post
Code:
!is_user_connected(iInflictor)

The inflictor can be a non player entity. You should change that to iAttacker but it shouldn't matter in this case if you're only detecting knife stabs.
FIXED.

Last edited by JustInCaseX; 02-28-2017 at 10:03.
JustInCaseX is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-01-2017 , 15:06   Re: Back Stab Counter v1.0
Reply With Quote #4

Back stab = колене в гръб.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 03-02-2017 , 08:08   Re: Back Stab Counter v1.0
Reply With Quote #5

Make up your mind whether you'll use brackets when you don't need to, not both using and not using.

Funny, I thought you can't omit the brackets in procedure definition:
Code:
public client_disconnect(id)
    UseVault(id, 0)

public client_putinserver(id)
    UseVault(id, 1)
Last time I tried that I got syntax error, but the compilation through the Forum gives error cuz of external include not being available.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 03-02-2017 , 08:39   Re: Back Stab Counter v1.0
Reply With Quote #6

There's nothing wrong with omitting brackets. I don't know why it didn't work for you. I do it all the time.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
JustInCaseX
Junior Member
Join Date: Feb 2017
Old 03-03-2017 , 04:04   Re: BackSide Kill Counter v1.1
Reply With Quote #7

UPDATE v1.1

Here are the changes :
  • I changed the plugin name so it describes it self much better.
  • Added a cvar for changing the prefix in chat messages.
JustInCaseX 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 04:49.


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