[ajuda]dialog quando player conecta
#1

Como posso por um dialog com as regras do servidor quando o player connect sem afetar o sistema de login?
Reply
#2

sim, com certeza, й sу vocк ponhar ele com um id diferente exemplo

em onplayerconnect.

ShowPlayerDialog(playerid, 666, DIALOG_STYLE_LIST, "Regras"," Aki se coloca suas regras",Ok, Cancelar);

dai sу adicionar as funзхes na public ondialogresponse
Reply
#3

pode ser mais explicativo?
Reply
#4

pawn Код:
public OnPlayerConnect(playerid)
{
     ShowPlayerDialog(playerid, 666, DIALOG_STYLE_LIST, "Regras"," Aki se coloca suas regras",Ok, Cancelar);
     return true;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 666)
    {
        if(response == 0)
        {
                 //aki a funзгo
                  return 1;
                  }
                  if(response >= 1)
                  {
                  //aki a funзгo
              }
          return 1;
       }
Reply
#5

como posso por strcat?
Reply
#6

@Edit

Muito simples, vб atй a public OnPlayerConnect para acha-lб com mais facilidade aperte Ctrl + F e digite, OnPlayerConnect, lб nele vocк coloca o code

pawn Код:
ShowPlayerDialog(playerid, ID DO DIALOG, TIPO DO DIALOG, "TITULO","SEU TEXTO, LEMBRNANDO PARA PULAR LINHAS USE \n ..",BOTAO1, BOTAO2);
Tipos de dialog clique aqui.

Cores em HTML para sua mensagem, clique aqui.

Strcat clique aqui.

Obrigado, espero ter ajudado.
Reply
#7

pawn Код:
new regras[600];
new string[160];
strcat(string,"texto 1.\n\n"); strcat(regras, stringa);
format(stringa, sizeof(stringa), "texto 2."); strcat(regras, stringa);
ShowPlayerDialog(playerid,666, DIALOG_STYLE_MSGBOX, "Tutorial", regras, "Avanзar", "Cancelar");
coloque isso no lugar do outro dialog
Reply
#8

Quote:
Originally Posted by Matheus_Ecko
Посмотреть сообщение
pawn Код:
new regras[600];
new string[160];
strcat(string,"texto 1.\n\n"); strcat(regras, stringa);
format(stringa, sizeof(stringa), "texto 2."); strcat(regras, stringa);
ShowPlayerDialog(playerid,666, DIALOG_STYLE_MSGBOX, "Tutorial", regras, "Avanзar", "Cancelar");
coloque isso no lugar do outro dialog
Cade o new stringa[QUANTIDADE]; ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)