Guest User

Untitled

a guest
Nov 20th, 2012
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define DIALOG_TUTO 25469
  4.  
  5. new Tuto[MAX_PLAYERS];
  6.  
  7. public OnPlayerConnect(playerid)
  8. {
  9. Tuto[playerid] = 1;
  10.  
  11. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  12. return 1;
  13. }
  14. public OnDialogResponse(playerid,dialogid,response,listitem,inputtext[])
  15. {
  16. if(dialogid == DIALOG_TUTO)
  17. {
  18. if(response)
  19. {
  20. if(Tuto[playerid] == 1)
  21. {
  22. Tuto[playerid] = 2;
  23. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  24. return 1;
  25. }
  26. if(Tuto[playerid] == 2)
  27. {
  28. Tuto[playerid] = 3;
  29. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  30. return 1;
  31. }
  32. if(Tuto[playerid] == 3)
  33. {
  34. Tuto[playerid] = 4;
  35. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  36. return 1;
  37. }
  38. if(Tuto[playerid] == 4)
  39. {
  40. Tuto[playerid] = 5;
  41. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  42. return 1;
  43. }
  44. if(Tuto[playerid] == 5)
  45. {
  46. Tuto[playerid] = 6;
  47. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  48. return 1;
  49. }
  50. if(Tuto[playerid] == 6)
  51. {
  52. Tuto[playerid] = 7;
  53. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  54. return 1;
  55. }
  56. if(Tuto[playerid] == 7)
  57. {
  58. Tuto[playerid] = 8;
  59. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  60. return 1;
  61. }
  62. if(Tuto[playerid] == 8)
  63. {
  64. Tuto[playerid] = 9;
  65. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  66. return 1;
  67. }
  68. if(Tuto[playerid] == 9)
  69. {
  70. Tuto[playerid] = 10;
  71. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Avancar","Cancelar");
  72. return 1;
  73. }
  74. if(Tuto[playerid] == 10)
  75. {
  76. Tuto[playerid] = 0;
  77. ShowPlayerDialog(playerid,DIALOG_TUTO,DIALOG_STYLE_MSGBOX,"Texto","Texto","Finalizar","Cancelar");
  78. return 1;
  79. }
  80. }
  81. else
  82. {
  83. SendClientMessage(playerid,0xFF8080AA,"Volte Sempre!");
  84. Kick(playerid);
  85. return 1;
  86. }
  87. }
  88. return 1;
  89. }
Advertisement
Add Comment
Please, Sign In to add comment