jlalt

fighting style

Apr 11th, 2015
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. #define DIALOG_FSTYLES 5009
  2.  
  3. //-------------------------------Dialog Fighting style for [STADM]-------------------------------
  4. CMD:fstyles(playerid, params[])
  5. {
  6. ShowPlayerDialog(playerid, DIALOG_FSTYLES, DIALOG_STYLE_LIST, "Fighting Styles", "Elbow\nBoxing\nGrabkick\nKneehead\nKungfu\nNormal", "Select", "Cancel");
  7. return 1;
  8. }
  9. if(dialogid == DIALOG_FSTYLES)
  10. {
  11. if(response)
  12. {
  13. if(listitem == 0)
  14. {
  15. SetPlayerFightingStyle (playerid, FIGHT_STYLE_ELBOW);
  16. GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
  17. }
  18. if(listitem == 1)
  19. {
  20. SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);
  21. GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
  22. }
  23. if(listitem == 2)
  24. {
  25. SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);
  26. GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
  27. }
  28. if(listitem == 3)
  29. {
  30. SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);
  31. GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
  32. }
  33. if(listitem == 4)
  34. {
  35. SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
  36. GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
  37. }
  38. if(listitem == 5)
  39. {
  40. SetPlayerFightingStyle (playerid, FIGHT_STYLE_NORMAL);
  41. GameTextForPlayer(playerid,"~g~fighting ~w~Style CHANGED", 4000, 4);
  42. }
  43. return 1;
  44. }
  45. }
Advertisement
Add Comment
Please, Sign In to add comment