30.06.2013, 07:59
pawn Код:
new pfile[100];
GetPlayerName(playerid, pname, sizeof(pname));
format(pfile, sizeof(pfile), "HAccounts/%s.ini",pname);
if (!dini_Exists(pfile))
{
ShowPlayerDialog(playerid,101,DIALOG_STYLE_INPUT,"Registration","Please enter a password to register this account!","Register","Cancel");
}
else if (dini_Exists(pfile)) ShowPlayerDialog(playerid,100,DIALOG_STYLE_INPUT,"Login","Please enter a password to login to this account!","Login","Cancel");