18.08.2016, 10:03
PHP код:
case DIALOG_LOGIN:
{
if (!response) return Kick(playerid);
if( response )
{
if(!strcmp(inputtext, dini_Get(UserPath(playerid), "Password", false)))
{
ShowPlayerDialog(playerid, DIALOG_SUCCESS_2, DIALOG_STYLE_MSGBOX,"{008000}Success!","{FFFF00}You have successfully logged in!","Ok","");
}
else
{
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Login","{FF0000}You have entered an incorrect password.\n""Type your password below to login.","Login","Quit");
}
return 1;
}
}
}