SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 19/08/2019, 06:13 PM   #1
terrorrista
Banned
 
Join Date: May 2019
Location: Taubate Sp
Posts: 69
Reputation: 0
Default Login

galera estou tendo problemas no sistema de login tipo ta funcionando perfeitamente ta registrando e logando certinho so que se a pessoa clica em spawn sem digitar a senha e clicar em logar a pessoa spawna porem com skin do cj e sem dinhero tipo que spawna sem ta logado em nenhuma conta como fasso para corrigir esse bug e spawna somente se tiver logado
terrorrista is offline   Reply With Quote
Old 19/08/2019, 06:43 PM   #2
oRaphael
Big Clucker
 
oRaphael's Avatar
 
Join Date: Jul 2019
Location: Goiânia, Goias.
Posts: 183
Reputation: 2
Default Re: Login

Coloca SpawnPlayer(playerid); depois que o player clikar em logar, resolve tudo.
__________________
Fundador, Hyze RPG.
oRaphael is offline   Reply With Quote
Old 19/08/2019, 06:54 PM   #3
terrorrista
Banned
 
Join Date: May 2019
Location: Taubate Sp
Posts: 69
Reputation: 0
Default Re: Login

vou tentar vlw mano
terrorrista is offline   Reply With Quote
Old 19/08/2019, 07:01 PM   #4
RayanSanty
Big Clucker
 
RayanSanty's Avatar
 
Join Date: Aug 2018
Location: FSA, Bahia
Posts: 127
Reputation: 0
Default Re: Login

SpawnPlayer(playerid); ou a váriavel que você usa padrão de sua gm
__________________
Fundador do Brasil Fatal Life
Sulfuy, Games Studio

RayanSanty is offline   Reply With Quote
Old 19/08/2019, 07:03 PM   #5
terrorrista
Banned
 
Join Date: May 2019
Location: Taubate Sp
Posts: 69
Reputation: 0
Default Re: Login

nao resolvel continua msm coisa se clicar em spawn sem login ele spawna
terrorrista is offline   Reply With Quote
Old 19/08/2019, 07:06 PM   #6
terrorrista
Banned
 
Join Date: May 2019
Location: Taubate Sp
Posts: 69
Reputation: 0
Default Re: Login

terrorrista is offline   Reply With Quote
Old 19/08/2019, 07:06 PM   #7
oRaphael
Big Clucker
 
oRaphael's Avatar
 
Join Date: Jul 2019
Location: Goiânia, Goias.
Posts: 183
Reputation: 2
Default Re: Login

Me manda o código de quando o player clika em LOGAR.
__________________
Fundador, Hyze RPG.
oRaphael is offline   Reply With Quote
Old 19/08/2019, 07:09 PM   #8
terrorrista
Banned
 
Join Date: May 2019
Location: Taubate Sp
Posts: 69
Reputation: 0
Default Re: Login

Code:
case DIALOG_LOGIN:
        {
            if(response)
            {
                if(strlen(inputtext) < 5  strlen(inputtext) > 20  !strlen(inputtext))
                {
                    SendClientMessage(playerid, -1, "{FF0000}[ERRO]:{FFFFFF}Senha errada");
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "* Login BVP","Digite sua senha para entrar!","Entrar","Sair");
                    return 1;
                }
                if(strcmp(inputtext, DOF2_GetString(GetarArquivo(playerid), "Senha")) == 0)
                {
                    CarregarConta(playerid);
                     //SetSpawnInfo(playerid, 0, DOF2_GetInt(GetarArquivo(playerid), "Skin"), 823.6790,-1353.7346,13.5370, 354.1657, 0, 0, 0, 0, 0, 0);
                    SpawnPlayer(playerid);
                    SendClientMessage(playerid, VerdeClaro, "* Logado com sucesso!");
                }else{
                    ErroLogin[playerid] ++;
                    if(ErroLogin[playerid] == 5){SalvarConta(playerid); Kick(playerid);}

                    SendClientMessage(playerid, -1, "{FF0000}[ERRO]:{FFFFFF}Digite sua senha corretamente!");
                    ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "* Login BVP","Digite sua senha para entrar!","Entrar","Sair");
                }
            }else{
                SalvarConta(playerid);
                Kick(playerid);
            }
        }
terrorrista is offline   Reply With Quote
Old 19/08/2019, 07:11 PM   #9
oRaphael
Big Clucker
 
oRaphael's Avatar
 
Join Date: Jul 2019
Location: Goiânia, Goias.
Posts: 183
Reputation: 2
Default Re: Login

Coloca isso
Quote:
SpawnPlayer(playerid);
em public OnPlayerRequestClass(playerid, classid)
.
__________________
Fundador, Hyze RPG.
oRaphael is offline   Reply With Quote
Old 19/08/2019, 07:12 PM   #10
terrorrista
Banned
 
Join Date: May 2019
Location: Taubate Sp
Posts: 69
Reputation: 0
Default Re: Login

nao e clicar em loga e clica em << spawn >> sem fazer o login ele spawna
terrorrista is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Pedido] Sistema de Login que tenha login/registro/email/sexo GuilhermeNunes Português/Portuguese 1 20/03/2017 02:05 PM
[FilterScript] Register & Login system (verification code + return password + auto login [by ip]) benel1 Filterscripts 20 26/11/2014 09:05 PM
When player login to the server[/register & /login] Taz86 Help Archive 5 20/06/2010 09:09 AM
how does i make auto login and login before spawn ? reddead15 Help Archive 7 03/05/2010 02:26 AM
Can Any One Convert this scripted cmd login to dialog login system cssbart Help Archive 0 07/03/2010 05:57 PM


All times are GMT. The time now is 01:40 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.