Thread: Simple Bounty
View Single Post
Author Message
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 09-04-2009 , 18:06   Simple Bounty
Reply With Quote #1

This is a simple bounty plugin based off this one http://forums.alliedmods.net/showthread.php?p=494220 it has less features it dosnt give bounty for hostage kills. No IRC function or ad function. After x kills you get awarded the bounty, then the amount will increase every kill after that depending on what is set in the config. A bonus amount is also given for a headshot (set in config). To see who has a bounty you can type in chat or team chat "bounty" (without quotes) and the panel will show who has bounties and how much of a bounty. It was completly coded by me from scratch. Also be kind this is my first plugin released to public Feedback is appreciated.
Credit:
^BuGs^ (for the original plugin)

CVARS:
Code:
// This file was auto-generated by SourceMod (v1.2.0)
// ConVars for plugin "SimpleBounty.smx"
 
// Disable or enable bounty plugin
// -
// Default: "1"
sm_bounty "1"
// How much bounty goes up to player that planted bomb if bomb explodes
// -
// Default: "250"
sm_bounty_bomb "250"
// Money added to players bounty per kill
// -
// Default: "250"
sm_bounty_bonus "250"
// 1 = Print To chat 2 = print to center 0 = disable messages
// -
// Default: "1"
sm_bounty_display "1"
// Headshot bonus how much more they get if the kill was a headshot.
// -
// Default: "125"
sm_bounty_headshot "125"
// How much bounty should go up per hostie resuced
// -
// Default: "100"
sm_bounty_hostie "100"
// Kills needed before player has a bounty
// -
// Default: "5"
sm_bounty_kills "5"
// Money to add to player bounties if they survive the round
// -
// Default: "250"
sm_bounty_round "250"
// Start money of bounty after sm_bounty_kills is reached
// -
// Default: "1000"
sm_bounty_start "1000"
// Bounty Version
// -
// Default: "1.2.1"
sm_simple_bounty_version "1.2.1"
Admin Commands:
Code:
//Set a bounty on someone. admin flag cvar.
sm_setbounty <target> <ammount>
Install instructions:
Put SimpleBounty.smx in
cstrike/addons/sourcemod/plugins

and plugins.bounty.cfg in
cstrike/cfg/sourcemod/

You can also just install the plugin and let it run to autogenerate the config in the same directory

To do:
Translations (maybe)

Changelog:
1.0.0 - Initial release

1.0.1 - changed public cvar to sm_simple_bounty_version

1.1.0 - Added panel to see who has bounty

1.1.1 - Added FCVAR_DONTRECORD to version cvar

1.2.1 - Fixed a few tiny bugs and added command to set bounty on a player. Added more cvars for bounties, one for rescuing hostages and already having a bounty and one for bomb blowing up when you have a bounty. Make sure to delete previous config in cfg/sourcemod
Attached Files
File Type: cfg plugins.bounty.cfg (1.0 KB, 2217 views)
File Type: sp Get Plugin or Get Source (SimpleBounty.sp - 4583 views - 9.3 KB)

Last edited by Dr!fter; 10-26-2009 at 20:34.
Dr!fter is offline