CLEO Help send message to server

CLEO related

50salasffcs

Member
Joined
Jan 4, 2023
Messages
22
Reaction score
0
I'm trying to create CLEO that when I type ''op'' it shows AutoBind ON and checks if I pressed number 2 key and I'm in a car sends command /rv to the server I made this code and it didn't work, I use SA-MP 0.3.7 R1

{$CLEO .cs}
{$USE bitwise}
0000:
WHILE TRUE
WAIT 0
IF 0ADC: test_cheat "OP"
THEN
0B12: 30@ = 30@ XOR 1
IF 0039: 30@ == 1
THEN 0AD1: show_formatted_text_highpriority "~w~AutoBind~n~~g~Enable" time 2000
ELSE 0AD1: show_formatted_text_highpriority "~w~AutoBind~n~~r~Disable" time 2000
END
END
END
IF 30@ == 1
THEN
:SEND_CMD
IF AND
0AB0: is_key_pressed 50
00DF: actor $PLAYER_ACTOR driving
THEN
0AC8: 0@ = allocate_memory_size 1024
0AD3: 0@ = format "/rv"
0AB1: @SEND_CMD 2 SampVersionID 1 Text 0@
END
END
0A93: terminate_this_custom_script
 
Top