[Ajuda] Sistema de Login/Registro
#1

Bom Assim Quando o Player Entra Na Conta Tudo Direitinho Aparece Parabens Voce Entrou no Servidor
Dai Some a Dialog
Mais Quando Some a Dialog Aparece << >> Spawn
EU quERIA Que Spawna-se Sem Aparece a Dialog no Local Onde eu Definir
Reply
#2

PHP код:
public OnPlayerRequestSpawn
{
      
SpawnPlayer(playerid);
      return 
1;

Reply
#3

Nao Ainda Continua -' eu nao quero que aparece << >> spawn ,

Spawna Direto
Reply
#4

Manda o cуdigo da dialog Login que estб em OnPlayerDialogResponse
Reply
#5

PHP код:
 if(dialogid == DIALOG_LOGIN )
      {
        if(
response)
        {
                if(!
strlen(inputtext))
                {
                    
format(Stringsizeof(String), "{FFFFFF}Bem Vindo Novamente ({ADFF2F}%s{FFFFFF})\nDigite Sua Senha Abaixo Para Logar\n"PlayerName(playerid));
                       
ShowPlayerDialog(playeridDIALOG_LOGIN DIALOG_STYLE_PASSWORD"Nome Do Servidor - Login"String"Logar""Cancelar");
                    
SendClientMessage(playerid,0x1E90FFAA,"Digite Uma Senha Para Logar");
                    return 
true;
                }
                
format(Stringsizeof(String), PASTA_CONTASPlayerName(playerid));
                if(!
strcmp(inputtext,DOF2_GetString(String,"Senha"),false))
                {
                    
SendClientMessage(playerid, -1"Logado Com Sucesso");
                       
Logando(playerid);
                    return 
true;
                }
                else
                {
                    
format(Stringsizeof(String), "{FFFFFF}Bem Vindo Novamente ({ADFF2F}%s{FFFFFF})\nDigite Sua Senha Abaixo Para Logar\n"PlayerName(playerid));
                    
ShowPlayerDialog(playeridDIALOG_LOGIN DIALOG_STYLE_PASSWORD"Nome Do Servidor - Login"String"Logar""Cancelar");
                }
                return 
true;
            }
            else
            {
                
SendClientMessage(playerid0xFF0000AA"Vocк nгo quis se logar, por este motivo serб Kickado");
                
Kick(playerid);
                return 
true;
            }
      }
      return 
true;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)