CLEO Help HELP

CLEO related
Status
Not open for further replies.

Dzey

Active member
Joined
Feb 1, 2018
Messages
30
Reaction score
1
How to make when you have 60hp or less write command ?
 

noob213

Active member
Joined
Sep 15, 2017
Messages
88
Reaction score
6
PHP:
{$CLEO .cs}
0000: NOP

while true
wait 0
if 
player.Defined($PLAYER_CHAR)
then
0226: 0@ = actor $PLAYER_ACTOR health
if
0@ <= 60
then
0AC6: 1@ = label @label offset
0AB1: call_scm_func @SAY 1 1@
end
end
end

:SAY
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x65C60 // sendcmd 0.3.7 R1
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0

:Label
hex
"/healtme" 0
end
 
Status
Not open for further replies.
Top