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 ... 15  Next
Author Message
User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-15, 5:40 pm 
   Post subject: XE_Bet v2.4 (Updated 05-28-2006)

:!: XE_Bet v2.4 :!:

:arrow: Description/Features:
Quote:
This is basically an expansion of ajax's wonderful script pack, Counter-Bet. It has the same odds system, but I have added a "betting pool" that takes the money lost and divides it up amongst the winners.

Also, when the odds are 3 vs. 1 (configurable), and people bet against the 1 player and the 1 player wins, that player receives the money from the "betting pool."

Not only that, but now...admins can decide who can bet (Dead Players, Alive Players, and All Players).

Enjoy the gambling!


:arrow: Features:
Quote:
:!: The "Betting Pool":
Quote:
Basically, all money that is lost from a bet is thrown into a "betting pool." This money is then divided up and given to the winning betters.

For Example:
    10 people bet $100 Terrorists = $1000 (Terrorists)
    10 people bet $100 Counter-Terrorists = $1000 (Counter-Terrorists)
    If the Terrorists win, each Terrorist will be paid the $100 + whatever money gained from the odds at the time of the bet + $100 from the betting pool.

:!: Live Player Updates:
Quote:
If xeb_update is set to "1", each time a player bets, every player on the server will be notified who bet how much on what team...and it will also display what the total bet is for the team that they bet on.

:!: Last Man Standing:
Quote:
If xeb_lms is set to "1", the Last Man Standing odds system will be enabled. If only one Terrorist remains and 3 Counter-Terrorists remain and a bet is made for the Counter-Terrorists, the Last Man Standing odds system will become active. If the Terrorist wins, he/she will receive all money that was bet against him/her (the money from the "betting pool"). To declare the amount of players a single player must be outnumbered by, set xeb_lmsvs to the number of players one person must face to beat the odds and receive the Last Man Standing reward (default value is "3").

