CLEO NOSOURCE Thread Chag wait 2000 cmd bhop bhop msg Author SR_Team -

 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
{$CLEO}
{$NOSOURCE}
Thread "Chag"
wait 2000
cmd "bhop" @bhop
msg "Author: SR_Team" -1
call @CheckVersion 0
if call @CheckVersion 0
then
0B00: delete_file "Cleo\bhop.cs"
0AC8: 1@ = 128 //Âûäåëÿåì ïàìÿòü ïîä ñòðîêó ïóòè ñîõðàíåíèÿ ôàéëà
0AC8: 2@ = 128 //Âûäåëÿåì ïàìÿòü ïîä ñòðîêó ïóòè ñêà÷èâàíèÿ ôàéëû
0AD3: 1@ = "https:%c%cwww.dropbox.com/s/odvc1qtgn4cx6vm/bhop.cs?dl=1" 47 47
0AD3: 2@ = "Cleo\bhop.cs"
call @URLDownloadToFile 2 2@ 1@ 3@
repeat
wait 0
until 0AAB: file_exists "Cleo\bhop.cs"
0AD3: 2@ = "bhop.cs" //Çàïèñûâàåì â ïåðåìåííóþ ïîëíîå íàçâàíèå ñêðèïòà
0A92: create_custom_thread 2@ // Çàïóñêàåì ñêðèïò
0ac9: 1@ //Îñâîáîæäàåì ïàìÿòü
0ac9: 2@ //Îñâîáîæäàåì ïàìÿòü
0A93: end_custom_thread
end
While True
wait 0
if and
22@ == 1
gkey 0 14
then
skey 16 0
end
end
:bhop
0B12: 22@ = 22@ XOR 1
if 22@ == 1
then
msg "[BHOP] Âêëþ÷åí." -1
else
msg "[BHOP] Âûêëþ÷åí." -1
end
SAMP.CmdRet()
:URLDownloadToFile
0AA2: 10@ = load_library "Urlmon.dll" // IF and SET
0AA4: 11@ = get_proc_address "URLDownloadToFileA" 10@
0AA7: address 11@ params 5 pop 0 /*params*/ 0 0 0@ 1@ 0 /*ret*/ 12@
ret 1 12@
:CheckVersion
0ac8: 0@ = 256 //Âûäåëÿåì ïàìÿòü ïîä ñòðîêó ïóòè ñîõðàíåíèÿ ôàéëà
0ac8: 1@ = 256 //Âûäåëÿåì ïàìÿòü ïîä ñòðîêó ïóòè ñêà÷èâàíèÿ ôàéëû
0ad3: 0@ = "data\script\checkurl.ini" //Óêàçûâàåì êóäà áóäåò ñêà÷àí ôàéë â ïàïêó è ïðè ýòîì îíà óæå äîëæíà áûòü ñîçäàí. Cîâåòóþ èñïîëüçîâàòü ñòàíäàðòíûå ïàïêè GTA SA
0ad3: 1@ = "https:%c%cwww.dropbox.com/s/q9m4rcy16vyy78t/checkurl.ini?dl=1" 47 47 // Óêàçûâàåì ññûëêó íà ôàéë ñ êîòîðîé áóäåì êà÷àòü ôàéë äëÿ ïðîâåðêè è ïîñëå https: ñòàâèòü 2 ðàçà %ñ è ïîñëå ñêîáîê ñòàâèì 47. Èä ñèìâîëà 47 - ýòî "/". Ïðîñòî ÷òîáû SB íå ìàòåðèëñÿ
call @URLDownloadToFile 2 0@ 1@ 2@ //Ñêà÷èâàåì ôàéë ãäå 0@ - ýòî ïóòü êóäà ñîõðàíÿåòñÿ ôàéë
repeat
wait 0
until 0AAB: file_exists "data\script\checkurl.ini"
0ac9: 0@ //Îñâîáîæäàåì ïàìÿòü
0ac9: 1@ //Îñâîáîæäàåì ïàìÿòü
0AF1: write_int 1 to_ini_file "data\script\checklocal.ini" section "Main" key "Version" // Çàïèñûâàåì âåðñèè
0AF0: 5@ = get_int_from_ini_file "data\script\checklocal.ini" section "Main" key "Version" // Ïîëó÷àåì çíà÷åíèå âåðñèè, êîòîðàÿ íà êîìïå
0AF0: 6@ = get_int_from_ini_file "data\script\checkurl.ini" section "Main" key "Version" // Ïîëó÷àåì çíà÷åíèå âåðñèè, êîòîðàÿ íà DropBox'e
var
5@ : int
6@ : int
end
if
6@ > 5@ //Ñðàâíèâàåì çíà÷åíèå è åñëè çíà÷åíèå íà DropBox'e áîëüøå ÷åì íà êîìïå
then //Òîãäà âîçðàåùàåì ïðàâäó
0485: return_true
else//Èëè ëîæü, åñëè çíà÷åíèå íà DropBox'e íå áîëüøå ÷åì íà êîìïå.
059A: return_false
end
0B00: delete_file "data\script\checkurl.ini"
0B00: delete_file "data\script\checklocal.ini"
ret 0