Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Include SAMP-UDF-Developer.ahk
- #IfWinActive GTA:SA:MP
- #Persistent
- global TazerTo:= -1
- global TazerIn := 0
- global TazerOut:=0
- Loop
- {
- TempWeapon := getPlayerWeaponId()
- if (TempWeapon = 23) or(TempWeapon = 3)
- if not TazerIn
- {
- TazerIn := 1
- if TazerSleep
- SetTimer TakeGun, 100
- else
- SetTimer TakeGun, %SleepOn%
- }
- 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) {
- if not TazerIn
- {
- TazerIn := 1
- SetTimer TakeGun, %SleepOn%
- }
- }
- if (TempWeapon = 0)
- {
- if (TazerOut > 1) and (TazerTo)
- {
- TazerTo := 0
- SetTimer UnloadGun, %SleepOff%
- }
- }
- Sleep 100
- }
- TakeGun:
- TempWeapon := getPlayerWeaponId()
- if (TempWeapon = 24) and (TazerOut != 2) {
- SendChat("/me достал" Female " пистолет из кобуры.")
- TazerOut:=2
- }
- if (TempWeapon = 3) and (TazerOut != 3) {
- SendChat("/me снял" Female " дубинку с поясного держателя.")
- TazerOut:=3
- }
- if (TempWeapon = 23) and (TazerOut != 4) {
- SendChat("/me снял" Female " электрошокер с пояса")
- TazerOut:=4
- }
- if (TempWeapon = 25) and (TazerOut != 5) {
- SendChat("/me достал" Female " Shotgun из-за спины.")
- TazerOut:=5
- }
- if (TempWeapon = 29) and (TazerOut != 6) {
- SendChat("/me взял" Female " MP-5 в руки.")
- TazerOut:=6
- }
- if (TempWeapon = 31) and (TazerOut != 7) {
- SendChat("/me взял" Female " карабин М4А1 в руки.")
- TazerOut:=7
- }
- if (TempWeapon = 17) and (TazerOut != 8) {
- SendChat("/me надел" Female " противогаз.")
- Sleep 2000
- SendChat("/me достал" Female " светошумовую гранату.")
- TazerOut:=8
- }
- if (TempWeapon = 1) and (TazerOut != 9) {
- SendChat("/me надел" Female " кастет на руку.")
- TazerOut:=9
- }
- if (TempWeapon = 5) and (TazerOut != 10) {
- SendChat("/me взял" Female " бейсбольную биту в руки.")
- TazerOut:=10
- }
- if (TempWeapon = 14) and (TazerOut != 11) {
- SendChat("/me развернул" Female " букет цветов.")
- TazerOut:=11
- }
- if (TempWeapon = 30) and (TazerOut != 12) {
- SendChat("/me взял" Female " автомат АК-47 в руки.")
- TazerOut:=12
- }
- if (TempWeapon = 33) and (TazerOut != 13) {
- SendChat("/me взял" Female " винтовку в руки.")
- TazerOut:=13
- }
- if (TempWeapon = 34) and (TazerOut != 14) {
- SendChat("/me взял" Female " снайперскую винтовку в руки.")
- TazerOut:=14
- }
- if (TempWeapon = 43) and (TazerOut != 15) {
- SendChat("/me достал" Female " фотоаппарат.")
- TazerOut:=15
- }
- if (TempWeapon = 46) and (TazerOut != 16) {
- SendChat("/me одел" Female " парашют на плечи.")
- TazerOut:=16
- }
- if (TempWeapon = 15) and (TazerOut != 17) {
- SendChat("/me достал" Female " элегантную трость.")
- TazerOut:=17
- }
- if (TempWeapon = 36) and (TazerOut != 18) {
- SendChat("/me взял" Female " Stinger в руки.")
- TazerOut:=18
- }
- if (TempWeapon = 2) and (TazerOut != 19) {
- SendChat("/me взял" Female " клюшку в руки.")
- TazerOut:=19
- }
- TazerIn := 0
- TazerTo := 1
- SetTimer TakeGun, Off
- return
- UnloadGun:
- TempWeapon := getPlayerWeaponId()
- if not (TempWeapon = 24) and (TazerOut = 2)
- {
- SendChat("/me убрал" Female " оружие в кобуру.")
- }
- if not (TempWeapon = 3) and (TazerOut = 3)
- {
- SendChat("/me повесил" Female " дубинку на пояс.")
- }
- if not (TempWeapon = 23) and (TazerOut = 4)
- {
- SendChat("/me повесил" Female " электрошокер на пояс.")
- }
- if not (TempWeapon = 3) and (TazerOut = 5)
- {
- SendChat("/me убрал" Female " Shotgun за спину.")
- }
- if not (TempWeapon = 3) and (TazerOut = 6)
- {
- SendChat("/me повесил" Female " MP-5 на плечо.")
- }
- if not (TempWeapon = 31) and (TazerOut = 7)
- {
- SendChat("/me убрал" Female " карабин М4А1 за спину.")
- }
- if not (TempWeapon = 1) and (TazerOut = 9)
- {
- SendChat("/me снял" Female " кастет.")
- }
- if not (TempWeapon = 5) and (TazerOut = 10)
- {
- SendChat("/me спрятал" Female " биту.")
- }
- if not (TempWeapon = 14) and (TazerOut = 11)
- {
- SendChat("/do Цветы не в руках.")
- }
- if not (TempWeapon = 30) and (TazerOut = 12)
- {
- SendChat("/me убрал" Female " АК-47 за спину.")
- }
- if not (TempWeapon = 33) and (TazerOut = 13)
- {
- SendChat("/me убрал" Female " винтовку.")
- }
- if not (TempWeapon = 34) and (TazerOut = 14)
- {
- SendChat("/me свернул" Female " снайперскую винтовку в чехол.")
- }
- if not (TempWeapon = 43) and (TazerOut = 15)
- {
- SendChat("/me закрыл" Female " крышечкой объектив фотоаппарата.")
- }
- if not (TempWeapon = 46) and (TazerOut = 16)
- {
- SendChat("/me снял" Female " парашют.")
- }
- TazerOut:=0
- SetTimer UnloadGun, Off
- return
- 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement