cam
1
Greetings, Cookie forums.
Recently, as you may or may not have seen, I made a post about a Notification system. I was thinking-I was wondering how I could make a licensing system for it?
It would be something similar to the license system of CMI, when you purchase the system it would automatically give you a license. If you have the system in your game and don’t have a license, it would automatically remove the system from the game.
Thanks,
@cam.
I don’t really get it, why would a notification system need a license? Also, where would the license in the game be?
cam
3
It would be sold, meaning players could attempt to steal the notification system from player’s who have purchased it. What do you mean “where would the license in the game be”?
What I mean is where the license of the notification system will be. For example, will it be in a disabled script, description, etc ?
cam
5
The licensed players would somehow be stored separately, and if the player has a license, the system will work-if not, it will remove itself from the game.
Perhaps you could do something like this:
-
Add a folder in ServerStorage called "NotificationLicense"
-
Add a Script in the folder, rename it to something like “LicenseInfo”, put in the licensing details, and make sure to right-click and disable the script
-
Within ServerScriptService, add a Script which will always check after a certain amount of time (or checks forever) for game.ServerStorage.NotificationLicense.LicenseInfo.
-
If LicenseInfo is always found, then that proves the user has the license within the notification system. If it is not found, then the notification system will stop all scripts, etc, and remove itself from the game.
The same could go for … well, basically anything. It could also check for a specific set of values within a TextLabel on a Frame in a ScreenGui.
Let me know if this helped with anything,
@OH20_rbLX
cam
7
I guess I’m a bit confused about what this would do-could you explain?
Alright. So, that script in ServerScriptService will contain a piece of code which will always check for the LicenseInfo script within the ServerStorage.
If the code within the script in ServerScriptService cannot find the LicenseInfo script in ServerStorage, the notification system will run a code to remove itself from the game (not sure how to do that part), or atleast disable all the notification system scripts.
cam
9
I guess I don’t understand how the user cannot just put the script there and get a free license…
No what I meant was maybe you can add a license there by default. Maybe include it with the notification system module?
Also, there are many licensing services out there. Like how I’m doing it with my admin panel, I used a license by Apache, which just requires you to paste the license into a disabled script (for example) and of course tweak a few things here and there.
cam
11
I’m sorry I’m so confused,
Noah
12
Try a webserver with something like pysqlite or something similar to that.