I'm working in a online game project, Where users will deposit ETH into their account for playing game.
You seem to ask a lot questions regarding deposits/withdrawals for your website.
Please be concerned that if you are not a very skilled programmer (which you obviously aren't) and you don't hire one to code it for you,
someone will find a vulnerability and either 1) crash your system or 2) withdraw everything. Just a matter of time.
So how is it possible to track users deposit only once, So same deposit amount can not be grabbed by our code?
Well, you credit the deposit after X confirmation. What do you exactly mean by 'grabbed by our code' ?
You have to build the whole backend with security in mind. There isn't just one call to make it secured and working flawlessly
How peoples do this kind of stuff?
They learn how to code or hire someone who knows how to.