[MySQL R41-4] Login / Register Base Script -
solstice_ - 20.09.2018
Introduction
I have created this as a gamemode since I got a lot of messages on discord from people asking me to make a login / register system for them. I didn't want to make this as a tutorial since I didn't have that much time, but everything is explained inside of the code. So everyone who at least has a little bit of knowledge on MySQL will understand it.
What does it have more than other scripts similiar to this
Well it is simple to use, and it is made for people that want to start their gamemode from scratch. It uses only like 150 lines, and it fully works.
Credits- SA-MP - a_samp
- BlueG & Maddinator - a_mysql
- ****** - Whirlpool
- Zeex - zcmd
- Emmet - easyDialog
- Johnson_boy - BCrypt
- Bork - Suggestions / Helping with BCrypt
Screenshots
https://imgur.com/a/8cH1lMa
Bugs
I don't think there are any bugs but if you notice a mistake on the script, please let me know.
Download
V1.0 (Whirlpool) - Not very recommended
GitHub
Pastebin
The whirlpool version is no longer being updated. You must switch to BCrypt for a better experience.
V1.1 (BCrypt) - Highly recommended
GitHub
Pastebin
Changelog:
Code:
Additions:
[+] BCrypt version
[+] Login check
[+] /changepassword (BCrypt only) - 2/24/2019
Changes:
[~] Enumerator Variables
[~] Saving System
Removed:
[-] MySQL auto-reconnect option
Enjoy it
Re: [MySQL R41-4] Login / Register Base Script -
KinderClans - 20.09.2018
Sorry man but, why using Whirlpool for hashing when BlueG made one with
salt and SHA-256?
I apprecciate the effort tho.
Re: [MySQL R41-4] Login / Register Base Script -
ZigGamerx - 21.09.2018
Really Good Job. +REP
Re: [MySQL R41-4] Login / Register Base Script -
Mazio - 21.09.2018
Good one but it could be much better if you could work on the design and add some stuff up.
Re: [MySQL R41-4] Login / Register Base Script -
solstice_ - 21.09.2018
Quote:
Originally Posted by Mazio
Good one but it could be much better if you could work on the design and add some stuff up.
|
Well if you have any suggestions you can post here and I'll add anything I find useful and interesting
Re: [MySQL R41-4] Login / Register Base Script -
ZigGamerx - 21.09.2018
can you make it complete ? like added
VIP,ADMIN levels and more?
SO IT WILL LOOK MORE GOOD
Re: [MySQL R41-4] Login / Register Base Script -
solstice_ - 21.09.2018
Quote:
Originally Posted by ZigGamerx
can you make it complete ? like added
VIP,ADMIN levels and more?
SO IT WILL LOOK MORE GOOD
|
Sure but you'll have to make the commands yourself
Re: [MySQL R41-4] Login / Register Base Script -
Danielknow - 21.09.2018
Good Work
Re: [MySQL R41-4] Login / Register Base Script -
Hunud - 21.09.2018
One question.
- Why don't you store/load a PlayerName and IP from the enumerator (PlayerData) ?
- PlayerName[MAX_PLAYERS]
[30] ?
Re: [MySQL R41-4] Login / Register Base Script -
solstice_ - 21.09.2018
Quote:
Originally Posted by Hunud
One question.
- Why don't you store/load a PlayerName and IP from the enumerator (PlayerData) ?
- PlayerName[MAX_PLAYERS][30] ?
|
I didn't want to complicate the enumerator much so I decided to do it in another way
30 is the maximum characters a name can have
Re: [MySQL R41-4] Login / Register Base Script -
Hunud - 21.09.2018
Quote:
Originally Posted by willbedie
I didn't want to complicate the enumerator much so I decided to do it in another way
30 is the maximum characters a name can have
|
SA:MP limit is 20.
Re: [MySQL R41-4] Login / Register Base Script -
solstice_ - 21.09.2018
Quote:
Originally Posted by Hunud
SA:MP limit is 20.
|
I actually remember that now, is it 20 or 24? Afaik it's 24
Re: [MySQL R41-4] Login / Register Base Script -
Logic_ - 21.09.2018
You can only have a 20 character input of name in the SA-MP client however, you can set a players name upto of 24 characters in-game.
So use MAX_PLAYER_NAME definition instead of manually putting 30 or 24.
Re: [MySQL R41-4] Login / Register Base Script -
Jing_Chan - 21.09.2018
this is a bit useless tbh
Re: [MySQL R41-4] Login / Register Base Script -
solstice_ - 21.09.2018
Quote:
Originally Posted by Jing_Chan
this is a bit useless tbh
|
I honestly don't care actually, it took me like 15-20 minutes to create. I've been asked by a lot of people on discord to make a login / register system for them so I made this instead for everyone
Re: [MySQL R41-4] Login / Register Base Script -
Jing_Chan - 22.09.2018
Quote:
Originally Posted by willbedie
I honestly don't care actually, it took me like 15-20 minutes to create. I've been asked by a lot of people on discord to make a login / register system for them so I made this instead for everyone
|
there'a a widely known mysql register/login tutorial, people should try learn from that rather than download your mildly edited version of the same thing
Re: [MySQL R41-4] Login / Register Base Script -
solstice_ - 22.09.2018
Quote:
Originally Posted by Jing_Chan
there'a a widely known mysql register/login tutorial, people should try learn from that rather than download your mildly edited version of the same thing
|
You're salty I reported your topic and it got deleted so you're saying. I don't care if it's useless, I just created it because I was bored lmfao
Re: [MySQL R41-4] Login / Register Base Script -
Mobtiesgangsa - 23.09.2018
The Script if fabulous less code full opt Credits will stay if i update your base script and re-release it.
Permission: true : false;
+1 Rep
Re: [MySQL R41-4] Login / Register Base Script -
solstice_ - 23.09.2018
Quote:
Originally Posted by Mobtiesgangsa
The Script if fabulous less code full opt Credits will stay if i update your base script and re-release it.
Permission: true : false;
+1 Rep
|
Yo can update it, go ahead and thanks.
Re: [MySQL R41-4] Login / Register Base Script -
ZigGamerx - 23.09.2018
Are you going to Complete it by adding more savings like Admin level And VIP or not?