DOWNLOAD THE PLUGIN :
http://www.hotlinkfiles.com/files/23491 ... lugins.rar
Screenshots.
Betting Panel
http://img190.imageshack.us/i/betpanel.jpg/
Accepting Panel
http://img23.imageshack.us/i/acceptn.jpg/
Finish Payout Panel
http://img198.imageshack.us/i/finishz.jpg/
Update v0.3.5
Major Upgrades from the previous version to the new version:
1. Up until the last version Betters/Acceptors had to finish 1st on each track to win the bet.
Now i've upgraded it so that you can finish at any position above the other acceptors to win the bet.

The thing about this upgrade is ,as you might have guessed,the server mostly won't make any profit!Since one of the betters/acceptors just has to finish the map once to win the bet!
If you prefer the older version where you have to finish 1st to win the bet,then delete the two forward slashes from line 11
and add two forward slashes in front of line 19
2.Some users were complaining that they couldn't see the "Player <winner> Wins the bet" and the other messages at the end of the race because it was going out of the chatbox too quickly.
Now i've added a box in the bottom right of the screen at the end of every race ,which gives information about the winner of the bet and the total win.
3.To prevent multiple clicking on the Accept button,the panel will dissapear the first time you click on it to accept/reject a bet.
And some other minor error fixes.
This version has been tested EXTENSIVELY from all possible angles,and each and every bug has been fixed. But despite this ,if you find any error ,since it hasn't been tested on modes other than laps, please report it.
Enjoy!

--------------------------------------------------------------------
Update v0.3
Some very intereting new upgrades in the betting plugin.
All of which a lot of you guys will like!
Upgrade:
#1 . Disabled chat based betting.
#2 . Instead of chat based, there are now manialinks for betting and accepting.
#3. For TIME ATTACK users who wanted a time limit on the betting, Well its been added. The betting panel will automatically be removed after 60 seconds ,so no one can bet after that. Also if someone bets,then the accepting panel comes up and it will dissapear in 30 seconds.
#4. ALL THE VALUES which appear on the panels -> currently set to 10 coppers,20,50,100 and 200 can be changed if you open my plugin, and all the values between the comments "CHANGE VALUES ONLY HERE FOR YOUR SERVER" can be changed to suit your needs - including the timeout for the betting panel and the accepting panel
#5 . Introduced a feature to record all the bets made by a user,total bets won by him and total bets lost by him into a table called "bet".
It can be viewed by typing ,"/topbets". I didn't spend much time on this,didn't think many people would even want this feature,also it has not yet been tested extensively ,but with the testing i've done,seems to work just fine.
For #5 to work do the following:
1.)Open your phpMyAdmin through your browser by typing 127.0.0.1
and login with "root" username and your password.
2.)There open your xaseco database from the column on the left and then find "Create new table on database xaseco" and there type in "bet" and no. of fields - 4 and click GO.
3.)In the new page : Type in the following:
1st Field: Nickname
TYPE : VARCHAR
LENGTH VALUE: 50
2nd Field: Totalbetmade
TYPE : INT
LENGTH VALUE: 10
3rd Field: Totalbetwin
TYPE : INT
LENGTH VALUE: 10
4th Field: Totalbetloss
TYPE : INT
LENGTH VALUE: 10
and click SAVE!
If you guys like the plugin and use it on your server,do come by my server and donate !

tmtp://#join=vineeth_server
Enjoy!

----------------------------------------------------------------------
Update v0.2:
1.Added "/beton" and "/betoff" to let the MASTERADMIN enable and disable the betting plugin.
AND
2.FINALLY,


What i've done is ,cut the BillUpdated function from plugin.donate.php, pasted it into my billupdated function and added a if- else statement to check wheter it was a betting transaction or a donation transaction and added the variable globally in both.
Because of that,i've updated both the plugin.donate.php and my vineeth.bet.plugin.php and uploaded both of them together in my new release.
So extract and replace both the vineeth.bet.plugin and plugin.donate.php files
Download it from the download link above!
-------------------------------------------------------------------------
Betting Plugin v0.1
Right so this is ,i'm sure,the first betting plugin for Xaseco,one which many people have been looking around for!
I myself posted a topic here 2 months ago asking for a betting plugin! But no one replied !

Now that i've been learning php for the last two weeks and made my first plugin - viewtopic.php?f=127&t=22341
I decided ,why not try the betting plugin !
I made the plugin by taking my laps server into account.
So o'course you might find many more flaws in it if you run a time attack server,but some of those flaws get cancelled out if its on laps mode .
I designed the plugin over the last 2 days and tested it on my server - tmtp://#join=vineeth_server for the last one day.
So far all the players have gotten their payments in coppers and doesn't seem like there's any major error in it.
Lots of echo's in the code ,which i put in to check for errors and still continuing to check,so haven't removed them yet.
INCLUDES 2 files, my betting plugin.php and the updated plugin.donate.php
to the plugins/ folder ,extract both the plugin.donate.php and vineeth.bet.plugin.php and add <plugin>vineeth.bet.plugin</plugin> to your plugins.xml file.
About the plugin:
1.Chat based betting. No panels yet.
2.Type "/bet <amount>" To start a bet
3.The message that you have started a bet is sent to everyone twice,yes twice,so that it covers the entire chatbox and no one misses the message.
4.Another player(s) can accept the bet by typing "/accept"
5.It can accept multiple acceptors.
6.To win the bet either the person who placed the bet,or one of the players who accepted the bet HAS TO finish 1st.
7.Payout is carried out and everyone gets a message saying Player <winner> has won the bet with a total win of <total win> coppers.
8.If no one wins, 50% of the coppers are returned to the better/acceptors.