Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all articles
Browse latest Browse all 595

[FilterScript] Register And Login System With Clickable Textdraws(MySQL R41+)

$
0
0
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.





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


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

#if !defined MIN_LENGTH_PASSWORD
        #define MIN_LENGTH_PASSWORD            5
#endif

#if !defined MAX_LENGTH_PASSWORD
        #define MAX_LENGTH_PASSWORD            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                  (2017)
#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



To set up the mysql database that you will use(line 138)
Code:

handle = mysql_connect("host", "user", "password", "database");


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"


Downloads
Source - Github: https://github.com/JuanUgalde/Register-And-Login-System

Viewing all articles
Browse latest Browse all 595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>