Dayo Posted May 25, 2021 Posted May 25, 2021 With the euros around the corner, i have a mod in my backlog that I'm thinking of releasing. A while back i made a mod that allowed you (the admin) to create betting "events". Each Event can have up to 3 outcomes with odds you define in the ACP. You set when people can bet up to and once the event is over you just simply say what outcome won and the bets are payed out. Ive attached an example of the ACP. 5 Quote
Sim Posted May 25, 2021 Posted May 25, 2021 I don't know what you mean by euros around the corner. But I love this mod idea. Quote
Dayo Posted May 25, 2021 Author Posted May 25, 2021 It’s a European thing, it’s a big football (soccer) tournament in Europe that happens every 4 years 2 Quote
Sim Posted May 26, 2021 Posted May 26, 2021 3 hours ago, Dayo said: It’s a European thing, it’s a big football (soccer) tournament in Europe that happens every 4 years Your not referring about the World Cup? Quote
Dayo Posted May 26, 2021 Author Posted May 26, 2021 It’s like that but only for European clubs, and happens 2 years before/after the world cup 1 Quote
SRB Posted May 26, 2021 Posted May 26, 2021 @Sim : https://www.uefa.com/uefaeuro-2020/ COVID doesn't stop our football plans - Euro 2020, but we couldn't do it last year so it's happening in 2021. 1 Quote
SwiftGameR Posted May 2, 2024 Posted May 2, 2024 (edited) If this module does ever get released i have the same system in torn.com but that pulls live ods etc but if you want a quick way to calculate the % of the match. this function will only give you an example of what the % of the match outcomes based on the odds. function calcOds($numone, $numtwo) { if (!$numone || !$numtwo) { return false; } if (!ctype_digit($numone) && !ctype_digit($numtwo)) { return false; } $math = MAX(($numtwo / ($numone + $numtwo)), 0); return '<p>'.number_format($math, 2).' % of winning the match</p>'; } Example Usage: echo calcOds(11, 100).'<br />'; // 11/100 odds echo calcOds(100, 3).'<br />'; // 100/3 odds echo calOds(1, 10).'<br />'; // 1/19 odds Edited May 2, 2024 by SwiftGameR Fixed added variable into the function for checking ctype_digit(var) 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.