undiscovered
Active member
- Joined
- May 3, 2013
- Messages
- 76
- Reaction score
- 0
I'm working on a CLEO that prompts who ever gives damage to me, I have a problem. How can I get the actor's ID ? What I need to do is that it will message me, who ever gives me damage and the weapon used.
Code:
{$CLEO .cs}
thread 'Wittzi'
:LOAD
wait 0
if
8AF7: get_samp_base_to 0@
then
0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available
:Wittzi_01
wait 0
if and
0256: player $PLAYER_CHAR defined
0B23: samp is_player_connected $PLAYER_ACTOR
else_jump @Wittzi_01
if
051A: actor $PLAYER_ACTOR damaged_by_actor 0@
else_jump @Wittzi_01
0B2B: samp 2@ = get_player_id_by_actor_handle 0@
0B36: samp 1@ = get_player_nickname 2@
0470: 3@ = actor 0@ current_weapon
0AF8: samp add_message_to_chat "Damaged by : %s with weapon %s" 1@ 3@ color 0xFF61BB
054E: clear_actor $PLAYER_ACTOR damage
wait 500
jump @Wittzi_02
:Wittzi_02
wait 0
if
051A: actor $PLAYER_ACTOR damaged_by_actor 0@
else_jump @Wittzi_01
jump @Wittzi_01