Hello, can someone make small changes to this cleo. Currently it is activated by using command /afish .
I want it to be with key F3.
Also all of the add_message_to_chat to be changed with the message on screen , that shows AFish ON and AFish OFF
Here is the code:
I want it to be with key F3.
Also all of the add_message_to_chat to be changed with the message on screen , that shows AFish ON and AFish OFF
Here is the code:
CLEO:
{$CLEO .cs}
0000: 'Author:'
REPEAT
WAIT 0
UNTIL 0AFA:
0B34: samp register_client_command "afish" to_label @CMD
WHILE TRUE
WAIT 0
IF 0256: player $PLAYER_CHAR defined
THEN
IF 31@ == TRUE
THEN
IF 30@ == FALSE
THEN
0C8F: samp process_chat_input "/fish"
30@ = TRUE
END
IF 30@ == TRUE
THEN
IF 32@ > 12500 // 12.5 sec
THEN
0C8F: samp process_chat_input "/putallback"
32@ = 0
30@ = FALSE
END
END
END
END
END
:CMD
IF 31@ == FALSE
THEN
31@ = TRUE
0AF8: samp add_message_to_chat "[Auto Fishing] - {20B61F}ENABLED{00FF00}" color -1
0AF8: samp add_message_to_chat "?? ??????? ?? ????? ????, ?? ?? ????? ?????? /afish" color -1
ELSE
31@ = FALSE
30@ = FALSE
0AF8: samp add_message_to_chat "[Auto Fishing] - {FD3737}OFF{FF0000}" color -1
END
0B43: samp cmd_ret