AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   TeamBets (Mani Bet Module Conversion) (https://forums.alliedmods.net/showthread.php?t=56601)

ferret 06-16-2007 21:10

TeamBets (Mani Bet Module Conversion)
 
2 Attachment(s)
TeamBets
Version 1.4

By: ferret!
Thanks: Mani for original idea

Description

This plugin allows players to bet on which team will win the round. Their winnings are based on how many players on each team is still alive. Bomb defusals and hostages rescues, etc, count as well.

Players bet by saying "bet team amount". Team must be T or CT. Amount can be either an actual number, or the words all, half, or third.

Examples:
bet t all
bet t half
bet t 3000

Cvars
  • sm_bet
    • Turns the bet plugin on and off
    • Default is on. Set to 0 to disable.
  • sm_bet_deadonly
    • Sets whether or not living players can bet.
    • Default is on. Set to 0 to disable.
  • sm_bet_announce
    • Announces when the teams are 1v1. Does not occur if sm_bet_onevsmany is on.
    • Default is off. Set to 1 to enable.
  • sm_bet_onevsmany
    • Sets whether or not a player is rewarded the "Losing Bets" when its One vs Many. For example, if there are 2 players on each team, and one dies, it's now 1v2. A message will be displayed stating to place your bets. If the 1 player beats the 2 players, they will be rewarded with all the money lost from players who bet on the 2 players. This only counts bets that occured after 1v2 began, not before.
    • Default is 0 or "disabled". Set to 2 or higher to enable.
Change Log:
  • Version 1.4 (June 29th)
    • Updated to conform to new plugin submission standards.
    • Changed version CVAR to sm_teambets_version
  • Version 1.3 (June 26th)
    • Exposed sm_bet_version cvar for tracking usage
    • Corrected translation files
  • June 18th 9PM EST
    • German translations added to plugins.teambets.cfg, provided by Isias
    • Fixed english translation of One Vs Many Start
  • Version 1.2 (June 18th)
    • Embarassing. I forgot to get the player's money before giving them back their bid and winnings.
  • June 17th Part 2
    • French Translations by magicyan (Redownload plugin.teambets.cfg)
    • Changed [TB] prefix to [Bet]
  • June 17th
    • Changed message prefix from [SM] to [TB]
    • Added a "use bet team amount" advertisement, shown to players on connect.
    • Several fixes to the One Vs Many code
    • Added "team_say" so you can bet in team_say now
    • We only hook player death and round end events is sm_bet is on now.
    • Officially incremented the version to 1.0
Suggested Plugins

It is suggested you use Bugs's "No Spec for Cash" plugin with TeamBets. It will stop players from betting all their money, switching to spectator, then switching back to their old team to get a fresh $800.

Link: http://forums.alliedmods.net/showthread.php?t=57405

Bugs, Requests, Translations, or Other Issues


Please use my project area on the Allied Modders Bug Tracker to report any issues or make requests. Your login for the bug tracker is the same as your forum login. Set the category to this plugin's name.

tcviper 06-17-2007 07:15

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
Nice, very nice :) Keep them coming people!

FlyingMongoose 06-17-2007 09:48

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
Good job, I'm liking the less and less necessity to mani we've got going >.<

ferret 06-17-2007 16:34

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
June 17th
  • Changed message prefix from [SM] to [TB]
  • Added a "use bet team amount" advertisement, shown to players on connect.
  • Several fixes to the One Vs Many code
  • Added "team_say" so you can bet in team_say now
  • We only hook player death and round end events is sm_bet is on now.

Falco 06-17-2007 16:52

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
11 "Team Bets" (0.1) by ferret
In debug I get this:
Quote:

L 06/17/2007 - 14:49:07: [SM] Native "PrintToChat" reported: Client 1 is not in game
L 06/17/2007 - 14:49:07: [SM] Displaying call stack trace:
L 06/17/2007 - 14:49:07: [SM] [0] Line 285, /home/groups/alliedmodders/forums/files/1/4/0/6/8/171
07.attach::Timer_Advertise()

ferret 06-17-2007 16:57

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
You don't have the latest version, redownload it. The June17th update fixed that. Make sure it says 1.0

Falco 06-17-2007 17:18

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
ok, cool

FlyingMongoose 06-17-2007 18:20

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
I want to point out [TB] may imply Team Balancer. I believe the GMP Team Balancer uses this prefxi.

I suggest [Bet] for a prefix.

ferret 06-17-2007 18:25

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
Don't get smart with me :P I'll change it in 1.1.....

FlyingMongoose 06-17-2007 18:31

Re: [PLUGIN] TeamBets (Mani Bet Module Conversion)
 
I'm not, I'm just pointing out possible problems. and helping to avoid potential confusion.


All times are GMT -4. The time now is 07:46.

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