Get Some Player Data After Leave A Table

For discussion of the Poker Mavens server module and other administration topics
Post Reply
aminwxy
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Get Some Player Data After Leave A Table

Post by aminwxy »

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,
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Get Some Player Data After Leave A Table

Post by Kent Briggs »

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).
aminwxy
Posts: 17
Joined: Wed Apr 22, 2015 12:35 pm

Re: Get Some Player Data After Leave A Table

Post by aminwxy »

How can i Access Callback Event system ?
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Get Some Player Data After Leave A Table

Post by Kent Briggs »

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.
Post Reply