{$CLEO .cs}
{$USE bitwise}
0000:
WHILE TRUE
WAIT 0
IF 0ADC: test_cheat "BIND"
THEN
0B12: 30@ = 30@ XOR 1
IF 0039: 30@ == 1
THEN 0AD1: show_formatted_text_highpriority "~w~Keybinder~n~~g~Enable" time 1337
ELSE 0AD1: show_formatted_text_highpriority "~w~Keybinder~n~~r~Disable" time 137
END
END
IF 30@ == 1
THEN
IF 0AB0: is_key_pressed 97 // Numpad 1
THEN
0AC8: 0@ = allocate_memory_size 260
0AD3: 0@ = format "Hello"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 0@
WAIT 500
END
IF 0AB0: is_key_pressed 98 // Numpad 2
THEN
0AC8: 1@ = allocate_memory_size 260
0AD3: 1@ = format "/hello"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 1@
WAIT 500
END
IF 0AB0: is_key_pressed 99 // Numpad 3
THEN
0AC8: 2@ = allocate_memory_size 260
0AD3: 2@ = format "/pm 0 Hello"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 2@
WAIT 500
END
END
END
0A93: terminate_this_custom_script
{$CLEO .cs}
{$USE bitwise}
0000:
WHILE TRUE
WAIT 0
IF 0ADC: test_cheat "BIND"
THEN
0B12: 30@ = 30@ XOR 1
IF 0039: 30@ == 1
THEN 0AD1: show_formatted_text_highpriority "~w~Keybinder~n~~g~Enable" time 1337
ELSE 0AD1: show_formatted_text_highpriority "~w~Keybinder~n~~r~Disable" time 137
END
END
IF 30@ == 1
THEN
IF 0AB0: is_key_pressed 102 // Numpad 6
THEN
0@ = 350 // Miliseconds
0AC8: 1@ = allocate_memory_size 260
0AD3: 1@ = format "/buy"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 1@
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x0D // VK_RETURN
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x0D // VK_RETURN
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x1B // VK_ESCAPE
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x1B // VK_ESCAPE
WAIT 1337
END
IF 0AB0: is_key_pressed 104 // Numpad 8
THEN
2@ = 100 // Miliseconds
0AC8: 3@ = allocate_memory_size 260
0AD3: 3@ = format "/heal"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 3@
WAIT 2@
0AC8: 4@ = allocate_memory_size 260
0AD3: 4@ = format "/togpm"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 4@
WAIT 2@
0AC8: 5@ = allocate_memory_size 260
0AD3: 5@ = format "/togstatelot"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 5@
WAIT 2@
0AC8: 6@ = allocate_memory_size 260
0AD3: 6@ = format "/car spawn"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 6@
WAIT 2@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x0D // VK_RETURN
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x0D // VK_RETURN
WAIT 2@
0AC8: 7@ = allocate_memory_size 260
0AD3: 7@ = format "/"
0AB1: @SEND_CMD 2 SampVersionID 5 Text 7@
WAIT 1337
END
END
END
0A93: terminate_this_custom_script
well, i need install something else for make it work?hm, the key press not working
IF 0AB0: is_key_pressed 102 // Numpad 6
THEN
0@ = 350 // Miliseconds
0AC8: 1@ = allocate_memory_size 260
0AD3: 1@ = format "/ustawienia"
0AB1: @SEND_CMD 2 SampVersionID 3 Text 1@ // 3, because my SA:MP Version is 0.3.DL
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x28 // VK_DOWN
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x26 // VK_UP
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x26 // VK_UP
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x26 // VK_UP
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x26 // VK_UP
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x26 // VK_UP
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x26 // VK_UP
WAIT 0@
0AB1: @SEND_FAKE_KEYPRESS 1 KeyOffSet 0x1B // VK_ESCAPE
0AB1: @STOP_SEND_FAKE_KEYPRESS 1 KeyOffSet 0x1B // VK_ESCAPE
WAIT 1337
END
#SingleInstance Force
#NoEnv
#Include SAMP.ahk
#IfWinActive GTA:SA:MP
SendMode Input
SetWorkingDir %A_ScriptDir%
Numpad8::
{
WAIT := 100
SendChat("/heal")
SLEEP %WAIT%
SendChat("/togpm")
SLEEP %WAIT%
SendChat("/togstatelot")
SLEEP %WAIT%
}
return