I am login for a coder of PHP, mySQL and Javascript.
I ooppen a one game website, and need register, login, deposit (deposit and withdrawls with work with .txt since python will check the deposits and write intio deposits and php writes into withdrawl and python makes the withdrawls)
Python bot is redy.
So what would be needed is a mini usersystem (they can register, login etc...) and a "Deposit" Button, if they click it then PHP gives them a random generated Code idk like 374A2 , ok then PHP saves this code to DB to the USer, if he do now the deposit (my python bot checks for it...) once it arrives then python write into deposits.txt:
code,amount
the amount is flexible but python will post exact amount the user has send.
PHP reads deposits.txt and with the code it knows OK its User X and value of currency is X (python posted how much arrived) so you put it to his balance.
with the Balance they can play the open source game.
Then if they want to withdrawl PHP will have a field: Amount + Username + Button.. they enter amount and they username PHP will write it like:
username,amount
to withdrawls.txt and python read it every minute and will send them the currency thats all.
easy easy.. the usersystem u can use any open source:
no need to code login, register nothing...
what u need is:
- generate one time Code
- PHP reads deposits.txt and add value to DB
- PHP write value to txt file and remove from DB
- PHP takes value from DB when they enter amount to bet
thats all smile emoji thats if u slow 2 hours
ANd the Javascript part:
Now I want that from the bettings 0.5% fixed stay in my cashier and 99.5% go into lets say "pot" and from there the Users wins... right now the Random Code is:
PHP Code:
// Function to determine the crash point
function getCrashPoint() {
e = 2 ** 32
h = crypto.getRandomValues(new Uint32Array(1))[0]
// if h % (100 / desired_precentage) is 0 then the game will crash immediately
if (h % 33 == 0) return 1
return Math.floor((100 * e - h) / (e - h)) / 100
}
so it should be take 0.5% away from amount that users are playing in the round and 99.5% are payout random (dont means that every game must pay out 99.5% no,.. it can be every 10.000 game and give 1 user very high win but it should can come with low pot or with middle pot or with high pot.
Discord: YT_Rotrox#8328






