[Ajuda] Com dialog
#3

Quote:
Originally Posted by TiagoPS
Посмотреть сообщение
Tenta agora

pawn Код:
if(dialogid == ReGiStEr)
{
    new file[128];
    new string[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    if(response)
    {
        if(strlen(inputtext) == 0)
        {
            format(string, sizeof string, "Bem vindo(a) ao server.\n\nUsuбrio: %s \n\nInforme sua senha para Registrar:", name);
            ShowPlayerDialog(playerid, ReGiStEr, DIALOG_STYLE_INPUT, "Conta", string, "Registrar", "Sair");
            return 0;
        }
        format(file,sizeof(file),"RoxBrasil/contas/%s.ini",name);
        if(!fexist(file))
        {
            dini_Create(file);
            dini_IntSet(file,"Senha", udb_hash(inputtext));
            dini_IntSet(file, "AdminLevel", 0);
            dini_IntSet(file,"Score", GetPlayerScore(playerid));
            dini_IntSet(file,"Money", GetPlayerMoney(playerid));
            dini_IntSet(file,"Deaths", PlayerInfo[playerid][Deaths]);
            dini_IntSet(file,"Kills", PlayerInfo[playerid][Kills]);
            dini_IntSet(file,"ServerTime", PlayerInfo[playerid][ServerTime]);
            dini_IntSet(file,"WantedLevel", GetPlayerWantedLevel(playerid));
            dini_IntSet(file,"PlayerSkin",GetPlayerSkin(player id));
            dini_IntSet(file,"Balance",pBankInfo[playerid][PLAYER_BALANCE]);
            dini_IntSet(file, "PositionX", floatround(positionx));
            dini_IntSet(file, "PositionY", floatround(positiony));
            dini_IntSet(file, "PositionZ", floatround(positionz));
            SetTimerEx("ZerowanieKasy2", 20000, 0, "d", playerid);
            format(string, sizeof string, "Bem vindo(a) ao server\n\nUsuбrio: %s \n\nInforme sua senha para logar:", name);
            ShowPlayerDialog(playerid, LoGiN, DIALOG_STYLE_INPUT, "Conta", string, "Logar", "Sair");
            PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
            GetPlayerName(playerid, name, sizeof(name));
            printf("%s Registrou sua conta!", name);
            SendClientMessage(playerid, BRANCO, "[CONTA]: Conta Registrada com sucesso.");
            return 1;
        }
        else
        {
        Kick(playerid);
        return 1;
        }
    }
}
Sу agora vi que tinham me respondido =D entгo cara,coloquei esse que vc mando e tbm nгo kicka o cara quando clicka em sair =/
Reply


Messages In This Thread
[Ajuda] Com dialog - by [GET]Vidaloka - 27.08.2010, 00:58
Re: [Ajuda] Com dialog - by TiagoPS - 27.08.2010, 12:54
Re: [Ajuda] Com dialog - by [GET]Vidaloka - 27.08.2010, 16:06
Respuesta: [Ajuda] Com dialog - by ipsBruno - 28.08.2010, 00:37
Re: [Ajuda] Com dialog - by SuB_ZeRo0_ - 28.08.2010, 00:47
Respuesta: [Ajuda] Com dialog - by ipsBruno - 28.08.2010, 01:25
Re: Respuesta: [Ajuda] Com dialog - by SuB_ZeRo0_ - 28.08.2010, 01:26
Respuesta: [Ajuda] Com dialog - by ipsBruno - 28.08.2010, 01:28
Re: [Ajuda] Com dialog - by [GET]Vidaloka - 28.08.2010, 02:08

Forum Jump:


Users browsing this thread: 1 Guest(s)