Page 1 of 1

Get Some Player Data After Leave A Table

Posted: Mon Dec 21, 2015 6:46 am
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,

Re: Get Some Player Data After Leave A Table

Posted: Mon Dec 21, 2015 10:22 am
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).

Re: Get Some Player Data After Leave A Table

Posted: Tue Dec 22, 2015 2:00 am
by aminwxy
How can i Access Callback Event system ?

Re: Get Some Player Data After Leave A Table

Posted: Tue Dec 22, 2015 8:44 am
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.