View Single Post
Plugin Info:     Modification:          Category:          Approver:   v3x (159)
Deviance
Veteran Member
Join Date: Nov 2004
Location: Sweden
Old 05-24-2006 , 07:00   KD Money - *UPDATE* v 0.5
Reply With Quote #1

This plugin give's players money by victim's or killer's KD ratio when killing him/her.

They don't get money when:
1. killing themself's
2. killing teammate

The method is: KD ratio * sv_reward.

Idea
I got the idea from a pack to Mattie's Event plugin( CSS plugin ), there you got money by killing someone. but you also got when you killed yourself/teammate

Cvars
sv_reward(Def: 500) - this is how much they get(* their KD ratio)
kdmoney_enabled(Def: 1) - if 0: disabled, if 1: enabled
kdmoney_usehud(Def: 1) - 0: Uses chat - 1: Uses HUD
kdmoney_kduse(Def: 0) - 0: Uses Victim's K : D - 1: Uses Killer's K : D

Example
  1. player A kills player B.
  2. player B has a K : D ratio of 1.00, and sv_reward is 1000, and kdmoney_kduse is 0
  3. then would player A get 1000 $

I hope you enjoy this plugin and all idea's are welcome ;)

UPDATE 06-06-10, fixed strange error when killed had more then 1 kills and no deaths, the plugin got strange and removed all money.
Added Cvar

fixed the 'def money reward' (thx Throstur)

UPDATE 05-08-2006:
  • Added HUD
  • Now you can choose to use Victim's or Killer's K : D
Attached Files
File Type: sma Get Plugin or Get Source (kdmoney.sma - 2125 views - 2.2 KB)

Last edited by Deviance; 04-23-2007 at 15:09.
Deviance is offline