Get Some Player Data After Leave A Table

For discussion of the Poker Mavens server module and other administration topics

Get Some Player Data After Leave A Table

Postby aminwxy » Mon Dec 21, 2015 6:46 am

hi
we need to write some code that output is like this :
for exmaple user seat on a Table and Play 3 game,then Leave after each other
we need to find how much Player loose and how much he Win,
and show this in user pane in our website.

result to show is this :

your name : john
2015-12-14 13:07:38 | Holdem 01 #100-200 | 0 | 2,605
2015-12-14 13:02:47 | Holdem 01 #100-200 | -4,000 | 2,605
2015-12-02 19:32:31 | Holdem 06 #250-500 | 0 | 6,605

in this example 0 means nothing loose and 2605 means chip player john win.
how can we do this with PHP?

thank you,
aminwxy
 
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Re: Get Some Player Data After Leave A Table

Postby Kent Briggs » Mon Dec 21, 2015 10:22 am

Use the Callback Event system and monitor the Balance Event. It gets called every time a player's chip balance changes. If they left or joined a table, the table name is passed in the Source parameter. The Change parameter will indicate how much they bought in or rebuyed for (a negative number) or how much they left with (0 or above).
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3806
Joined: Wed Mar 19, 2008 8:47 pm

Re: Get Some Player Data After Leave A Table

Postby aminwxy » Tue Dec 22, 2015 2:00 am

How can i Access Callback Event system ?
aminwxy
 
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Re: Get Some Player Data After Leave A Table

Postby Kent Briggs » Tue Dec 22, 2015 8:44 am

aminwxy wrote:How can i Access Callback Event system ?


It's the last group of settings on the System tab. Create a script on your web site that will get called when specify events (that you select) are triggered. Your script will read the parameters that are passed to it and take whatever action is needed.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3806
Joined: Wed Mar 19, 2008 8:47 pm


Return to Site Administration

Who is online

Users browsing this forum: No registered users and 3 guests

cron