Advertisement
Chip7

[FS] FilterScript Climas Em Dialog

Sep 13th, 2013
515
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.93 KB | None | 0 0
  1. /*
  2.   VISITE NOSSO SITE: http://www.sampknd.com/
  3.   VISITE NOSSO FACEBOOK: http://www.facebook.com/SampKnd
  4.   SAMP KND MELHOR BLOG DE SAMP DO BRASIL
  5. */
  6. #include a_samp
  7. #include zcmd
  8.  
  9. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
  10.     if (dialogid == 12) {
  11.         if (response) {
  12.             if (listitem == 0) {
  13.                 {
  14.                     SetWeather(1);
  15.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  16.                 }
  17.             }
  18.             if (listitem == 1) {
  19.                 {
  20.                     SetWeather(19);
  21.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  22.                 }
  23.             }
  24.             if (listitem == 2) {
  25.                 {
  26.                     SetWeather(9);
  27.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  28.                 }
  29.             }
  30.             if (listitem == 3) {
  31.                 {
  32.                     SetWeather(20);
  33.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  34.                 }
  35.             }
  36.             if (listitem == 4) {
  37.                 {
  38.                     SetWeather(16);
  39.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  40.                 }
  41.             }
  42.             if (listitem == 5) {
  43.                 {
  44.                     SetWeather(44);
  45.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  46.                 }
  47.             }
  48.             if (listitem == 6) {
  49.                 {
  50.                     SetWeather(11);
  51.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  52.                 }
  53.             }
  54.             if (listitem == 7) {
  55.                 {
  56.                     SetWeather(39);
  57.                     SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  58.                 }
  59.             }
  60.         }
  61.             else {
  62.         }
  63.     }
  64.     return 1;
  65. }
  66.  
  67.     COMMAND:clima(playerid)
  68.     {
  69.         ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Selecione o clima:", "- {B0E0E6}Normal\n{FFFFFF}- {B0E0E6}Tempestade de Areia\n{FFFFFF}- {B0E0E6}Nebuloso\n{FFFFFF}- {B0E0E6}Névoa\n{FFFFFF}- {B0E0E6}Tempestade\n{FFFFFF}- {B0E0E6}Preto e Branco\n{FFFFFF}- {B0E0E6}Escaldante\n{FFFFFF}- {B0E0E6}Extremamente brilhante", "OK", "Cancelar");
  70.         return 1;
  71.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement