Author Topic: Goldbets  (Read 3359 times)

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Goldbets
« on: November 05, 2011, 07:05:15 AM »
This is a modified version of Teambets (also modified by a member of these forums, but not to this degree) which has been changed to use a pot-based system (to avoid injecting large amounts of gold into a server's economy) although I have removed several of the features, I'd be happy to re-add them if people would actually use them.

sm_goldbet_enable
sm_goldbet_maximum Which controls the maximum amount a player can bet, defaulting to 40
sm_goldbet_minimum Controls the minimum amount a player can bet, defaulting to 5
sm_goldbet_betratio Defines the amount you can win per gold you bet

Update: Fixed the translation issue as well as a minor bug (due to some issues with integer math, sometimes it would award no gold, even if you won)

Also, due to this plugin's simplicity and usefulness I wouldn't mind if this was one of the packaged addons (especially after I add my last addition, less requests).
« Last Edit: November 06, 2011, 05:14:35 PM by Necavi »

Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: Goldbets
« Reply #1 on: November 06, 2011, 01:18:07 PM »
looks good, commit it to svn

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Goldbets
« Reply #2 on: November 06, 2011, 05:11:02 PM »
Commited, as well as updated to add two more cvars, fix it so that rebetting is impossible and a few other small improvements.

loranger

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Goldbets
« Reply #3 on: January 30, 2012, 02:55:02 AM »
can you make a version compatible for teamfortress2?  with actual team name blu and red

Necavi

  • Sr. Member
  • ****
  • Posts: 499
    • View Profile
Re: Goldbets
« Reply #4 on: January 30, 2012, 03:35:43 AM »
Committed with TF2 support.

Addendum: Translations will be broken by this, you need to change "Invalid_Team_for_Bet" to "Invalid_Team_for_Bet_CSS" and "Invalid_Team_for_Bet_TF2".
« Last Edit: January 30, 2012, 03:42:58 AM by Necavi »

Ownz

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 2437
  • chmod -R 777 *
    • View Profile
    • OwnageClan
Re: Goldbets
« Reply #5 on: January 31, 2012, 11:21:52 AM »
u mean, update translations from the svn