Raised This Month: $32 Target: $400
 8% 

Kill Bonus


Post New Thread Reply   
 
Thread Tools Display Modes
VamPiro
Junior Member
Join Date: Feb 2010
Old 02-18-2010 , 07:04   Re: Kill Bonus
Reply With Quote #11

L 02/18/2010 - 14:137: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 02/18/2010 - 14:137: [SM] Displaying call stack trace for plugin "killbonus_sl6_ct_knife.smx":
L 02/18/2010 - 14:137: [SM] [0] Line 49, killbonus_sl6_ct_knife.sp::hookPlayerDie()
VamPiro is offline
Mortiegama
Senior Member
Join Date: Feb 2010
Old 02-22-2010 , 18:59   Re: Kill Bonus
Reply With Quote #12

This is a great plugin, I threw it into my L4D2 server and it works like a charm. I just wonder if there's a way to make it so that the CI don't give the HP, only the SI and Tank/Witch.
Mortiegama is offline
Dubwiser
New Member
Join Date: Sep 2010
Old 09-21-2010 , 00:21   Re: Kill Bonus
Reply With Quote #13

Does anybody know if there's a similar plugin for TF2? been searching for 2 days but no luck, and this one works weird in TF2(sometimes it takes like 100 hp away instead of giving any as bonus...) Thank you.
Dubwiser is offline
Speak
Junior Member
Join Date: Oct 2010
Old 10-03-2010 , 11:41   Re: Kill Bonus
Reply With Quote #14

Hey. How do I change the settings T_T...

typing kb_headshot, hp, or any other command in the console or chat doesn't do anything. How Do I modify this ;/?
Speak is offline
zepper
BANNED
Join Date: May 2009
Location: Latvia, Riga
Old 10-04-2010 , 20:21   Re: Kill Bonus
Reply With Quote #15

Quote:
Originally Posted by Speak View Post
Hey. How do I change the settings T_T...

typing kb_headshot, hp, or any other command in the console or chat doesn't do anything. How Do I modify this ;/?
Add this in server.cfg file
Code:
// #KillBonus#
// kb_enabled: Enabled\Disbales The Plugin (Def: 1)
// kb_headshot: Hp amount to add when the kill was a headshot (Def: 30)
// kb_hp: Hp amount to add on a normal kill (Def: 20)
// kb_maxhp: Max Amount of hp a user can get on top of his hp (Def: 100)
kb_enabled 1
kb_headshot 30
kb_hp 20
kb_maxhp 100
zepper is offline
Funky_AchTuNG
Junior Member
Join Date: Jul 2010
Old 10-27-2010 , 05:09   Re: Kill Bonus
Reply With Quote #16

How to add this only for users with admin flag "a" ?
Funky_AchTuNG is offline
einwad
Member
Join Date: Mar 2011
Location: Romania (Brazil)
Old 04-16-2011 , 06:22   Re: Kill Bonus
Reply With Quote #17

L 04/16/2011 - 12:26:07: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 04/16/2011 - 12:26:07: [SM] Displaying call stack trace for plugin "killbonus.smx":
L 04/16/2011 - 12:26:07: [SM] [0] Line 37, /home/groups/alliedmodders/forums/files/2/9/5/1/9/19430.attach::hookPlayerDie()
L 04/16/2011 - 12:55:28: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 04/16/2011 - 12:55:28: [SM] Displaying call stack trace for plugin "killbonus.smx":
L 04/16/2011 - 12:55:28: [SM] [0] Line 37, /home/groups/alliedmodders/forums/files/2/9/5/1/9/19430.attach::hookPlayerDie()
L 04/16/2011 - 13:24:22: [SM] Native "GetClientHealth" reported: Client index 0 is invalid
L 04/16/2011 - 13:24:22: [SM] Displaying call stack trace for plugin "killbonus.smx":
L 04/16/2011 - 13:24:22: [SM] [0] Line 37, /home/groups/alliedmodders/forums/files/2/9/5/1/9/19430.attach::hookPlayerDie()
einwad is offline
Send a message via Skype™ to einwad
egorka2
Member
Join Date: Jun 2010
Old 08-18-2011 , 17:19   Re: Kill Bonus
Reply With Quote #18

[SM] Failed to load plugin "killbonus.smx": Unable to load plugin (error 2: Decompressor was not found)
egorka2 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-18-2011 , 23:41   Re: Kill Bonus
Reply With Quote #19

Not sure how many people are still interested in this plugin, but I fixed it for you guys...

added the knife kill variable HP amount you can set. Added the if client == 0 check to fix those error messages.

I didn't add much else, wanted to keep it as original as the author had it - I didn't add a config file, so I guess you just have to add the variables to your server.cfg or sourcemod.cfg file...

enjoy

CVars are:

kb_enabled
kb_knife 50
kb_headshot 30
kb_hp 20
kb_maxhp 100

You can set those to whatever you want... as long as the killer doesn't have the maxhp (default 100) then they will get the hp bonus amount depending on what type of kill they get.
Attached Files
File Type: sp Get Plugin or Get Source (killbonus.sp - 621 views - 3.0 KB)
TnTSCS is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-18-2011 , 23:50   Re: Kill Bonus
Reply With Quote #20

Quote:
Originally Posted by Funky_AchTuNG View Post
How to add this only for users with admin flag "a" ?
Here's a version for you - people with admin flag "a" only get the kill bonus
Attached Files
File Type: sp Get Plugin or Get Source (vip_killbonus.sp - 408 views - 3.2 KB)
TnTSCS 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 23:03.


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