CLEO Help cleo, check for text command

CLEO related
Status
Not open for further replies.

Wut

Well-known member
Joined
Mar 1, 2013
Messages
338
Reaction score
1
How can I check the text i write in the chat?
For example i got my code

{$VERSION 3.1.0027}
{$CLEO .cs}
thread 'Suicide'
:Respawn_01
wait 0
if
0AB0: key_pressed 123
else_jump @Respawn_01
0223: set_actor $PLAYER_ACTOR health_to 0
jump @Respawn_01


And i want to replace the key_pressed line with one that checks for the command /respawn..

How can I do that?
 
Joined
Feb 18, 2005
Messages
2,965
Reaction score
271
0B34: samp register_client_command "mycommand" to_label @mycommand
and
SAMP.IsCommandTyped

You can see sampfuncs new opcodes in your sanny builder folder/data/sa/opcode.txt and sascm.ini
 
Status
Not open for further replies.
Top