CLEO Help dead action command

CLEO related
Status
Not open for further replies.

daniel003

New member
Joined
Sep 9, 2020
Messages
1
Reaction score
0
Location
romania
hello, im new with scripting mods so can someone do a cleo mod that when i die the mod action a command like i die and it do /wave or something.
thank you and sorry for bad eng.


this what i tried


{$CLEO .cs}

0000:

REPEAT
WAIT 0
UNTIL 0AFA:

WHILE TRUE
WAIT 0

IF AND
if
0118: actor $PLAYER_ACTOR dead
8B21: samp is_chat_opened
THEN
0AF9: samp say_msg "/mp3"
free 0@
repeat
wait 0
until 8118: actor $PLAYER_ACTOR dead
END
 

ajom

Well-known member
Joined
Apr 14, 2020
Messages
389
Solutions
2
Reaction score
268
Location
Pluto
hello, im new with scripting mods so can someone do a cleo mod that when i die the mod action a command like i die and it do /wave or something.
thank you and sorry for bad eng.

Here you go:
Code:
{$CLEO .cs}
0000: // chat on death by ajom

REPEAT
    WAIT 0
UNTIL 0AFA: is_samp_available

WHILE TRUE
    WAIT 0
    0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
    0B25: samp 0@ = get_player_health 0@
    if 0@ == 0 // if you're dead(0 hp)
    then
        say "/wave"

        repeat
            wait 0
            0B2B: samp 0@ = get_player_id_by_actor_handle $PLAYER_ACTOR
            0B25: samp 0@ = get_player_health 0@
        until 0@ > 0 // until you have hp
    end
END
 
Status
Not open for further replies.
Top