Advertisement
BrunoAlves

Dialog luta

Jul 16th, 2012
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. //Fs feito por BRUNO ALVES jamais tire os créditos!
  2. #include <a_samp>
  3. #define MudarLuta 101
  4. //-------------------------------------------------
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. print("** FS de estilos de luta By:Bruno Alves Carregado Com Sucesso");
  9. return 1;
  10. }
  11. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  12. {
  13. if(dialogid == MudarLuta)
  14. {
  15. if(response)
  16. {
  17. if(listitem == 0)
  18. {
  19. SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);//boxe
  20. PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  21. }
  22. if(listitem == 1)
  23. {
  24. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);//kongfu
  25. PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  26. }
  27. if(listitem == 2)
  28. {
  29. SetPlayerFightingStyle(playerid, FIGHT_STYLE_ELBOW);//Briga de rua
  30. PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  31. }
  32. if(listitem == 3)
  33. {
  34. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);//agarra e chute
  35. PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  36. }
  37. if(listitem == 4)
  38. {
  39. SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);//normal
  40. PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
  41. }
  42. }
  43. }
  44. return 1;
  45. }
  46.  
  47. //Feito Por BRUNO ALVES
  48.  
  49. public OnPlayerCommandText(playerid, cmdtext[])
  50. {
  51. if(strcmp(cmdtext,"/mudarluta",true) == 0)
  52. {
  53.  
  54. ShowPlayerDialog(playerid, MudarLuta, DIALOG_STYLE_LIST,
  55. "Estilos de luta",
  56. "{ADFF2F}Boxe\n{CAE1FF}Kongfu\n{7B68EE}Briga de Rua\nAgarra e Chute\n{912CEE}Normal",
  57. "Selecionar", "Sair");
  58. return 1;
  59. }
  60. return false;
  61. }
  62. ////Feito Por BRUNO ALVES
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement