here is the part of the script that i want to change the activate/desactivate key to F11, when i change 0ADC: test_cheat "CARDL" to 0AB0: key_pressed 122
it works but it keeps flooding while i'm pressing F11 key, i have to quickly press a lot of times for it to activate or desactivate, i would like to press and i changes without flood.
1@ = 0
while true
wait 0
if 0ADC: test_cheat "CARDL"
then
if 1@ == 0
then
0ACD: show_text_highpriority "Car-HP On." time 1337
018C: play_sound 1083 at 0.0 0.0 0.0
1@ = 1
else
0ACD: show_text_highpriority "Car-HP Off." time 1337
018C: play_sound 1084 at 0.0 0.0 0.0
1@ = 0
0A92: create_custom_thread "Car-HP Indicator.cs"
end_thread
end
end
it works but it keeps flooding while i'm pressing F11 key, i have to quickly press a lot of times for it to activate or desactivate, i would like to press and i changes without flood.
1@ = 0
while true
wait 0
if 0ADC: test_cheat "CARDL"
then
if 1@ == 0
then
0ACD: show_text_highpriority "Car-HP On." time 1337
018C: play_sound 1083 at 0.0 0.0 0.0
1@ = 1
else
0ACD: show_text_highpriority "Car-HP Off." time 1337
018C: play_sound 1084 at 0.0 0.0 0.0
1@ = 0
0A92: create_custom_thread "Car-HP Indicator.cs"
end_thread
end
end