
02.08.2020, 23:50
|
|
Постоянный
Регистрация: 24.07.2017
Сообщений: 867
С нами:
4633764
Репутация:
148
|
|
Сообщение от Const
1.
C++:
Код:
__int32
getCurrentWeapon
(
)
{
return
*
reinterpret_cast
(
0x00BAA410
)
;
}
2. самый простой вариант, на скорую руку:
C++:
Код:
#include
#include
uint32_t
cheat_key
=
0
;
void
new_key
(
uint32_t
&
cheat_key
)
{
std
::
vector
virtual_keys
=
{
VK_INSERT
,
VK_DELETE
,
VK_HOME
,
// добавляешь сюда все айдишники клавиш, из которых будет осуществляться выбор
}
;
while
(
true
)
{
for
(
auto
key
:
virtual_keys
)
{
if
(
GetAsyncKeyState
(
key
)
)
{
cheat_key
=
key
;
return
;
}
}
}
}
std
::
thread
thr
(
[
&
]
(
)
{
new_key
(
cheat_key
)
;
}
)
;
thr
.
detach
(
)
;
C++:
[CODE]
bool
KeyButton
(
uint16_t
&
key
,
char
cSpliter
)
{
char
szKey
[
32
]
;
if
(
key
!=
0
)
{
GetKeyNameTextA
(
(
MapVirtualKeyA
(
key
,
MAPVK_VK_TO_VSC
)
|
|
|