:arrow: Betting:
Quote:
bet <team> <amount>
    <team>
      either "T" or "CT"
    <amount>
      all (all of the player's money)
      half (half of the player's money)
      1k - 16k (1k = 1000, 16k = 16000)
      Any amount that is not "0" or a negative value
      Any amount that is not greater than what the player has

:arrow: Error-Checking:
Quote:
  • Checks bets for negative values.
  • Checks bets for values greater than what the player has (and adjusts if admin chooses.
  • Checks bets for incorrect teams.
  • Improved odds calculation so that when you bet, it is always the correct odds.
  • Error-checking step-by-step to improve performance.

:arrow: ADMIN SETTINGS:
Quote:
// *****************************************************************
// ***Edit the settings below to customize XE_Bet for your server***
// *****************************************************************
// Who to allow to bet: dead | alive | all

es_xsetinfo xeb_allow all

// Use a menu (Mani Only): 1 = Yes | 0 = No
es_xsetinfo xeb_menu 1

// Announce 1vs.1: 1 = Yes | 0 = No
es_xsetinfo xeb_showdown 1

// Auto-Adjust bets greater than what the player has available: 1 = Yes | 0 = No
es_xsetinfo xeb_adjust 0

// Announce when the players are allowed to bet each round: 1 = Yes | 0 = No // Example: "Place your bets while you are alive."
es_xsetinfo xeb_announce 1

// Advertise some features of XE_Bet each round: 1 = Yes | 0 = No
// Example: "Type !bet to place a bet."

es_xsetinfo xeb_advert 1

// Display wins/losses at the end of the round: 1 = Yes | 0 = No
es_xsetinfo xeb_display 1

// Declare if you would like the player in a "5 vs. 1" situation
// to receive the money in lost bets if they win: 1 = Yes | 0 = No

es_xsetinfo xeb_lms 1

// Declare the number of players that a single player should be
// up against to receive the lost bets (aka the "pool"):

es_xsetinfo xeb_lmsvs 3

// Displays a message about who bet what on which team: 1 = Yes | 0 = No
es_xsetinfo xeb_update 1

// *****************************************************************
// ***Edit nothing below here unless you are an advanced scripter***
// *****************************************************************


:arrow: Public Cvars:
Quote:
Also, a public cvar is available to find out what version of XE_Bet you are running:
    xeb_version
Or, you can type:
Code:
bet version

in player chat, and it will tell you the version.

:arrow: Requirements:
Quote:
EventScripts v1.0.0.15 (or higher)

...and if you choose to use menu-based betting instead of text-based: Mani Admin Plugin


:arrow: Installation:
Quote:
1. Download the script.
2. Create the xe_bet folder in your "cstrike/addons/eventscripts" directory.
    "cstrike/addons/eventscripts/xe_bet"
3. Place the code supplied in the xe_bet directory in a text file called "es_xe_bet.txt".
    "cstrike/addons/eventscripts/xe_bet/es_xe_bet.txt"
3. Edit the settings to your liking by opening the text document.
4. Place the following code in your autoexec.cfg:
Code:
es_load xe_bet

5. Restart your server OR rcon the following in your console and change maps:
Code:
rcon es_load xe_bet


:!: VERY IMPORTANT NOTE:
Quote:
If Valve sends out an update, and for whatever reason, XE_Bet starts only betting crazy values/negative values, this means that Valve has changed the cflags (money memory location) in Counter-Strike: Source. This is a value that can be declared in your autoexec.cfg using the "eventscripts_cflags <value>" command. I will keep this post updated with the current cflags value.

Code:
// default value in EventScripts v1.0.0.15
// (no need to place in autoexec.cfg unless
// Valve changes in a future update)
eventscripts_cflags 902


:?: Problems? Please post all feedback/bug reports in this forum.
:idea: Suggestions? Please post suggestions in this forum. I am more than open to new ideas.

:!: Bug Fixes/Updates:
Quote:
:arrow: XE_Bet v2.3 (05-10-2006)
Quote:
  • Fixed a bug where if a selection was made from a menu and XE_Bet was not using a menu, that it would no longer cause console errors due to trying to delete information from a keygroup that does not exist.
  • Fixed a bug where if a player disconnects and no one has bet, it would result in a console error.
  • Fixed a bug in the prior bet code that would cause console errors.

:arrow: XE_Bet v2.4 (05-28-2006)
Quote:
  • Replace the es_getmoney command with then es_getplayerprop command. This eliminates the need for eventscripts_cflags to be correct for the script to function properly. I am also hoping this may help with the crashing issues that some servers are having.

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


Last edited by XE_ManUp on 2007-04-18, 11:06 am, edited 69 times in total.




User avatar
Reader
Profile

Posts: 91
 
New postPosted: 2006-02-15, 5:53 pm 

hey nice 1 m8, like your idea :wink:

_________________
i'm A noob


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-15, 7:49 pm 

kingtendo wrote:
hey nice 1 m8, like your idea :wink:

Thank you! :D I have worked on this thing for about 2 weeks now, so I'm glad someone likes it!

All I wanted was options, options, and more options for everyone.

I pretty much raided the Counter-Bet thread and read through all 16 pages of suggestions and bug reports to get my ideas and add features people wanted to see.

You can pretty much make this script pack spam-free by disabling xeb_advert , xeb_announce , and xeb_update (cuts down on the number of messages sent to player chat).

...speaking of which, I need to add something to the documentation! :lol:

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


User avatar
Regular
Profile

Posts: 179
Location:
Right Behind You
 
New postPosted: 2006-02-15, 8:13 pm 

WOW, I really like this version, adding it to our server now. Thank You!


-Razors Edge-

_________________
Image
<img src=http://www.fullthrottlekillers.com/forums/signature.php>


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 3479
Location:
Calgary, Waterloo, Ottawa
 
New postPosted: 2006-02-15, 9:32 pm 

WOw this is the real shabang! nice work

_________________
Image
Image


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-15, 9:47 pm 

Razors Edge wrote:
WOW, I really like this version, adding it to our server now. Thank You!


-Razors Edge-

ichthys wrote:
WOw this is the real shabang! nice work


This wouldn't have been possible without all of you... :oops:
Thank You, Thank You...

(takes a bow)

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-16, 11:17 am 
   Post subject: XE_Bet Updated to v1.1

:arrow: XE_Bet v1.1: (02-16-2006)
Quote:
1. Fixed a coding error that didn't allow the "[Counter-Bet] 1 vs. 1 Showdown" message to appear.
2. Fixed a debugging error that caused xeb_bet.cfg to be executed from the hard drive instead of being loaded via "es_mexec" into the server's memory (faster execution).

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


Last edited by XE_ManUp on 2006-02-17, 3:18 am, edited 1 time in total.

User avatar
New User
Profile

Posts: 20
 
New postPosted: 2006-02-16, 5:56 pm 

fantaboulous....we love it on our server...

Get some really weird "counting" in the display - started out
_1_
_2_
_3_4_
_5_

and has been counting up since we started runnning the mod....any ideas ?


User avatar
Experienced
Profile

Posts: 306
Location:
serverplugin_warcraft.cpp
 
New postPosted: 2006-02-16, 6:06 pm 

Pretty cool :) Is their a public version var so I can go to a server with it?

_________________
Image


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-16, 6:39 pm 

pimpinjuice wrote:
Pretty cool :) Is their a public version var so I can go to a server with it?


:arrow: Public Cvars:
Quote:
If you want to change any CVAR from the Admin Settings, just rcon the server with the new cvar value:

    xeb_announce <0|1>
    xeb_adjust <0|1>
    xeb_lms <0|1>
    xeb_lmsvs <value>
    xeb_update <0|1>
    xeb_history <0|1>
    xeb_allow <all|alive|dead>
    xeb_plugin <1|2>
    xeb_showdown <0|1>


I have not included a "version" variable, although I probably should. I will include this in the next release.

I am considering updating the "bet history" to include an extra commandstring:

bet history <player | userid>

This way, a player can look up other player's bet history if they are curious.

Anyhow, you can do a search for xeb_allow on www.game-monitor.com and it should turn up servers.

edit by ichthys: corrected url ;)
edit by XE_ManUp: pwned by ichthys yet again :oops:

