CLEO Help [CLEO] Help with CLEO commands. (/command)

CLEO related
Status
Not open for further replies.

TrollerYash

Active member
Joined
May 7, 2013
Messages
52
Reaction score
0
Hey, I've been trying to learn how to make  CLEO commands work, and I wanted to make a simple CLEO which would give me armour when I type "/.ra"

But my game crashes when I execute the command /.ra ingame, can anyone help me?

Here's the code:

Code:
{$CLEO}

0000:
Thread '99 ARMOR'
0B34: samp register_client_command ".ra" to_label @MAIN_SYSTEM 

:MAIN_SYSTEM
wait 0
    SAMP.IsCommandTyped(0@)
else_jump @MAIN_SYSTEM
035F: actor $PLAYER_ACTOR armour += 99
0AF8: samp add_message_to_chat "[>>] Armour refilled!" color 12566463
SAMP.CmdRet()
goto @MAIN_SYSTEM
 

0B36

Expert
Joined
Jan 6, 2014
Messages
1,324
Reaction score
8
Code:
{$CLEO}

thread "99armor"

repeat
wait 0
until SAMP.Available()

0B34: ".ra" @MAIN_SYSTEM 

while true
wait 0
end


:MAIN_SYSTEM
wait 0
035F: $PLAYER_ACTOR += 99
0AF8: "[>>] Armour refilled!" 12566463
SAMP.CmdRet()
 
Status
Not open for further replies.
Top