[Ajuda] como para aparecer * no lugar da senha ?
#1

obg pessaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaas
Reply
#2

pawn Код:
if (response >= 1) {
    if (strlen(inputtext) == 0) {
        GetPlayerName(playerid, loginname, sizeof(loginname));
        TogglePlayerControllable(playerid, 0);
        SetPlayerPos(playerid, 1415.4329, -806.9493, 85.0470);
        format(loginstring, sizeof(loginstring), "{FFB973}Se ja Bem Vindo ao {00FF00}Brasil {FFFF00}Sabotage{1E90FF}RPG V1.2\n\n\n{FFFFFF} Status da Conta: {80FF80}Registrada\n\n\n{FFFFFF}Nome:{1E90FF} %s\n\n{72FCB0}Vocк jб Estб Registrado!\n\n{77D3EE}Digite sua Senha para Logar.\n\n{FFC184} ** Caso erre 6 Vezes Serб Kickado!!\n\n{FFFFFF}Visite: http://www.brasilsabotagerpg.forumeiros.com <~", loginname);
        ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD "{00FF40}Brasil {FFD700}Sabotage{1E90FF}RPG V1.2", loginstring, "Logar", "Cancelar");
        InterpolateCameraPos(playerid, 1442.4664, -866.5638, 89.6085, 1416.4031, -870.2377, 91.1348, 6000, CAMERA_CUT);
        SetPlayerCameraPos(playerid, 1342.3231, -847.4993, 91.1653);
        SetPlayerCameraLookAt(playerid, 1342.7404, -848.4073, 90.7405);
        return 1;
    }
    if (strval(inputtext) > 0) {
        strmid(StrPasswrd[playerid], inputtext, 0, strlen(inputtext), 255);
        Encrypt(StrPasswrd[playerid]);
        OnPlayerLogin(playerid);
        return 1;
    }
    strmid(StrPasswrd[playerid], inputtext, 0, strlen(inputtext), 255);
    Encrypt(StrPasswrd[playerid]);
    Hospital[playerid] = 1;
    SpawnPlayer(playerid);
    OnPlayerLogin(playerid);
    return 1;
}
Код:
DIALOG_STYLE_INPUT substituido por DIALOG_STYLE_PASSWORD
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_INPUT "{00FF40}Brasil {FFD700}Sabotage{1E90FF}RPG V1.2", loginstring, "Logar", "Cancelar");
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_PASSWORD "{00FF40}Brasil {FFD700}Sabotage{1E90FF}RPG V1.2", loginstring, "Logar", "Cancelar");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)