EDIT: (02-17-2006)
XE_ManUp wrote:
I have not included a "version" variable, although I probably should. I will include this in the next release.

Now available in XE_Bet v1.2!

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


Last edited by XE_ManUp on 2006-02-17, 5:33 am, edited 2 times in total.

User avatar
Experienced
Profile

Posts: 306
Location:
serverplugin_warcraft.cpp
 
New postPosted: 2006-02-16, 10:41 pm 

Suggestion, fix 'bet history'... Doesn't work.

_________________
Image


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-16, 11:06 pm 

pimpinjuice wrote:
Suggestion, fix 'bet history'... Doesn't work.


:? Ok...?

What about it doesn't work? It is working fine for me.

"Bet History" has to be enabled via the admin settings for it to work right away. If you enable it mid-round, it won't work until there is a map change. Please let me know if this was the case.

In the meantime, I will take a look into it and see if I can find anything.

EDIT: (02-17-2006) This issue should be resolved in the v1.2 update.

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


Last edited by XE_ManUp on 2006-02-17, 5:27 am, edited 1 time in total.

User avatar
Experienced
Profile

Posts: 306
Location:
serverplugin_warcraft.cpp
 
New postPosted: 2006-02-16, 11:07 pm 

Its say Won: 0$, Lost: 0$, Bounty: 0$

Cheers

_________________
Image


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-16, 11:16 pm 

pimpinjuice wrote:
Its say Won: 0$, Lost: 0$, Bounty: 0$

Cheers

So, you enabled it through admin settings, and not through changing the public cvar?

Looking @ code as I type.

EDIT: (02-17-2006) This issue should be resolved in the v1.2 update.

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


Last edited by XE_ManUp on 2006-02-17, 5:34 am, edited 1 time in total.

User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-17, 2:57 am 
   Post subject: XE_Bet Updated to v1.2!!!

