CS2D
Servers How to make system for payments? How to make system for payments?
4 replies Hi, i want to have paid vips in my server and it would be good to have a system for payments. So player gets vip automaticly when he pays. How can i do that easy way. Should i use lua. And does lua support mysql? Ah, so when a user has paid for VIP via your website, a database table is stored to keep track of their powers?
It's nice to be organized, instead, you should use php/python or whatever to make the file within lua for vip powers.
Ex. If you were using amx2d (/user mod), then you could simply make 2 files usgn.cfg and username.cfg. Can lua read .txt and for example take all usgns from txt file? Maybe if i would use .txt database in my web... I could update usgns file in my pc from my web, but the problem is i dont know how to add something to txt file when user pays(payments should be via mobile so player would send some keywords like vipx14 *usgn* and then usgn goes to txt file). Please tell me how to do that? I will use webtomoney for that(i think thats how its called)(but im using lithuania version). If you're interested in SMS payments - drop me a message, I'll give you a short number to accept payments. Also, text files is very bad idea, could be easily hacked. Please, consider using MySQL.