SA-MP Forums

SA-MP Forums (https://forum.sa-mp.com/index.php)
-   Gamemode Scripts (https://forum.sa-mp.com/forumdisplay.php?f=71)
-   -   [GameMode] [MySQL R41-4] Login / Register Base Script (https://forum.sa-mp.com/showthread.php?t=659037)

solstice_ 20/09/2018 10:42 PM

[MySQL R41-4] Login / Register Base Script
 
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 :D

KinderClans 20/09/2018 10:53 PM

Re: [MySQL R41-4] Login / Register Base Script
 
Sorry man but, why using Whirlpool for hashing when BlueG made one with salt and SHA-256?

I apprecciate the effort tho.

ZigGamerx 21/09/2018 04:55 AM

Re: [MySQL R41-4] Login / Register Base Script
 
Really Good Job. +REP

Mazio 21/09/2018 12:48 PM

Re: [MySQL R41-4] Login / Register Base Script
 
Good one but it could be much better if you could work on the design and add some stuff up.

solstice_ 21/09/2018 01:05 PM

Re: [MySQL R41-4] Login / Register Base Script
 
Quote:

Originally Posted by Mazio (Post 4053647)
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

ZigGamerx 21/09/2018 01:52 PM

Re: [MySQL R41-4] Login / Register Base Script
 
can you make it complete ? like added

VIP,ADMIN levels and more?

SO IT WILL LOOK MORE GOOD

solstice_ 21/09/2018 02:15 PM

Re: [MySQL R41-4] Login / Register Base Script
 
Quote:

Originally Posted by ZigGamerx (Post 4053667)
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

Danielknow 21/09/2018 02:18 PM

Re: [MySQL R41-4] Login / Register Base Script
 
Good Work

Hunud 21/09/2018 02:28 PM

Re: [MySQL R41-4] Login / Register Base Script
 
One question.

- Why don't you store/load a PlayerName and IP from the enumerator (PlayerData) ?
- PlayerName[MAX_PLAYERS][30] ?

solstice_ 21/09/2018 02:49 PM

Re: [MySQL R41-4] Login / Register Base Script
 
Quote:

Originally Posted by Hunud (Post 4053680)
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


All times are GMT. The time now is 01:02 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.