Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
Set Promocodes to work once per user
Is there an easy way to set Promocodes to only work once per user?
|
#2
|
||||
|
||||
Unfortunately there is not at this time. There is definitely some sort of editing you could do to make this possible, but I haven't looked into it a whole lot yet.
Basically my idea would be that in the table prefix_promocodes add a row called "users" that will record the IDs of each user who has used the promocode. Then modify the script so that it recognizes when a user tries to use the promocode to check if their ID is on the list for that code. If it is not, then they can use it normally, but if it is then they will be brought to an error page. This is necessary for my site eventually, so I will be working to get a working version of this made :)
__________________
My Mods Site (1.3.4, 2020 Mods) |
#3
|
||||
|
||||
Awesome :D Thank you so much!
|
|
|
What's New? |
What's Hot? |
What's Popular? |