SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Gamemode Scripts

Reply
 
Thread Tools Display Modes
Old 20/09/2018, 10:42 PM   #1
solstice_
Gangsta
 
solstice_'s Avatar
 
Join Date: Feb 2016
Location: basement
Posts: 546
Reputation: 68
Default [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

Last edited by solstice_; 24/02/2019 at 05:15 PM.
solstice_ is offline   Reply With Quote
Old 20/09/2018, 10:53 PM   #2
KinderClans
Banned
 
Join Date: May 2018
Location: Italy
Posts: 726
Reputation: 43
Default 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.
KinderClans is offline   Reply With Quote
Old 21/09/2018, 04:55 AM   #3
ZigGamerx
Big Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 190
Reputation: 23
Default Re: [MySQL R41-4] Login / Register Base Script

Really Good Job. +REP
ZigGamerx is offline   Reply With Quote
Old 21/09/2018, 12:48 PM   #4
Mazio
Little Clucker
 
Mazio's Avatar
 
Join Date: Sep 2018
Location: India
Posts: 44
Reputation: 22
Default 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.
Mazio is offline   Reply With Quote
Old 21/09/2018, 01:05 PM   #5
solstice_
Gangsta
 
solstice_'s Avatar
 
Join Date: Feb 2016
Location: basement
Posts: 546
Reputation: 68
Default Re: [MySQL R41-4] Login / Register Base Script

Quote:
Originally Posted by Mazio View Post
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
solstice_ is offline   Reply With Quote
Old 21/09/2018, 01:52 PM   #6
ZigGamerx
Big Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 190
Reputation: 23
Default 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
ZigGamerx is offline   Reply With Quote
Old 21/09/2018, 02:15 PM   #7
solstice_
Gangsta
 
solstice_'s Avatar
 
Join Date: Feb 2016
Location: basement
Posts: 546
Reputation: 68
Default Re: [MySQL R41-4] Login / Register Base Script

Quote:
Originally Posted by ZigGamerx View Post
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
solstice_ is offline   Reply With Quote
Old 21/09/2018, 02:18 PM   #8
Danielknow
Big Clucker
 
Join Date: May 2018
Location: United States
Posts: 54
Reputation: 1
Default Re: [MySQL R41-4] Login / Register Base Script

Good Work
Danielknow is offline   Reply With Quote
Old 21/09/2018, 02:28 PM   #9
Hunud
Gangsta
 
Hunud's Avatar
 
Join Date: Jun 2016
Location: Right here.
Posts: 605
Reputation: 47
Default 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] ?
Hunud is offline   Reply With Quote
Old 21/09/2018, 02:49 PM   #10
solstice_
Gangsta
 
solstice_'s Avatar
 
Join Date: Feb 2016
Location: basement
Posts: 546
Reputation: 68
Default Re: [MySQL R41-4] Login / Register Base Script

Quote:
Originally Posted by Hunud View Post
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
solstice_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[GameMode] [MySQL/SQLite] Advance Login & Register System (base script) Gammix Gamemode Scripts 97 26/02/2019 10:10 PM
Mysql Login - Register script problems Vaki Scripting Help 2 18/11/2016 03:34 PM
I am getting a mysql register and login script and im getting a error kingcrome Scripting Help 1 28/10/2013 10:27 PM
[FilterScript] [FS] Simple Base Admin Scipt (Only /register + login) Good for Beginner! Oxside Filterscripts 15 07/03/2010 04:56 PM


All times are GMT. The time now is 06:22 AM.


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