10.07.2013, 14:27
Hey basically if a player enters their password wrong it tells them to try again, however if they then get it right they end up in LV and bypass OnPlayerRequestClass.
Can anyone help me :S
Here is the code where they have to re-enter their password:
Can anyone help me :S
Here is the code where they have to re-enter their password:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
switch(dialogid)
{
case DIALOG_LOGIN:
{
if(!response)
{
SendClientMessage(playerid, COLOUR_RED, "Kick due to: Quitted login");
return Kick(playerid);
}
if(CheckUserLogin(playerid, inputtext))
{
return LoginUser(playerid);
}
else
{
SendClientMessage(playerid, COLOUR_RED, "Wrong {FFFFFF}password, please try again");
return ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Login", "Type in your password to login", "Login", "Quit");
}
}