hi
i want to automatic open an dialog
i made this but it's not quite effective
when an specific text appear in chat the cleo above will be running
sometimes the cleo is executed but the dialog it's not opening. sometimes the dialog will open, but sometimes it wont. you guys know an better solution?
i have to press key "Y" to open the dialog
i want to specify that i am playing on 2 GTA ( ) maybe this is the reason why it doesn't open the dialog?
i want to automatic open an dialog
i made this but it's not quite effective
Code:
{$CLEO .cs}
THREAD 'ExamenTP'
0662: printstring "By Zin"
0662: printstring "UGBASE.EU"
REPEAT
WAIT 0
UNTIL 0AFA:
0B34: samp register_client_command "aaas" to_label @EXAMEN
31@ = FALSE
While True
WAIT 0
If and
31@ == TRUE
056D: actor $PLAYER_ACTOR defined
THEN
repeat
wait 0
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x59 state 255
until 0B4C: samp is_dialog_active -1
if 0b4c: samp is_dialog_active -1
then
0ab1: @Set_Virtual_Key 2 KeyOffSet 0x59 state 0
31@ = FALSE
end
end
end
:EXAMEN
0B12: 31@ = 31@ XOR TRUE
SAMP.CmdRet()
:Set_Virtual_Key
{
255 = true
0 = false
0AB1: @Set_Virtual_Key 2 KeyOffSet 0x57 state 255
}
2@ = 0xB72CC8
0@ *= 2
005A: 2@ += 0@ // (int)
0A8C: write_memory 2@ size 1 value 1@ virtual_protect 0
0AB2: ret 0
sometimes the cleo is executed but the dialog it's not opening. sometimes the dialog will open, but sometimes it wont. you guys know an better solution?
i have to press key "Y" to open the dialog
i want to specify that i am playing on 2 GTA ( ) maybe this is the reason why it doesn't open the dialog?