Advertisement
McFree

RP Weapons SAMP0.3.7

Apr 11th, 2017
343
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Include SAMP-UDF-Developer.ahk
  2. #IfWinActive GTA:SA:MP
  3. #Persistent
  4.  
  5. global TazerTo:= -1
  6. global TazerIn := 0
  7. global TazerOut:=0
  8. Loop
  9. {
  10. TempWeapon := getPlayerWeaponId()
  11. if (TempWeapon = 23) or(TempWeapon = 3)
  12.     if not TazerIn
  13.     {
  14.         TazerIn := 1
  15.         if TazerSleep
  16.             SetTimer TakeGun, 100
  17.         else
  18.         SetTimer TakeGun, %SleepOn%
  19.     }
  20.     if (TempWeapon = 24) or (TempWeapon = 25) or (TempWeapon = 29) or (TempWeapon = 31) or (TempWeapon = 17) or (TempWeapon = 1) or (TempWeapon = 5) or (TempWeapon = 14) or (TempWeapon = 30) or (TempWeapon = 33) or (TempWeapon = 34) or (TempWeapon = 43) or (TempWeapon = 46) or (TempWeapon = 15) or (TempWeapon = 36) or (TempWeapon = 2)  {
  21.         if not TazerIn
  22.         {
  23.             TazerIn := 1
  24.             SetTimer TakeGun, %SleepOn%
  25.         }
  26.     }
  27.     if (TempWeapon = 0)
  28.     {
  29.         if (TazerOut > 1) and (TazerTo)
  30.         {
  31.             TazerTo := 0
  32.             SetTimer UnloadGun, %SleepOff%
  33.         }
  34.     }
  35.     Sleep 100
  36. }
  37. TakeGun:
  38. TempWeapon := getPlayerWeaponId()
  39. if (TempWeapon = 24) and (TazerOut != 2) {
  40.     SendChat("/me достал" Female " пистолет из кобуры.")
  41.     TazerOut:=2
  42. }
  43. if (TempWeapon = 3) and (TazerOut != 3) {
  44.     SendChat("/me снял" Female " дубинку с поясного держателя.")
  45.     TazerOut:=3
  46. }
  47. if (TempWeapon = 23) and (TazerOut != 4) {
  48.     SendChat("/me снял" Female " электрошокер с пояса")
  49.     TazerOut:=4
  50. }
  51. if (TempWeapon = 25) and (TazerOut != 5) {
  52.     SendChat("/me достал" Female " Shotgun из-за спины.")
  53.     TazerOut:=5
  54. }
  55. if (TempWeapon = 29) and (TazerOut != 6) {
  56.     SendChat("/me взял" Female " MP-5 в руки.")
  57.     TazerOut:=6
  58. }
  59. if (TempWeapon = 31) and (TazerOut != 7) {
  60.     SendChat("/me взял" Female " карабин М4А1 в руки.")
  61.     TazerOut:=7
  62. }
  63. if (TempWeapon = 17) and (TazerOut != 8) {
  64.     SendChat("/me надел" Female " противогаз.")
  65.     Sleep 2000
  66.     SendChat("/me достал" Female " светошумовую гранату.")
  67.     TazerOut:=8
  68. }
  69. if (TempWeapon = 1) and (TazerOut != 9) {
  70.     SendChat("/me надел" Female " кастет на руку.")
  71.     TazerOut:=9
  72. }
  73. if (TempWeapon = 5) and (TazerOut != 10) {
  74.     SendChat("/me взял" Female " бейсбольную биту в руки.")
  75.     TazerOut:=10
  76. }
  77. if (TempWeapon = 14) and (TazerOut != 11) {
  78.     SendChat("/me развернул" Female " букет цветов.")
  79.     TazerOut:=11
  80. }
  81. if (TempWeapon = 30) and (TazerOut != 12) {
  82.     SendChat("/me взял" Female " автомат АК-47 в руки.")
  83.     TazerOut:=12
  84. }
  85. if (TempWeapon = 33) and (TazerOut != 13) {
  86.     SendChat("/me взял" Female " винтовку в руки.")
  87.     TazerOut:=13
  88. }
  89. if (TempWeapon = 34) and (TazerOut != 14) {
  90.     SendChat("/me взял" Female " снайперскую винтовку в руки.")
  91.     TazerOut:=14
  92. }
  93. if (TempWeapon = 43) and (TazerOut != 15) {
  94.     SendChat("/me достал" Female " фотоаппарат.")
  95.     TazerOut:=15
  96. }
  97. if (TempWeapon = 46) and (TazerOut != 16) {
  98.     SendChat("/me одел" Female " парашют на плечи.")
  99.     TazerOut:=16
  100. }
  101. if (TempWeapon = 15) and (TazerOut != 17) {
  102.     SendChat("/me достал" Female " элегантную трость.")
  103.     TazerOut:=17
  104. }
  105. if (TempWeapon = 36) and (TazerOut != 18) {
  106.     SendChat("/me взял" Female " Stinger в руки.")
  107.     TazerOut:=18
  108. }
  109. if (TempWeapon = 2) and (TazerOut != 19) {
  110.     SendChat("/me взял" Female " клюшку в руки.")
  111.     TazerOut:=19
  112. }
  113. TazerIn := 0
  114. TazerTo := 1
  115. SetTimer TakeGun, Off
  116. return
  117.  
  118. UnloadGun:
  119. TempWeapon := getPlayerWeaponId()
  120. if not (TempWeapon = 24) and (TazerOut = 2)
  121. {
  122. SendChat("/me убрал" Female " оружие в кобуру.")
  123. }
  124. if not (TempWeapon = 3) and (TazerOut = 3)
  125. {
  126. SendChat("/me повесил" Female " дубинку на пояс.")
  127. }
  128. if not (TempWeapon = 23) and (TazerOut = 4)
  129. {
  130. SendChat("/me повесил" Female " электрошокер на пояс.")
  131. }
  132. if not (TempWeapon = 3) and (TazerOut = 5)
  133. {
  134. SendChat("/me убрал" Female " Shotgun за спину.")
  135. }
  136. if not (TempWeapon = 3) and (TazerOut = 6)
  137. {
  138. SendChat("/me повесил" Female " MP-5 на плечо.")
  139. }
  140. if not (TempWeapon = 31) and (TazerOut = 7)
  141. {
  142. SendChat("/me убрал" Female " карабин М4А1 за спину.")
  143. }
  144. if not (TempWeapon = 1) and (TazerOut = 9)
  145. {
  146. SendChat("/me снял" Female " кастет.")
  147. }
  148. if not (TempWeapon = 5) and (TazerOut = 10)
  149. {
  150. SendChat("/me спрятал" Female " биту.")
  151. }
  152. if not (TempWeapon = 14) and (TazerOut = 11)
  153. {
  154. SendChat("/do Цветы не в руках.")
  155. }
  156. if not (TempWeapon = 30) and (TazerOut = 12)
  157. {
  158. SendChat("/me убрал" Female " АК-47 за спину.")
  159. }
  160. if not (TempWeapon = 33) and (TazerOut = 13)
  161. {
  162. SendChat("/me убрал" Female " винтовку.")
  163. }
  164. if not (TempWeapon = 34) and (TazerOut = 14)
  165. {
  166. SendChat("/me свернул" Female " снайперскую винтовку в чехол.")
  167. }
  168. if not (TempWeapon = 43) and (TazerOut = 15)
  169. {
  170. SendChat("/me закрыл" Female " крышечкой объектив фотоаппарата.")
  171. }
  172. if not (TempWeapon = 46) and (TazerOut = 16)
  173. {
  174. SendChat("/me снял" Female " парашют.")
  175. }
  176. TazerOut:=0
  177. SetTimer UnloadGun, Off
  178. return
  179. 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement