SingleInstance force NoEnv IfWinActive GTA SA MP ListLines Off SetBatc

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#SingleInstance force
#NoEnv
#IfWinActive GTA:SA:MP
ListLines Off
SetBatchLines -1
SetKeyDelay 0
;~ =================================================================================================
;.ini
IniRead, countTrening, setting.ini, SETTING, countTrening, 0
;~ =================================================================================================
!vk4C::
:*:/rp+::
cmd_rp:
countTrening++
IniWrite, % countTrening, setting.ini, SETTING, countTrening
SendChat("/rp+ " param1 " " strrest(cmd, 2))
sleep 500
addChatMessageEx(FFFFFF, "{FFF500}[!] [AHK] К выполненым тренировкам прибавлена единица, сейчас выполнено = " countTrening)
SendInput, % countTrening
return
:*:/cleart::
IniWrite, 0 countTrening, setting.ini, SETTING, countTrening
return
!vkC0::
:*:/restart::
ShowGameText("~n~~n~~n~~n~~n~~n~~n~~y~wait minutku", 1500, 5)
Sleep 100
Reload
return
; # к функциям добавить
strrest(cmd, n)
{
str := ""
for k, v in cmd
if (k > n)
str := str "" v " "
return SubStr(str, 1, -1)
}