Help in MySQL Login/Register System
#5

Quote:
Originally Posted by Ankon
View Post
Thanks a lot friend..But still a problem..
I visited OverHaul's tutorial and it said..

"Ideally, you would add a check for the amount of times the player has tried to log in so they can't float the server with login request to guess someone's password."

But there is nowhere I see it on the script..
Outside any callback:
PHP Code:
new loginAttempts[MAX_PLAYERS]; 
OnPlayerConnect:
PHP Code:
loginAttempts[playerid] = 0
In dialog response->login->wrong password
PHP Code:
loginAttempts[playerid]++;
if(
loginAttempts[playerid] > 9)
   
Kick(playerid); 
Reply


Messages In This Thread
Help in MySQL Login/Register System - by Ankon - 06.07.2016, 06:25
Re: Help in MySQL Login/Register System - by iKarim - 06.07.2016, 07:23
Re: Help in MySQL Login/Register System - by CodeStyle175 - 06.07.2016, 09:10
Re: Help in MySQL Login/Register System - by Ankon - 06.07.2016, 13:18
Re: Help in MySQL Login/Register System - by Luicy. - 06.07.2016, 16:29
Re: Help in MySQL Login/Register System - by Ankon - 25.07.2016, 07:08

Forum Jump:


Users browsing this thread: 1 Guest(s)