EventScripts Forums
Mattie's EventScripts and Source Forums
Mattie recommends...
Premier Sponsor:Platinum Sponsor:
 
Script Categories
addon (49) admin (269) admins (14) advert (15) adverts (19) afk (15) alerts (12) ammo (23) anti (15) auth (16) automatic (11) awp (23) ban (18) ba_jail (17) bhop (19) block (18) bomb (40) bonus (23) bot (24) bot-management (19) bots (17) bunnyhop (11) Buy (21) cash (65) chat (57) cheat (11) clan (16) classes (22) color (21) colors (18) command (20) commands (18) config (22) connect (42) CS:S (16) css (2513) Damage (36) database (11) dead (15) death (19) deathmatch (70) deathrun (12) disconnect (18) Dissolve (11) dm (20) dod:s (11) dods (389) easy (18) effects (120) English (15) entity (21) es_tools (12) Eventscript (12) flashbang (25) français (99) french (36) fun (288) funny (16) Gabeee (11) gameplay (174) give (16) gravity (11) grenade (25) grenades (29) gun (14) GunGame (26) GunGame5 (11) guns (17) Hack (15) headshot (32) health (55) hegrenade (13) hl2dm (332) HP (13) info (48) information (16) IP (11) jail (26) jailbreak (11) join (23) jump (12) kick (22) kill (44) kills (22) knife (57) leveling (36) management (14) mani (14) map (25) map-management (27) maps (15) match (17) menu (106) message (20) messaging (52) mod (109) model (14) models (32) money (42) motd (13) music (29) mute (17) nades (18) name (13) noblock (35) player (40) player-management (31) player-tracking (28) popup (56) props (23) protection (27) punishment (49) python (63) quake (18) radio (21) random (36) rank (35) rates (16) rcon (13) realism (21) respawn (61) restrict (36) round (20) rpg (24) rules (41) say (11) scout (19) Script (20) script-helper (25) scriptpack (33) sdk (151) server (44) server-tools (42) shop (12) silly (31) simple (27) skins (25) slay (13) soccer (11) sound (45) sounds (92) spanish (11) spawn (63) speed (25) statistics (13) stats (48) status (11) STEAMID (24) Superhero (13) surf (31) Team (25) team-balance (14) teleport (12) text (14) TF2 (143) time (17) timer (14) tools (15) tracers (17) triggers (11) uedi (18) uses_auth (18) utility (11) vip (12) vote (36) voting (22) war (20) wcs (24) wcs:Python (32) weapon (77) weapons (114) web (14) welcome (12) zm (24) zombie (90) zombiemod (51) zombies (11)
Script Authors
*XYZ*SaYnt (12) .:MiB:. (11) .eMko* (6) 101satoon101 (10) 3R10N (24) 4u571n91 (5) 7355608 (9) Absolute (8) Ace Rimmer (40) adminc (5) Adz (8) AgathaKnuppelkuh (8) aidden (8) ajax (5) ak_47 (6) Al3c Tr3v3lyan (6) allstareng (5) ashbash1987 (9) ATAMAH (7) aznone (5) B00M (5) BackRaw (41) BFH_RedBull (8) bigfabi (7) Bioko (7) Blade (10) bladesback (13) bobdole (11) bodzsar1 (8) bonbon (36) Brainsucker (30) cagemonkey (8) carbon-14 (10) CaskioUTF (5) cbirou (15) ChaCaLz2psy4 (5) CharlesT (5) Chrisber (5) chrismrulz (9) Chun (6) cladiron (10) clipz934 (8) Colster (21) Cookieman8 (7) craziest (10) DanielB (19) Darkness123 (8) Dave (9) dbozan99 (7) deathx9 (5) Deathyy (16) dhack (16) Di[M]aN (12) DoCky (27) Don (15) dordtcore (8) DragonFreddo (8) Drassil (5) Einlanzers (42) EmbouT (10) emilplov (7) Errant (10) Eun (6) Fantole (9) Franc1sco (10) freddukes (18) Frequency (6) Fulmine (5) GAMEREN2 (8) german9114 (13) GODJonez (38) GoodfellaDeal (5) Hansi (6) HitThePipe (7) HOLLDIDAY (9) Icetouch (6) ichthys (25) infamous1 (9) Jeff91 (45) JoeyT2006 (30) Juba_PornBorn (12) jxl180 (10) KDBFame (6) L'In20Cible (7) Largo Usagi (10) Lobe (11) loKkdoKk (7) lolo-le-haricot (7) LosNir (5) Lumpi@Work (9) M4rc3L-XCN (7) macshot (6) Matth (6) Mattie (20) MBchrono (15) McFly (20) Medda (5) Memphis-84 (10) Messiah93 (12) Mickyy (5) micmacx (6) Mitchell (5) Mordavolt (7) MrScriptaz (5) mryoung (6) Nicolous (26) ojii (31) Omega_K2 (9) Owned|Myself (8) P3N (7) pand3mic (5) parsimba (5) Pascal257 (9) PatPeter (7) PDrop (10) Phaedrus (18) PhantOm Fury (7) phoenix131 (9) pinkyyy -.- (5) pitbull0993 (7) randomknifer (9) Ratzee (6) ReaCtioN2oo9 (6) Rennnyyy (17) revolutionfighters (6) RideGuy (12) Rio (9) Roeliekt (6) runamagic (13) sandking220 (6) Sarcasm_Poisoning (10) saRs| Johnny-5 (13) Schubaal (10) sea212 (5) sega74rus (7) sgt.angel (6) sicilia (5) sicman_adrian (22) skillz92 (7) sn4k3 (18) Snake12 (7) snake38 (10) sonicsight (7) spoonman184 (8) stabby (22) stas (22) Strontium Dog (30) SumGuy14 (25) SuperDave (45) surfteam (5) TaCo (5) TanaToS (17) Tealk (6) teowow (16) TheCheeTaH (20) TheDonFather (5) theresthatguy (6) Tiny Tod (7) Totyahun (9) uedi (38) Undead (25) usernamesaretaken (15) Warren (13) westham (6) WhiteAvenger (7) Wonder (14) X-Mania (5) XE_ManUp (13) xfalcon61 (5) zSweetXz (5) [Cs]Lord_Inferno2 (11) [NATO]Hunter (28) ||Wolf|| (10)
Search

