12.05.2013, 21:04
Add something like this.
Код:
public OnPlayerConnect(playerid) { new name[MAX_PLAYER_NAME]; GetPlayerName(playerid,name,sizeof(name)); if(fexist(Path(playerid))) { INI_ParseFile(Path(playerid),"loadaccount_user", .bExtra = true, .extra = playerid); ShowPlayerDialog(playerid,DIALOG_LOGIN,DIALOG_STYLE_INPUT,"Login","Welcome back. This account is registered. \nInsert your password to login to your account","Login","Quit"); SendClientMessage(playerid, COLOR_YELLOW, "Welcome back to Blood Zone. We hope you will enjoy your stay!"); if(PlayerInfo[pAdmin] >= 1) { //Add message etc... } else { PlayerInfo[playerid][pAdmin] = 0; } } else { ShowPlayerDialog(playerid,DIALOG_REG,DIALOG_STYLE_INPUT,"Register","Welcome! This account is not registered.\nEnter your own password to create a new account.","Register","Quit"); return 1; }