02.06.2014, 13:28
OnPlayerConnect
I just edited deleted some lines within if(fexist....)) - Showing register dialog.
pawn Код:
if(fexist(Path(playerid)))
{
INI_ParseFile(Path(playerid),"loadaccount_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid,dlogin,DIALOG_STYLE_INPUT,"Login","Welcome back. This account is registered. \nType your password to login to your account","Login","Quit");/*A dialog with input style will appear so you can insert your password to login.*/
}
else
{
ShowPlayerDialog(playerid,dregister,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit");
}