Guest User

Untitled

a guest
Oct 18th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.27 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #if defined FILTERSCRIPT
  4.  
  5. public OnFilterScriptInit()
  6. {
  7. print("\n--------------------------------------");
  8. print(" Made By Meow22");
  9. print("--------------------------------------\n");
  10. return 1;
  11. }
  12.  
  13. public OnFilterScriptExit()
  14. {
  15. return 1;
  16. }
  17.  
  18. if (strcmp("/fightstyle", cmdtext, true, 11) == 0)
  19. {
  20. ShowPlayerDialog(playerid, 3, DIALOG_STYLE_LIST, "What Fight Style you Want Choose it!", "Normal\nBoxing\nKungfu\nKneeHead\nGrabKick\nElbow", "Change", "Cancel");
  21. return 1;
  22. }
  23.  
  24.  
  25. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  26. {
  27. if(response)
  28. {
  29. switch(dialogid)
  30.  
  31. case 3:
  32. {
  33. switch(listitem)
  34. {
  35. case 0:
  36. {
  37. SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
  38. SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Normal fight style!");
  39. }
  40. case 1:
  41. {
  42. SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
  43. SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Boxing fight style!");
  44. }
  45. case 2:
  46. {
  47. SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
  48. SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Kungfu fight style!");
  49. }
  50. case 3:
  51. {
  52. SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
  53. SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the KneeHead fight style!");
  54. }
  55. case 4:
  56. {
  57. SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
  58. SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the GrabKick fight style!");
  59. }
  60. case 5:
  61. {
  62. SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
  63. SendClientMessage(playerid, 0x00FF00, "You have changed your fighting style to the Elbow fight style!");
  64. }
  65. }
  66. }
  67. }
  68. }
  69.  
  70. return 1;
  71. }
  72.  
  73. #else
  74.  
  75. main()
  76. {
  77. print("\n----------------------------------");
  78. print(" Blank Gamemode by your name here");
  79. print("----------------------------------\n");
  80. }
  81.  
  82. #endif
Advertisement
Add Comment
Please, Sign In to add comment