Post new topic Reply to topic
Go to page 1, 2, 3, 4, 5 ... 21  Next
Author Message
User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-21, 10:30 pm 
   Post subject: Counter-Bet! Script Pack

UPDATED July 25, 2005


Counter-Bet! Script Pack


Requirements
EventScripts v0.9.0
Admin Plugin (Mani version Q, BeetlesMod, NemoD)

NOTE: if you use mani, there is a setting to turn off the givecash/takecash console spam: mani_mute_con_command_spam 1


Features
GAMBLE, GAMBLE, GAMBLE! it's simple... bet on which team will win. you can bet at any time as long as you are dead. you can only bet once per round, and you will see a confirmation message once you have successfully placed a bet.

there is an odds system which determines how much you can win based on your wager. the odds will simply be the number of players alive at the time of the bet. if $1000 is wagered when there are 2 terrorists and 8 counter-terrorists, a bet on CT stands to win $250 (4:1 odds) while a bet on T stands to win $4000 (1:4 longshot).

THIS REPLACES the LastManStanding Script Pack, and it is not recommended that you use them at the same time. this is everything the LastManStanding Script Pack was plus more. you will still get a message announcing 1-on-1 situations, and the odds for a bet placed at that time will still be 1:1.

if you want the "ONE AND ONLY" sound to play when there is one player left on a team, you need the One and Only Script Pack. be sure to use the addon version made specifically for use with Counter-Bet.

