#SingleInstance force
#Persistent
#IfWinActive GTA:SA:MP
#include samp.ahk
SetTimer, update, 500
global last_weap := 0
global last_name := ""
F2::
Reload
return
update:
if(getPlayerWeaponId() = 0){
if not(last_weap = 0)
SendChat("спрятал " last_name)
last_weap := 0
return
}
if(getPlayerWeaponId() = last_weap)
return
last_weap := GetPlayerWeaponId()
last_name := getPlayerWeaponName()
SendChat("достал...