Jump to content

[FilterScript]Register And Login System


Young Crooi
 Share

Recommended Posts

  • 1 month later...
  • Replies 86
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 weeks later...
  • 2 months later...
  • 2 months later...
  • 3 weeks later...
  • 1 month later...
On 3/31/2018 at 1:30 PM, Young Crooi said:

Register And Login System With Clickable Textdraws

Hello SA-MP Forums, a few days ago I found a video about a registration system with clickable textdraws, I quite liked but there not was a download link, I decided to create an identical system and here I leave for you as well.

 

image.jpg

To edit the system configurations

To set the maximum number of failed login attempts

Code:#if !defined MAX_LOGGIN_ATTEMPTS     #define MAX_LOGGIN_ATTEMPTS (5) #endif

Code:#if !defined MAX_LOGGIN_ATTEMPTS
    #define MAX_LOGGIN_ATTEMPTS (5)
#endif

To set the minimum/max number of characters that a password must have

Code:#if !defined MIN_PASSWORD_LENGTH     #define MIN_PASSWORD_LENGTH 5 #endif #if !defined MAX_PASSWORD_LENGTH     #define MAX_PASSWORD_LENGTH 20 #endif

Code:#if !defined MIN_PASSWORD_LENGTH
    #define MIN_PASSWORD_LENGTH 5
#endif


#if !defined MAX_PASSWORD_LENGTH
    #define MAX_PASSWORD_LENGTH 20
#endif

To set the year older and newer than we can select as year of birth

Code:#if !defined MIN_DATE_YEAR     #define MIN_DATE_YEAR (1850) #endif #if !defined MAX_DATE_YEAR     #define MAX_DATE_YEAR (2018) #endif

Code:#if !defined MIN_DATE_YEAR
    #define MIN_DATE_YEAR (1850)
#endif


#if !defined MAX_DATE_YEAR
    #define MAX_DATE_YEAR (2018)
#endif

To change the color of the textdraw when we pass the mouse over the textdraw clickable

Code:#if !defined COLOR_LOGGIN_TD_HOVERING     #define COLOR_LOGGIN_TD_HOVERING        (0x00C100FF) #endif #if !defined COLOR_REGISTER_TD_HOVERING     #define COLOR_REGISTER_TD_HOVERING        (0xFF000085) #endif

Code:#if !defined COLOR_LOGGIN_TD_HOVERING
    #define COLOR_LOGGIN_TD_HOVERING        (0x00C100FF)
#endif


#if !defined COLOR_REGISTER_TD_HOVERING
    #define COLOR_REGISTER_TD_HOVERING        (0xFF000085)
#endif

For configure the MySQL database, you must add your information in the mysql.ini file

The system automatically recognizes a leap year and correctly show the days of february depending if the year is a leap year or not

Two useful commands were added to the system "/changepassword" and "/changegender"


Download
github -

Protected content!

  • Reply to this topic to see the protected content.

 

 

pastebin -

Protected content!

  • Reply to this topic to see the protected content.

 

 

woke

Link to comment
Share on other sites

  • 5 weeks later...
  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...