Usage
bet <team> <amount>
<team> is t or ct
<amount> is cash amount you want to bet -- can be a number, "all" or "1k" type format.


Installation
(this is a SCRIPT PACK, which means the files are self contained and separate requiring no editing of individual event files other than autoexec.cfg. the files are intended to remain in their own registered subdirectory and can be turned on/off using the eventscripts_register/eventscripts_unregister commands. see <this thread> for detailed instructions)

1. unzip the directory counter-bet into your eventscripts_subdirectory if you have one. (if you don't have one, unzip the directory counter-bet into your cfg directory)

2. put the following line in autoexec.cfg
Code:
eventscripts_register counter-bet

3. adjust the options in counter-bet/admin_settings.cfg

NOTE: NO OTHER FILE EDITING REQUIRED! CHANGING ANY OTHER FILES WILL RESULT IN AN IMPROPER INSTALLATION.


HOW TO CHECK INSTALLATION

- please take the time to ensure proper installation, especially if you are new to scriptpack installations. a standard scriptpack install DOES NOT involve editing event files.

- if you encounter the message "DEBUG - Counter-Bet installed incorrectly!", please go to >> this thread << first for details on scriptpack installation. if you have any questions about installation of this or other scriptpacks, feel free to post in that thread so others can benefit from your problems.

- if you have no error messages but the scriptpack still doesn't work, say "bet" and report here what the results are.

- if you post here reporting a problem, at the very least post the results of saying "bet". also please try to convince me that you have installed correctly by giving details like eventscripts_subdirectory, file paths, eventscripts_register lines, etc. stating your platform can't hurt either, as well as any other details like console info. otherwise my first assumption will be that the problem is with your installation.

---

once you think it's running properly, you can check the script in test mode by entering this in server console or by rcon (at the moment, all this does is allow living players to bet).
Code:
es_setinfo cbet_testmode 1


Version History
07/25/05
- added support for beetlesmod and nemod
- improved player tracking for more accurate player counts

07/09/05
- added cvar for maximum bet amount
- added cvar for maximum payoff amount
- added cvar for minimum number of players on server required
- fixed "k" bet amounts
- fixed errant "SHOWDOWN" messages if CT killed

06/21/05 (beta)
- initial release

------------------------------------------------------------------
:!: FRENCH TRANSLATION version by toz:
link --> Counter-Bet! Script Pack [ French translation ]
------------------------------------------------------------------


Last edited by ajax on 2005-08-10, 11:48 am, edited 13 times in total.




User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-21, 10:37 pm 

while in beta, the bulk of revisions will take place in the first week... so come back for updates.

also check for spawn lag as seen in the earlier versions of LastManStanding. i'm hoping that ESv0.8.2 will run more efficiently, but i can break up the code if i'm forced to.


User avatar
Site Administrator
Site Administrator
Profile

Posts: 7438
Location:
At Work
 
New postPosted: 2005-06-24, 11:20 am 

Just a suggestion/thought I'd been meaning to share for this:

When I was first thinking of making a betting plugin, I was going to try limiting any influx of 'new' money into the game. In addition, I figured we'd never be able to get the odds just right. So we tried to apply a betting scheme with built-in odds that used entirely the money of players. (I.e. no 'new' money is created when someone wins and no one loses.)

Our plan was to do the following:
    1. Any player can place a bet on either team at any time.
    2. When the round ends, players are paid out like this:
      a. Winners get their money back (of course)
      b. Winners take a share of the losing betters' sum total equal to the percentage they had in the pot for their side.
To explain how it'd work, it just goes this way:
    1. I bet $300 on Terrorists
    2. Ajax bets $1000 on CTs
    3. Maban bets $500 on Ts
    4. Ichthys bets $3000 on CTs
    5. Shro bets $400 on Ts
In the end we have:
    Bet on Ts: $1200
    Bet on CT: $3000
So, let's say the T's win:
    1. The T's get their money back. The CT's money goes into a 'pool'.
    2. I get my percentage of the winnings:
      a. I bet 300 of the total 1200 on T's, so that's 25%
      b. I get 25% of the winnings, which is $750
    3. Maban gets his percentage: (500/1200) * (3000) = $1250
    4. Shro gets his percentage (400/1200) * (3000) = $1000
If no one was willing to bet on one of the teams, then no one would win or lose because there'd be no money to exchange. I.e., no one would 'take the bet' because it's quite likely the other team was going to lose.

In addition, we'd throw out any bet that wasn't received within the 5 (or so) seconds before the end of the game. This would help prevent sniping, and would encourage people to bet earlier.

The biggest drawback is that if someone bet $5000 on one team, someone could chip in with $1 and risk very little for a lot of return. Economics should force the 2nd guy out with higher bets (since no one wants to see a $1 bet win), but you might consider placing minimum bet sizes to help offset this possibility.

Anyway, just some ideas. If you're not keen on writing such a script, I might do so some day just to see how it works out.
-Mattie


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-24, 11:32 am 

that is interesting. the truth is i like to keep it simple and direct. just an odds system at all is more indirect than i would like, and the more i have to explain the system (in-game) the less appeal it has for me.

but let me know when you have yours running on the server so i can check it out :wink: seriously though, i am keeping track of all the suggested alternatives so that if i ever get around to making a betting plugin, i can use them as different options.


User avatar
New User
Profile

Posts: 21
Location:
Chicagoland
 
New postPosted: 2005-06-24, 3:07 pm 

Great script-pack! I'm running it on my server now and I must give you kudos for increasing the betting option beyond the 1-on-1 scenerio. There are dead people placing bets all the time hoping they can make some extra cash.

Several players already said they can't wait to die so they can place their bets!

If I may brainstorm a bit:

Would it be difficult to include a betting limit, so that players can have the fun of betting but aren't making $8,000 out of thin air on easy bets. Maybe have an option to cap betting at 1k,2k or 3k. (all the fun of betting without so much of the advantage). (Although mattie's crazy advanced system may take care of that).

