No I can't.
I have no knowledge of C++ and as said a couple of times now, it isn't needed to do it in C++ either.
LFS Lapper is already a complete environment to run as Insim and can be scripted as much as you want.
Seeing your comments, you haven't got knowledge of C++ either (otherwise you would have coded it your self), so just accept the work I already did by creating just what you asked for in a LFS Lapper script.
It's even better for you, as learning how to code within LFS Lapper, is much easier then having to learn a code like C++
You are not a "I want to try some things myself" kind of person.
If you want things, the best way to get them done is to try it yourself and when you really get stuck, ask for help.
Here is a version with the login/registration script included.
What you still need to do your self:
- Unzip the attached file
- Make sure insim port 29999 is opened on your LFS Server
- Go to your LFS Lapper folder
- Open folder "bin"
- Open folder "default"
- Open file "defult_1.ini"
- Enter the admin password of your LFS server where you now see "yourpass"
- Safe the file
- Start "LFSLapper.exe" which is foud in the "bin" folder
- Don't forget to thank me for all the help I have given you
I can present you the Login & Registration system version 1.02
Which has the following changes:
- Fixed a massive bug in Register and then Login account
- Only show Login button if account is present
- Only show Register button if no account is present
- Show warning about password being send&stored in plain text
- Added button to leave server
- All clickable buttons are shown with yellow text
- Added timer to each screen, to avoid people will stil drive, while screen is left open
Installation instructions:
Download "reg_system.txt"
Rename "reg_system.txt" to "reg_system.lpr"
Replace "reg_system.lpr" in your "bin\includes" folder of your LFS Lapper installation
Restart LFS Lapper