Guest User

iFox - Fórum Samp

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