You have to do it by yourself otherwise it can be not possible for you and we can give you only some tips and thats it, you have to do it all by yourself to stay away from gambling.
The only thing that you can do is do other things that you like to do and just realize that gambling is bad to do and it is all wasted money that you have spend on it.