SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 23/07/2019, 04:55 PM   #1
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,048
Reputation: 115
Default Very Basic Script

  • Base Login/Register Gamemode


This is just a basic script, which was requested by one of my friends to be made, so I am releasing it here. This script uses MySQL R41-4 and BCrypt for hashing passwords. I dont think there are any base scripts on forums which uses BCrypt as example(At least I dont know if there are any), Which is why I decided to release it for all the people, so that they can know how login/register system is made using MySQL and simple dialogs and also, how to use BCrypt.

  • Features


  • Based on MySQL.
  • Login and Register using normal dialogs.
  • BCrypt Hashing so its very much secure.
  • Saves user's info upon disconnect and loads it on connect. Incl. Positions.
  • Very easy and straight forward scripting.



  • Requirements

  • BlueG's MySQL R41-4
  • BCrypt Plugin and Include
  • MySQL Server installed


  • Screenshots & Downloads


Credits to the creators of above specified plugins and includes.
This script was created for beginners and therefore help will be provided by me ONLY if you provide proper details of error/problem you are having and you must show me what did you try to solve it on your behalf. The script shouldn't have any bugs, but if there are tell me down there.
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 23/07/2019, 05:22 PM   #2
N4Sti
Little Clucker
 
Join Date: Jan 2018
Location: Poland
Posts: 2
Reputation: 0
Default Re: Very Basic Script

Nice
N4Sti is offline   Reply With Quote
Old 23/07/2019, 05:26 PM   #3
ZigGamerx
Huge Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 204
Reputation: 23
Default Re: Very Basic Script

Pretty much basic and Nice for newbies.

+REP
ZigGamerx is offline   Reply With Quote
Old 23/07/2019, 06:04 PM   #4
NeXTGoD
Big Clucker
 
NeXTGoD's Avatar
 
Join Date: Jul 2018
Posts: 88
Reputation: 4
Default Re: Very Basic Script

Good job will help for some beginners
__________________
.

xSF Reborn:


.
NeXTGoD is offline   Reply With Quote
Old 24/07/2019, 04:06 AM   #5
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,048
Reputation: 115
Default Re: Very Basic Script

Thank you for the compliments. The main reason to release this was to spread knowledge about bcrypt in beginners snd even old school scripters.. �� Ill be here if anyone needs my help.
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 24/07/2019, 09:18 AM   #6
ZigGamerx
Huge Clucker
 
ZigGamerx's Avatar
 
Join Date: Jul 2018
Posts: 204
Reputation: 23
Default Re: Very Basic Script

@GTLS

There are few warnings of "TAG MISMATCH"

for example:

Code:
if(rows) ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "This account is found on your database. Please login", "Login", "Quit");
ZigGamerx is offline   Reply With Quote
Old 24/07/2019, 10:04 AM   #7
GTLS
High-roller
 
GTLS's Avatar
 
Join Date: Aug 2014
Location: India
Posts: 1,048
Reputation: 115
Default Re: Very Basic Script

Quote:
Originally Posted by ZigGamerx View Post
@GTLS

There are few warnings of "TAG MISMATCH"

for example:

Code:
if(rows) ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "This account is found on your database. Please login", "Login", "Quit");
Oh sorry, I uploaded the wrong pawn file. The solution is easy though.

remove the enum name of dialog ids and it will be fixed. I have uploaded the fixed pwn file over github.

PHP Code:
//change  on line 15
 
enum DIALOG_IDs
//to
enum 
__________________

I don't help for rep. I help cuz I was helped in the past.


Retired from SAMP Scene. Might open SAMP Forums once in a while.

Some treats for ya. Click em
Basic House System
Simple Speedo
Base Login/Register Script

GTLS is offline   Reply With Quote
Old 24/07/2019, 10:20 AM   #8
GeorgeMcReary
Big Clucker
 
Join Date: May 2015
Posts: 185
Reputation: 9
Default Re: Very Basic Script

Nice bro. Rated 5 Stars.
__________________
GeorgeMcReary is offline   Reply With Quote
Old 24/07/2019, 07:59 PM   #9
Mobtiesgangsa
Big Clucker
 
Join Date: Oct 2016
Posts: 130
Reputation: 16
Default Re: Very Basic Script

GTLS You dont becouse you never visited forum very often
Quote:
I dont think there are any base scripts on forums which uses BCrypt as example(At least I dont know if there are any)
check Solstice_s page he made one with both bCrypt and Whirlpool

Bcrypt concept
Mobtiesgangsa is offline   Reply With Quote
Old 24/07/2019, 09:18 PM   #10
Kane
Gangsta
 
Kane's Avatar
 
Join Date: Sep 2012
Posts: 810
Reputation: 123
Default Re: Very Basic Script

Not really helpful. I wouldn't recommend this to anyone, especially if they're just learning.
__________________
Los Santos Roleplay - Development team
@ls-rp.io
Kane is online now   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] Gang War - Basic script Matnix Gamemode Scripts 19 10/08/2017 08:55 AM
Basic 'Skeleton' Rp script JamesStryker Scripting Help 3 16/08/2013 08:23 PM
Script error - Please help, really basic. Kyle. Scripting Help 11 19/11/2011 06:11 AM
Help with very basic script cazz21 Help Archive 4 20/05/2011 12:33 PM
[Request] Basic Script Matthew_Murdoch Help Archive 3 27/08/2009 03:17 PM


All times are GMT. The time now is 02:25 AM.


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