Thread: Kill Bonus
View Single Post
MarceCSS
Junior Member
Join Date: Aug 2014
Old 09-04-2015 , 21:42   Re: Kill Bonus
Reply With Quote #27

I added code to add armor on killing a player, i work and modified over the 1st modification by TnTSCS 'cause i need it for my DM server.

sm_kb_version 1.1.2

CVar to control the plugin are:

sm_kb_enabled 1 = on (default), 0 = off
sm_kb_health_normal Amount of health to add on a kill (default = 20)
sm_kb_health_headshot Amount of health to add on a headshot kill (default = 30)
sm_kb_health_knife Amount of health to add on a knife kill (default = 50)
sm_kb_health_limit The limit of health to reach (default = 100)
sm_kb_armor_normal Amount of armor to add on a kill (default = 10)
sm_kb_armor_headshot Amount of armor to add on a headshot kill (default = 20)
sm_kb_armor_knife Amount of armor to add on a knife kill (default = 30)
sm_kb_armor_limit The limit of armor to reach (default = 100)

And remove the message of how much healt you get on a kill. May be will be needed, because 1000 of healt will not showed in the bottom of the screen.

Edit:
  • Fixed Error.
  • Check if the added health or armor is less than 0, then do nothing.
  • Version = 1.1.2

--------------------------------------------------------------------------------------------
MarceCSS - Irq []
Attached Files
File Type: sp Get Plugin or Get Source (kb2.sp - 383 views - 4.0 KB)
File Type: smx kb2.smx (5.5 KB, 138 views)

Last edited by MarceCSS; 09-26-2015 at 01:39.
MarceCSS is offline