Yes, you could do something like this with Python perhaps. I'm not aware of Construct having this capability with Plugins. You could encrypt part of your game. Once the user logs in then it decrypts that portion. That is one way to do it, although every way is going to be hackable.