View Single Post
Author Message
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 01-30-2011 , 09:40   [CSS] Round End Most Kills
Reply With Quote #1

[CSS] Round End Most Kills
- Show end of each round player by most kills, headshots and knife kills

[REQ]Round end stats


How this work ?
Algorithm
- Player who made most kills, headshot kills, knife kills than anybody else, reach top.
- When there is more than 1 player who made as much kills, headshot kills, knife kills.
  • Then him selected by higher damage made whole round (most kills)
  • Then him selected by higher headshot damage made whole round (most headshot kills)
  • Then him selected by higher knife damage made whole round (most knife kills)
- When there is more than 1 player who made as much knife kills and knife damage
  • Then him selected by last knife kill between top players (knife kills)

CVAR
Quote:
remk_version
- Plugin current version

remk_outputmode 0
0 = Print to chat all
1 = Print to chat all with damage
2 = Print to 'KeyHintText' all
3 = Print to 'KeyHintText' all with damage
4 = Print to chat all with dmg and hits
5 = Print to 'KeyHintText' all with dmg and hits
Chat output:
Mode = 0
- When there was all top killer, hs killer and knife killer
Most kills: Name (x)
Most headshot kills: Name (x)
Most knife kills: Name (x)

- And when there wasn't head shot kills and knife kills
Most kills: Name (x)

- Kills and headshot kills
Most kills: Name (x)
Most headshot kills: Name (x)

- Kill and knife kills
Most kills: Name (x)
Most knife kills: Name (x)


Mode = 1
- This include damages in chat
Most kills: Dave (2) 186dmg
Most headshot kills: Brandon (1) 60dmg
Most knife kills: Connor (1) 157dmg


Mode = 4

- This include damages and hits in chat
Most kills: Dave (2) 186dmg 12hits
Most headshot kills: Brandon (1) 60dmg 1hits
Most knife kills: Connor (1) 165dmg 1hits


KeyHintText output

KeyHintText output - mode 5 = Show kills with damage and hits
Code:
Version 0.3 30.1.2011
- Released
Version 0.4 31.1.2011
- Fix, not show most head shot kills or knife kills without kill
- Change algorithm better, I forget add that knife last kill to previous version
- Correct comments in source code
Version 0.5 31.1.2011
- Added, reset stats when player disconnect to avoid misunderstandings top killers
Version 0.6 2.2.2011
- Added more outputs, with damage results
Version 0.7 8.2.2011
- Little fix, wrong knife damage output when there where only knife kills
- Added more outputs, kills include damages and hits info
- Sorry for bad english
Credits to AlliedModders developers, request/idea rtk and Xaider plugin Most destructive
Attached Thumbnails
Click image for larger version

Name:	sample.jpg
Views:	11182
Size:	26.9 KB
ID:	81595  
Attached Files
File Type: sp Get Plugin or Get Source (roundendmostkills.sp - 5726 views - 13.9 KB)

Last edited by Antithasys; 09-22-2011 at 18:44. Reason: added public cvar
Bacardi is offline