ztizzlegaming / CSGOWinBig

Open-source Counter-Strike: Global Offensive jackpot betting website.
MIT License
175 stars 105 forks source link

Sitename for lower rake ? #200

Open TarantelTM opened 8 years ago

TarantelTM commented 8 years ago

Hey i will add the feature for Steamname + Sitename = lower commission.

    if (personaname, "yourdomain.com")){
        if ($keepPercentage + $itemPercentage > 0.0) {
            array_push($itemsToGive, $item);
            $give = true;
            continue;
        }

        if ($keepPercentage + $itemPercentage >= 0.0 && $keepPercentage < 0.0) {
            array_push($itemsToKeep, $item);
            $give = true;
            continue;
        }

        array_push($itemsToKeep, $item);
        $keepPercentage += $itemPercentage;
        }

is this the right way ?

rcas3 commented 8 years ago

just leaving a comment here..

mibac138 commented 8 years ago

@TarantelTM What file did you modify?

Nevermind, it's deposit.php

mibac138 commented 8 years ago

@TarantelTM I think it's good but the way you are using now will cause none commision. Not sure if that's the desired effect.

TarantelTM commented 8 years ago

no commission was a test