Advertisement
Vlad64

San Andreas Hard DM - part 6

Dec 28th, 2012
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.64 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #define FILTERSCRIPT
  4. #if defined FILTERSCRIPT
  5.  
  6. public OnFilterScriptInit()
  7. {
  8. print("----------------------------------------");
  9. print(" Anim FilterScript Created By Vlad");
  10. print("----------------------------------------");
  11. return 1;
  12. }
  13.  
  14. public OnFilterScriptExit()
  15. {
  16. return 1;
  17. }
  18.  
  19. #endif
  20.  
  21. public OnPlayerCommandText(playerid,cmdtext[])
  22. {
  23. if (!strcmp("/smoke",cmdtext,true,7))
  24. {
  25. if (GetPlayerMoney(playerid) - 5 <0) return SendClientMessage(playerid,0xFFC800FF,"You don't have enough money! You need $5!");
  26. SetPlayerSpecialAction(playerid,SPECIAL_ACTION_SMOKE_CIGGY);
  27. GivePlayerMoney (playerid, -5);
  28. SendClientMessage (playerid, 0xFA73F8, "You bought a cigaret for $5!");
  29. return 1;
  30. }
  31.  
  32. if (!strcmp("/beer",cmdtext,true,7))
  33. {
  34. if (GetPlayerMoney(playerid) - 10 <0) return SendClientMessage(playerid,0xFFC800FF,"You don't have enough money! You need $10!");
  35. SetPlayerSpecialAction (playerid,SPECIAL_ACTION_DRINK_WINE);
  36. GivePlayerMoney (playerid, -10);
  37. SendClientMessage (playerid, 0xFA73F8, "You bought a beer for $10!");
  38. return 1;
  39. }
  40.  
  41. if (!strcmp("/sprunk",cmdtext,true,7))
  42. {
  43. if (GetPlayerMoney(playerid) - 6 <0) return SendClientMessage(playerid,0xFFC800FF,"You don't have enough money! You need $6!");
  44. SetPlayerSpecialAction (playerid,SPECIAL_ACTION_DRINK_SPRUNK);
  45. GivePlayerMoney (playerid, -6);
  46. SendClientMessage (playerid, 0xFA73F8, "You bought a sprunk for $6!");
  47. return 1;
  48. }
  49.  
  50. if (!strcmp("/selftie",cmdtext,true,7))
  51. {
  52. SendClientMessage (playerid, 0x57ED4A, "You cuffed yourself!");
  53. SendClientMessage (playerid, 0x57ED4A, "If you want to get uncuffed talk with an admin!");
  54. SetPlayerSpecialAction (playerid,SPECIAL_ACTION_CUFFED);
  55. TogglePlayerControllable (playerid, 0);
  56. return 1;
  57. }
  58.  
  59. if (!strcmp("/handsup",cmdtext,true,7))
  60. {
  61. SetPlayerSpecialAction (playerid, SPECIAL_ACTION_HANDSUP);
  62. return 1;
  63. }
  64.  
  65. if (!strcmp("/stopanim",cmdtext,true,7))
  66. {
  67. SetPlayerSpecialAction (playerid, SPECIAL_ACTION_NONE);
  68. return 1;
  69. }
  70.  
  71. if (!strcmp("/dance1",cmdtext,true,7))
  72. {
  73. SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE1);
  74. return 1;
  75. }
  76.  
  77. if (!strcmp("/dance2",cmdtext,true,7))
  78. {
  79. SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE2);
  80. return 1;
  81. }
  82.  
  83. if (!strcmp("/dance3",cmdtext,true,7))
  84. {
  85. SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE3);
  86. return 1;
  87. }
  88.  
  89. if (!strcmp("/dance4",cmdtext,true,7))
  90. {
  91. SetPlayerSpecialAction (playerid, SPECIAL_ACTION_DANCE4);
  92. return 1;
  93. }
  94. return 0;
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement