Advertisement
Guest User

Fighting styles

a guest
Mar 28th, 2013
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.15 KB | None | 0 0
  1. // This is a comment
  2. // uncomment the line below if you want to write a filterscript
  3. //#define FILTERSCRIPT
  4.  
  5. #include <a_samp>
  6. #include <zcmd>
  7.  
  8. #if defined FILTERSCRIPT
  9.  
  10. public OnFilterScriptInit(){
  11. print("\n--------------------------------------");
  12. print(" Blank Filterscript by your name here");
  13. print("--------------------------------------\n");
  14. return 1;
  15. }
  16.  
  17. public OnFilterScriptExit(){
  18. return 1;
  19. }
  20.  
  21. #endif
  22.  
  23. new RandomMSG[][] =
  24. {
  25. "/fstyles to see this server's fighting styles.",
  26. "/fstyle1 fight style boxing.",
  27. "/fstyle2 fight style knee head.",
  28. "/fstyle3 fight style kung fu.",
  29. "/fstyle4 fight style normal or grab kick.",
  30. "RMB + F or Enter to check your fighting style."
  31. };
  32.  
  33.  
  34.  
  35.  
  36. forward sendMSG();
  37. public sendMSG()
  38. {
  39. new randMSG = random(sizeof(RandomMSG));
  40. SendClientMessageToAll(0x009500FF, RandomMSG[randMSG]);
  41. }
  42.  
  43.  
  44.  
  45. CMD:fstyle1(playerid, params[]){
  46. SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
  47. SendClientMessage(playerid, 0x009500FF, "Now your fighting style is boxing RMB + F or Enter to check boxing style");
  48. }
  49.  
  50. CMD:fstyle2(playerid, params[]){
  51. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
  52. SendClientMessage(playerid, 0x009500FF, "Now your fighting style is knee head RMB + F or Enter to check knee head style");
  53. }
  54.  
  55. CMD:fstyle4(playerid, params[]){
  56. SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
  57. SendClientMessage(playerid, 0x009500FF, "Now your fighting style is knee head RMB + F or Enter to check grab kick or normal style");
  58.  
  59. }
  60.  
  61. CMD:fstyle3(playerid, params[]){
  62. SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
  63. SendClientMessage(playerid, 0x009500FF, "Now your fighting style is knee head RMB + F or Enter to check kung fu style");
  64.  
  65. }
  66.  
  67. CMD:fstyles(playerid, params[]){
  68. ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "FIGHTING STYLES", "{00FF00}/fstyle1 BOXING Style\n{00FF00}/fstyle2 KUNGFU Style\n{00FF00}/fstyle3 KNEE HEAD Style\n{00FF00}/fstyle4 GRAB KICK OR NORMAL Style", "OK", "CANCEL");
  69. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement