Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. Public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3.    if(dialogid == clima) //dialog definida la em cima !
  4.    {
  5.       if(response) //Selecionando as opçoes ira Abrir :
  6.       {
  7.           if(listitem == 0) // lista 1 ou seja , tempestade .
  8.           {
  9.            new Names[30]; // Variavel
  10.            GetPlayerName(playerid,Names,sizeof(Names)); // Pega o Nome Do Player que esta Digitando o comando!  
  11.            format(string,sizeof(string),"* O administrador %s (%d) alterou o clima.",Names,playerid); //Formata o a mensagem com o nome do player .
  12.            SendClientMessageToAll(AdminCor, string); // Define que a mensagem acima é pra todos do servidor !
  13.            SetWeather(19); // Setando o clima Para o Id 19 (ou seja Tempestade )
  14.            return 1;
  15. }
  16. else if(listitem == 1) //lista 2 ou seja , Limpo , Faça Mesma coisa só mudando o ID do Clima!
  17. {
  18.            new Names[30]; // Variavel
  19.            GetPlayerName(playerid,Names,sizeof(Names)); // Pega o Nome Do Player que esta Digitando o comando!  
  20.            format(string,sizeof(string),"* O administrador %s (%d) alterou o clima.",Names,playerid); //Formata o a mensagem com o nome do player .
  21.            SendClientMessageToAll(AdminCor, string); // Define que a mensagem acima é pra todos do servidor !
  22.            SetWeather(1); // Setando o clima Para o Id 19 (ou seja Tempestade )
  23.            return 1;
  24. }
  25.         }
  26.       }
  27.    }
  28.            return 1;
  29. }