SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 20/09/2018, 11:42 PM   #1
willbedie
Gangsta
 
willbedie's Avatar
 
Join Date: Feb 2016
Location: Albania
Posts: 541
Reputation: 59
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
  • Y_Less - Whirlpool
  • 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

V1.1 (BCrypt) - Highly recommended
GitHub
Pastebin

Changelog:
Code:
Additions:
[+] BCrypt version
[+] Login check

Changes:
[~] Enumerator Variables
[~] Saving System

Removed:
[-] MySQL auto-reconnect option
Enjoy it

Last edited by willbedie; 26/10/2018 at 12:43 AM.
willbedie is offline   Reply With Quote
Old 20/09/2018, 11:53 PM   #2
KinderClans
Banned
 
Join Date: May 2018
Location: Italy
Posts: 737
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 20/09/2018, 11:54 PM   #3
willbedie
Gangsta
 
willbedie's Avatar
 
Join Date: Feb 2016
Location: Albania
Posts: 541
Reputation: 59
Default Re: [MySQL R41-4] Login / Register Base Script

Quote:
Originally Posted by KinderClans View Post
Sorry man but, why using Whirlpool for hashing when BlueG made one with salt and SHA-256?

I apprecciate the effort tho.
I've been using Whirlpool since I made the first register / login system ever, and I didn't really care about others too. I think Whirlpool is pretty secured, and I don't find a problem with that.
willbedie is offline   Reply With Quote
Old 21/09/2018, 05:55 AM   #4
ZigGamerx
Big Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 173
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, 01:48 PM   #5
Mazio
Little Clucker
 
Mazio's Avatar
 
Join Date: Sep 2018
Location: India
Posts: 45
Reputation: 16
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, 02:05 PM   #6
willbedie
Gangsta
 
willbedie's Avatar
 
Join Date: Feb 2016
Location: Albania
Posts: 541
Reputation: 59
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
willbedie is offline   Reply With Quote
Old 21/09/2018, 02:52 PM   #7
ZigGamerx
Big Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 173
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, 03:15 PM   #8
willbedie
Gangsta
 
willbedie's Avatar
 
Join Date: Feb 2016
Location: Albania
Posts: 541
Reputation: 59
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
willbedie is offline   Reply With Quote
Old 21/09/2018, 03:18 PM   #9
Danielknow
Big Clucker
 
Join Date: May 2018
Location: United States
Posts: 55
Reputation: 1
Default Re: [MySQL R41-4] Login / Register Base Script

Good Work
Danielknow is offline   Reply With Quote
Old 21/09/2018, 03:28 PM   #10
Hunud
Gangsta
 
Hunud's Avatar
 
Join Date: Jun 2016
Posts: 820
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
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 04/02/2019 07:20 PM
Mysql Login - Register script problems Vaki Scripting Help 2 18/11/2016 04:34 PM
I am getting a mysql register and login script and im getting a error kingcrome Scripting Help 1 28/10/2013 11:27 PM
[FilterScript] [FS] Simple Base Admin Scipt (Only /register + login) Good for Beginner! Oxside Filterscripts 15 07/03/2010 05:56 PM


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


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