:arrow: XE_Bet v1.2: (02-17-2006)
Quote:
1. Fixed an error that was creating BOT entries in keygroups, which obviously isn't needed due to the fact that BOTs can't bet.
2. Originally, when the bet_history cvar was updated from "0" (off) to "1" (on), until a new map started, the bet history would not be turned on. Now, when the bet_history cvar is changed from "0" to "1", the bet history will be turned on the next round and a message will be displayed: "[Counter-Bet] Bet history will be activated at the start of next round."
3. Added a new public cvar: xeb_version. You can type xeb_version in console to find out what version of XE_Bet you are running to see if it needs updated. Although this is a "public" cvar, if someone tries to change it, it will automatically be changed back to reflect the "true" version of XE_Bet to avoid complications. The only way to update the version in the future is to upload a new version to your server.
4. Fixed a typo that prevented players from receiving their Last Man Standing reward.
5. Removed debugging messages that caused players to be able to see the userid strings I created for live player tracking: "_1_2_4_6_ ".

What I really like about this version is that you can now check for xeb_version through www.game-monitor.com (edit THAT ichthys! :o )

:?: Example: CLICK THIS!!!

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


Last edited by XE_ManUp on 2006-02-17, 3:19 am, edited 3 times in total.

User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 2890
Location:
Tampa, FL
 
New postPosted: 2006-02-17, 3:02 am 

hinker wrote:
fantaboulous....we love it on our server...

Get some really weird "counting" in the display - started out
_1_
_2_
_3_4_
_5_

and has been counting up since we started runnning the mod....any ideas ?


Yes, I was stupid and left debugging stuff in there. My fault. It has been fixed in v1.2. It is #5 on my v1.2 Bug Fixes/Updates list.

:arrow: XE_Bet v1.2: (02-17-2006)
Quote:
1. ...
2. ...
3. ...
4. ...
5. Removed debugging messages that caused players to be able to see the userid strings I created for live player tracking: "_1_2_4_6_ ".


pimpinjuice wrote:
Suggestion, fix 'bet history'... Doesn't work.

This problem should be fixed now, as well.

_________________
"If life had an SDK, only the smart people would survive."
"I got tired of my wife being my page file, so I ordered more memory from Newegg."
Image
Image
Image


User avatar
New User
Profile

Posts: 8
 
New postPosted: 2006-02-17, 12:34 pm 

I installed this on our (to become) funserver.
I have got the latest mani version on there and the latest mattie version.

When a player wins a bet all is fine it seems.
but when a player looses the server crashes and restarts.
Same happened with counterbet.
Do you or anyone else have any idea what the problem could be?

Do i need to adjust some mani files?

EDIT:
I had hlsw open on the server at the time of the crash this was the last console command:
CONSOLE : ma_takecash : Player [[TP-Pure] $p00k13 ¨] [STEAM_0:1:110475] had [1170076648] cash, now has [16000] cash

and this happened after a rounnd where i won cash
CONSOLE : ma_givecash : Player [[TP-Pure] $p00k13 ¨] [STEAM_0:1:110475] had [1170076648] cash, now has [16000] cash


User avatar
EventScripts Administrator
EventScripts Administrator
Profile

Posts: 3479
Location:
Calgary, Waterloo, Ottawa
 
New postPosted: 2006-02-17, 1:54 pm 

Sp00k13 wrote:
I installed this on our (to become) funserver.
I have got the latest mani version on there and the latest mattie version.

When a player wins a bet all is fine it seems.
but when a player looses the server crashes and restarts.
Same happened with counterbet.
Do you or anyone else have any idea what the problem could be?

Do i need to adjust some mani files?

EDIT:
I had hlsw open on the server at the time of the crash this was the last console command:
CONSOLE : ma_takecash : Player [[TP-Pure] $p00k13 ¨] [STEAM_0:1:110475] had [1170076648] cash, now has [16000] cash

and this happened after a rounnd where i won cash
CONSOLE : ma_givecash : Player [[TP-Pure] $p00k13 ¨] [STEAM_0:1:110475] had [1170076648] cash, now has [16000] cash


mani_mute_con_command_spam 1

_________________
Image
Image


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 262 posts ]  Go to page 1, 2, 3, 4, 5 ... 15  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