07.07.2013, 19:33
Код:
public OnPlayerConnect(playerid) { new arquivo[40], name[MAX_PLAYER_NAME], String[108]; GetPlayerName(playerid, name, 32); format(arquivo, 40, "contas/%s.ini", name); if(DOF2_FileExists(arquivo)) { format(String, sizeof(String), "Nick:%s\nDigite sua senha para logar", name); ShowPlayerDialog(playerid, DIALOG_LOGAR, DIALOG_STYLE_PASSWORD, "Login", String, "Logar", "Cancelar"); } else { format(String, sizeof(String), "Nick:%s\nDigite uma senha para registrar", name); ShowPlayerDialog(playerid, DIALOG_REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar"); } return 1; }
Tarde D+ e.e'