Maybe it would be nice if the living players saw message indicating how much is riding on the rest of the round. "Note to you: There are $23,530 current bet on your victory/defeat!"

I love competition. How about saving a players cash into a "bank" at the end of the game so that they can compete for the biggest bank-account. Kind of like the "rank" system but with money. Maybe have a method for withdrawls so you can keep some good equipment going when you join a loosing team.

How about betting on yourself while you are still alive? "I bet that I'll get the most kills this round", "I bet I'll get first-blood" or "I bet I'll rescue the hostages". Bet's of that nature would probably need to be offset by someone who bets agaisn't them.

Sorry for rambling, I love thinking of these things.
-James


User avatar
New User
Profile

Posts: 16
 
New postPosted: 2005-06-24, 5:19 pm 

What about having the winning player in a 1v1 situation getting part of the pot. So the winner of a 1v1 would get a % of the pot that was bet on him... So if $5000 was bet on player A and Player A wins the round in a 1v1 situation, he gets, say 5% off the top ($250) of the total pot and then the rest of the players get their shares AFTER the winning player takes his share.

I mean the winning player in a 1v1 did the work to make the money for everyone and he can't bet on himself ;)

Also the winning player in a 1v1 would only get part of the pot if bets were placed on him when he was actually in a 1v1 situation. So if people were betting on CT, for example, when there were 5 CTs and 2 Ts and then it works out to be 1 CT vs 1 T, only bets placed when its truly 1v1 would be available for the winner of the 1v1...

Hope that makes sense... I just want the guy doing all the work to get his share ;)

_________________
Clan =SS= Server: clanss.nuclearfallout.net
Clan =SS= Website


User avatar
New User
Profile

Posts: 21
Location:
Chicagoland
 
New postPosted: 2005-06-26, 3:25 pm 

