Guest User

Climas em Dialog

a guest
May 1st, 2013
290
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. /*
  2. Baixado na WWW.DETONASAMP.COM
  3. -Tudo para seu servidor samp
  4. FS Criado por: iFox - Fórum SA-MP.
  5. Não retire os créditos.
  6. */
  7. #include a_samp
  8. #include zcmd
  9.  
  10. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
  11. if (dialogid == 12) {
  12. if (response) {
  13. if (listitem == 0) {
  14. {
  15. SetWeather(1);
  16. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  17. }
  18. }
  19. if (listitem == 1) {
  20. {
  21. SetWeather(19);
  22. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  23. }
  24. }
  25. if (listitem == 2) {
  26. {
  27. SetWeather(9);
  28. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  29. }
  30. }
  31. if (listitem == 3) {
  32. {
  33. SetWeather(20);
  34. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  35. }
  36. }
  37. if (listitem == 4) {
  38. {
  39. SetWeather(16);
  40. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  41. }
  42. }
  43. if (listitem == 5) {
  44. {
  45. SetWeather(44);
  46. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  47. }
  48. }
  49. if (listitem == 6) {
  50. {
  51. SetWeather(11);
  52. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  53. }
  54. }
  55. if (listitem == 7) {
  56. {
  57. SetWeather(39);
  58. SendClientMessage(playerid, 0x33CCFFAA, "Você alterou o clima com sucesso.");
  59. }
  60. }
  61. }
  62. else {
  63. }
  64. }
  65. return 1;
  66. }
  67.  
  68. COMMAND:clima(playerid)
  69. {
  70. 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");
  71. return 1;
  72. }
Advertisement
Add Comment
Please, Sign In to add comment