Raised This Month: $182 Target: $400
 45% 

Simple Bounty


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Dr!fter
The Salt Boss
Join Date: Mar 2007
Plugin ID:
1136
Plugin Version:
1.2.1
Plugin Category:
Gameplay
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
    33 
    Plugin Description:
    A Bounty is set on a player after x kills in a row. Every kill after that their bounty increases by a set amount and bonus is given if the kill was a headshot.
    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, 1753 views)
    File Type: sp Get Plugin or Get Source (SimpleBounty.sp - 3276 views - 9.3 KB)

    Last edited by Dr!fter; 10-26-2009 at 20:34.
    Dr!fter is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 09-05-2009 , 17:09   Re: Simple Bounty
    Reply With Quote #2

    You could make the plugin so that it auto creates the cfg file

    Bcw nice plugin.
    PStar is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 09-05-2009 , 18:34   Re: Simple Bounty
    Reply With Quote #3

    It does auto create i just decided to include it
    Dr!fter is offline
    mycologist
    SourceMod Donor
    Join Date: Sep 2008
    Location: Sep 2008
    Old 09-06-2009 , 07:51   Re: Simple Bounty
    Reply With Quote #4

    Great plugin, much appreciated. I'm installing it now, I'll let you know if there's any issues.
    __________________

    mycologist is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 09-07-2009 , 11:36   Re: Simple Bounty
    Reply With Quote #5

    Updated added the panel to see who has a bounty. Typeing "bounty" (without quotes) in chat or team chat will display a panel with the players name and the ammount of their bounty.
    Dr!fter is offline
    berni
    SourceMod Plugin Approver
    Join Date: May 2007
    Location: Austria
    Old 09-11-2009 , 14:11   Re: Simple Bounty
    Reply With Quote #6

    Add the ConVar flag FCVAR_DONTRECORD to sm_simple_bounty_version please.

    Approved Greetings ~Berni
    __________________
    Why reinvent the wheel ? Download smlib with over 350 useful functions.

    When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
    powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
    berni is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 09-11-2009 , 22:04   Re: Simple Bounty
    Reply With Quote #7

    Quote:
    Originally Posted by berni View Post
    Add the ConVar flag FCVAR_DONTRECORD to sm_simple_bounty_version please.

    Approved Greetings ~Berni
    Done and Thank You!
    Dr!fter is offline
    PStar
    Veteran Member
    Join Date: Mar 2008
    Old 09-20-2009 , 17:00   Re: Simple Bounty
    Reply With Quote #8

    Hy Can you add custom bounty function, with a menu?

    So players could put bounty on other players trought the menu.
    PStar is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 09-21-2009 , 12:26   Re: Simple Bounty
    Reply With Quote #9

    Ill see about it i want to keep it really simple. Idk if ill add it to the menu but i might make a command.
    Dr!fter is offline
    Dr!fter
    The Salt Boss
    Join Date: Mar 2007
    Old 10-26-2009 , 20:30   Re: Simple Bounty
    Reply With Quote #10

    Finally had time to update this. Fixed a few bugs add bonus for hostie rescue aswell as bomb blowing up (if you planted) Make sure to delete the old config file so the new cvars are written into it or overwrite with the new one. Aswell as added a admin command to set a bounty on someone. Read orginal post for more info.
    Dr!fter is offline
    Reply


    Thread Tools
    Display Modes

    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 09:15.


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