Luk's ULX Karma Betting for TTT
Plugin DescriptionThis plugin adds the !bet command with which (dead or spectating) players are able to bet their karma on a certain team (traitor or innocent). After a configurable amount of corpses have been found, these bets are shown (anonymously) to all players which may very well increase the pressure on the living ones!
Imagine you're innocent and thinking you're alive with many other innocents. But then you notice that other players are betting 600 Karma in total on the enemy team! Jesus, the pressue! And the potential satisfaction of making them all lose their karma for not trusting in your skills!
This plugin includes saving all bets that have ever been placed to SQLite or MySQL. Latter can be used to include this plugin into your MOTD (like in mine,
see here)
Command list- !bet <team> <amount>
Bets <amount> (min/max configurable) of your karma on team <team> (e.g. i or innocent or t or traitor) - !mybets [<length>]
Shows your total betting balance. Can be "all" for all time or 1-31 for the last 1-31 days. Defaults to "all" - !bestbets
Shows the 5 players with the highest bet balance of the last 7 days - !worstbets
Shows the 5 players with the lowest bet balance of the last 7 days
Installation (WORKSHOP)1. Get it from the Steam Workshop
hereInstallation (MANUALLY)Download the plugin here:
https://github.com/doctorluk/ulx-karma-betting2. Unzip the file
3. Upload the folder
betting into your garrysmod\addons folder
ConfigurationRefer to the
Steam Workshop Link and read the addon's description.
ContributionSince this plugin is Open Source, feel free to contribute! I'm by no means an expert in LUA, so bugfixes, feature suggestions etc. are very welcome!
My other plugins:
TTT Role Announcer,
ULX Age Verificator,
CS:S Installation Checker