[Ajuda] Alterar
#6

nгo, tu tira o dialog que inicia o dialog responde, tipo onplayerrequestclass eu crio la pra verificar se o player e registrado ou nгo
ai tipo crio os 2 showplayerdilaog registo e login, no lugar deles 2 que tu troca pelas as textdraws

ai basicamente a chamada do dialogresponde tava sendo no playerrequesteclass, ai mudou pra quando ele clicar, quando ele clicar, que vai ser chamado o dialog do dialogresponse

slg no meu, pra voce entender

PHP код:
public OnPlayerRequestClass(playeridclassid)
{
     
SetPlayerPos(playerid1958.37831343.157215.3746);
     
InterpolateCameraPos(playerid1959.2622071344.08801215.3746072035.7670891343.86303713.4138914000);
     
InterpolateCameraLookAt(playerid2035.8634031343.38952613.9577231961.4100341344.22863715.9856513000);
     
     new 
opening random(3);
    switch(
opening)
    {
        case 
0:
        {
          
InterpolateCameraPos(playerid163.2701412000.13500945.1230851638.889648869.13470433.7092283000);
          
InterpolateCameraLookAt(playerid167.2371211997.09167445.0918351643.077880866.40362533.7053223000);
        }
        case 
1:
        {
          
InterpolateCameraPos(playerid1649.179443846.97003133.1937712040.8425291343.22570814.4256013000);
          
InterpolateCameraLookAt(playerid1654.173095847.00451632.9438742035.8471671343.31518514.2303383000);
        }
        case 
2:
        {
          
InterpolateCameraPos(playerid2040.8386231343.22082514.4257861956.4340821344.49182116.3992422000);
          
InterpolateCameraLookAt(playerid2035.8634031343.38952613.9577231961.4100341344.22863715.9856512000);
        }
    }
     
    
//REGISTRO
    
new String[128], Nome[MAX_PLAYER_NAME];
    
GetPlayerName(playeridNomesizeof(Nome));
    
format(Stringsizeof(String), CONTASNome);
    if(!
fexist(String))
    {
        
TextDrawShowForPlayer(playeridformato);
        
TextDrawShowForPlayer(playeridregistro);
        
//TextDrawShowForPlayer(playerid, usebox1);
        
TextDrawShowForPlayer(playeridwarning1);
        
TextDrawShowForPlayer(playeridwarning2);
        
TextDrawShowForPlayer(playeridwarning3);
        
TextDrawShowForPlayer(playeridwarning4);
        
TextDrawShowForPlayer(playeridentrada);
        
TextDrawShowForPlayer(playeridwarning5);
        
TextDrawShowForPlayer(playeridwarning6);
        
TextDrawShowForPlayer(playeridwarning7);
        
TextDrawShowForPlayer(playeridnick);
        
PlayerTextDrawShow(playeridSenhaRegistro[playerid]);
        
PlayerTextDrawShow(playeridGuestLogRegistro[playerid]);
        
SelectTextDraw(playeridLARANJA);
        
//TogglePlayerSpectating(playerid, 1);
        //format(String, sizeof(String), "{FFFFFF}Olб {FFA000}%s{FFFFFF} vocк ainda nгo tem uma conta.\nRegistre-se e jogue em nosso servidor\n\nDigite uma senha para registrar:", Nome);
        //ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_PASSWORD, "Registro", String, "{FFA000}Registrar", "Cancelar");
    
}
    
//LOG-IN
    
else
    {
        
TextDrawShowForPlayer(playeridformato);
        
TextDrawShowForPlayer(playeridlogin);
        
TextDrawShowForPlayer(playeridbemvindo);
        
//TextDrawShowForPlayer(playerid, warning1l);
        //TextDrawShowForPlayer(playerid, warning2l);
        
TextDrawShowForPlayer(playeridentrada);
        
TextDrawShowForPlayer(playeridnick);
        
PlayerTextDrawShow(playeridlogar[playerid]);
        
SelectTextDraw(playeridLARANJA);
        
//TogglePlayerSpectating(playerid, 1);
        //format(String, sizeof(String), "{FFFFFF}Olб {FFA000}%s{FFFFFF}%s vocк jб tem uma conta, \nDigite sua senha para continuar:", Nome);
        //ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_PASSWORD, "Login", String, "{FFA000}Logar", "Cancelar");
    
}
    return 
1;

Reply


Messages In This Thread
Alterar - by Jorgeeee - 29.06.2017, 12:46
Re: Alterar - by Swinte - 29.06.2017, 12:58
Re: Alterar - by Jorgeeee - 29.06.2017, 12:59
Re: Alterar - by Jonorusc - 29.06.2017, 13:02
Re: Alterar - by Jorgeeee - 29.06.2017, 13:10
Re: Alterar - by Jonorusc - 29.06.2017, 13:13
Re: Alterar - by Jonorusc - 29.06.2017, 13:30

Forum Jump:


Users browsing this thread: 3 Guest(s)