11.03.2011, 11:51
Hello I've Maded this Dialog System Now i want it says Welcome Back (Here player Name)
And when it ask's for the pass (when logging and the pass is wrong it give three attempts to login)
i've just done this
And when it ask's for the pass (when logging and the pass is wrong it give three attempts to login)
i've just done this
pawn Код:
new name[MAX_PLAYER_NAME], dat[200];
GetPlayerName(playerid, name, sizeof(name));
format(dat, sizeof(dat), "MyData/User/%s.txt", name);
if(!fexist(dat))
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_INPUT, "Registration", "You Are New On This Server!\nPlease Enter Your Password Below To Regiser\n An Account.", "Continue", "Quit");
}else{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT, "Login", "Welcome Back %s.\nBefore you can start playing, we ask you\nto login.", "Continue", "Quit");
}
return 1;
}