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:
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