help (dyaloglogin)
#4

Change your code where it starts with ELSE with this

pawn Код:
else
            {
                PlayerInfo[playerid][FailLogin]++;
                SendClientMessage(playerid,red,"ACCOUNT: Login failed! Incorrect Password");
                printf("LOGIN: %s has failed to login, Wrong password (%s) Attempt (%d)", PlayerName2(playerid), inputtext, PlayerInfo[playerid][FailLogin] );
                if(PlayerInfo[playerid][FailLogin] == MAX_FAIL_LOGINS)
                {
                    format(string, sizeof(string), "%s has been kicked (Failed Logins)", PlayerName2(playerid) );
                    SendClientMessageToAll(grey, string);
                    print(string);
                    Kick(playerid);
                }
                    // here you can re-show your dialog if they typed wrong
               
            }
Reply


Messages In This Thread
help (dyaloglogin) - by s3ek - 08.02.2015, 22:28
Re: help (dyaloglogin) - by Sime30 - 08.02.2015, 22:56
Re: help (dyaloglogin) - by s3ek - 08.02.2015, 23:11
Re: help (dyaloglogin) - by Sime30 - 08.02.2015, 23:30
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 00:20
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 00:37
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 00:41
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 01:02
Re: help (dyaloglogin) - by s3ek - 09.02.2015, 01:18
Re: help (dyaloglogin) - by Schneider - 09.02.2015, 02:31

Forum Jump:


Users browsing this thread: 2 Guest(s)