Yeah that's a nice idea! I've noticed that most people bet agaisn't the longshot. So if it's 5 on 1 left, almost everybody bets on the 5. If the 1 guy wins the match, he should take a portion of the money lost by all the people hoping for his demise.


User avatar
New User
Profile

Posts: 20
 
New postPosted: 2005-06-28, 8:51 am 

HI!

I installed everything how in the tut

Then on my server there is:

Counter-Bet: bet after you die

OK

Then I am dead and i type : bet t 100 e.g

And nothing happens!

WHY

Please answer!!


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-28, 1:05 pm 

thanks for the suggestions, guys. i'll consider them for future releases.


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-28, 1:05 pm 

lessiv wrote:
HI!

I installed everything how in the tut

Then on my server there is:

Counter-Bet: bet after you die

OK

Then I am dead and i type : bet t 100 e.g

And nothing happens!

WHY

Please answer!!


can you tell me what the server console says when you say "bet"?


User avatar
New User
Profile

Posts: 20
 
New postPosted: 2005-06-28, 1:53 pm 

NOTHING is in there

but eventscript is working I have Say:Sounds on my server and they are working very well.

THX for your answer


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-28, 9:52 pm 

lessiv wrote:
NOTHING is in there

but eventscript is working I have Say:Sounds on my server and they are working very well.

THX for your answer


enter this code at the end of your file counter-bet/player_say.cfg
Code:
// temporary debug code
es_msg TEXT = event_var(text)
es_msg CBET_SAY = server_var(cbet_say)
es_msg CBET = server_var(cbet)
es_msg BET PATH = server_var(cbet_bet.cfg)
es_msg ES SUB = server_var(eventscripts_subdirectory)


1. when you say "bet" what is the result?

2. is it a windows or linux server?

3. what is the file path of your counter-bet directory?


User avatar
New User
Profile

Posts: 20
 
New postPosted: 2005-06-29, 1:53 am 

Great script Ajax!

Any of you guys that use it experience lag on your servers? I treid using the LastManStanding but it just produced to much lag on our 32 player server. I really would like to use this great script because the players really loved it.

Regards,


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-29, 2:03 am 

jonass wrote:
Great script Ajax!

Any of you guys that use it experience lag on your servers? I treid using the LastManStanding but it just produced to much lag on our 32 player server. I really would like to use this great script because the players really loved it.

Regards,


did you try the latest version of LastManStanding? with EventScripts v0.8.2?

i haven't heard any reports of lag with either that or this script. if there is, please let me know so i can try to address it. otherwise i can only assume it is fine.


User avatar
New User
Profile

Posts: 20
 
New postPosted: 2005-06-29, 8:09 am 

I have now a new version of Mani Admin Plugin

Now I typed in, but read it yourself:


*DEAD* Mikeeeee : geil
TEXT = geil
CBET_SAY = 0
CBET = 0
BET PATH = eventscripts/counter-bet/cbet_bet.cfg
ES SUB = eventscripts


What does this mean?
And I don not want, that something like this appears!

Please help me

THX


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-29, 11:43 am 

lessiv

ajax wrote:
1. when you say "bet" what is the result?

2. is it a windows or linux server?

3. what is the file path of your counter-bet directory?


4. what is "geil"?

please answer.


User avatar
Helper
Profile

Posts: 264
 
New postPosted: 2005-06-29, 1:04 pm 

ajax,
is there a way to add sound (for the dead player) when the betting menu pops up?


User avatar
Moderator
Moderator
Profile

Posts: 792
 
New postPosted: 2005-06-29, 1:12 pm 

[CBz] noskillhere wrote:
ajax,
is there a way to add sound (for the dead player) when the betting menu pops up?


there is no betting menu. betting is always open and you can place a bet as long as you are dead. i could add a sound, but all that will be is a sound that plays every time a player dies... which wouldn't accomplish anything except remind players that they are dead.


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 364 posts ]  Go to page 1, 2, 3, 4, 5 ... 21  Next


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group