Resource icon

CLEO Release -[RELEASE]-DeathInfo with extra informations!

CLEO related
Status
Not open for further replies.

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
Hi, this mod will tell you the killer name, id, weapon id, health, armour, ping upon dying and distance between you and the killer.

Activation/deactivation:

/df


Tested with:
SAMPFUNCS 5.1.1

Source code:
Code:
{$CLEO}
0000: NOP
repeat
wait 50
until 0AFA: is_samp_structures_available


   0B34: samp register_client_command "df" to_label @activate
   

:START
wait 0
if 
31@ == 1 
    then
     for 29@ = 0 to 1000    
                if 
                SAMP.IsPlayerConnected(29@)
                then
                    if 
                    0@ = SAMP.GetActorHandleByPlayerID(29@)
                    then                
                        if and
                        051A:   actor $PLAYER_ACTOR damaged_by_actor 0@
                        actor.Dead($PLAYER_ACTOR)
                        then
                        0467: clear_actor 0@ last_weapon_damage
                        054E: clear_actor $PLAYER_ACTOR damage 
                        0AB1: call_scm_func @GetInformation 2 of player handle 0@ $PLAYER_ACTOR 7@ Health 8@ Armour 9@ ping 10@ nickname 11@ playercolor 12@ weapon 13@ DistanceXYZ 14@ 
                        0AF8: samp add_message_to_chat "{FF0000}You have been killed by {BFBFBF}%s(%d) {FF0000}with weapon ID : %d from a distance of %f meters" color 12@ 11@ 7@ 13@ 14@
                        0AF8: samp add_message_to_chat "%s(%d)'s ping (%d), Health (%d), Armour (%d)" 12@ 11@ 7@ 10@ 8@ 9@ 
           
    end
        end
            end
                end
                    end 
                jump @START  
                    


:activate
0B12: 31@ = 31@ XOR 1
If 31@ == 1
then
0AF8: samp add_message_to_chat "{FF0000}Death info is now {BFBFBF}enabled!" -1
else
0AF8: samp add_message_to_chat "{FF0000}Death info is now disabled!" -1
end
samp.CmdRet


:GetInformation
Actor.StorePos(0@, 1@, 2@, 3@)
Actor.StoreDeadActorPos($PLAYER_ACTOR, 4@, 5@, 6@)
0B2B: samp 7@ = get_player_id_by_actor_handle 0@
0B25: samp 8@ = get_player_health 7@
0B26: samp 9@ = get_player_armor 7@
0B2A: samp 10@ = get_player_ping 7@
0B36: samp 11@ = get_player_nickname 7@
0B37: samp 12@ = get_player_color 1@
0470: 13@  = actor 0@ current_weapon
050A: 14@ = distance_between_XYZ 1@ 2@ 3@ and_XYZ 4@ 5@ 6@
0AB2: ret 8 7@ 8@ 9@ 10@ 11@ 12@ 13@ 14@ 15@

Download in attachments.
 

Attachments

  • DeathInfo.cs
    19.9 KB · Views: 592

Jarl

Active member
Joined
Dec 5, 2014
Messages
93
Reaction score
0
Thanks This is Very Good  :ppffh:

I Have a Request Can u Edit This for me ? You know When we Die That Write
You Killed By Weapon iD : 24 For Example I Want Do Someting That This celo Write Name Of Gun If That Possible  Like You Have Killed With Gun : Tec-9 Or Deagle ... Just Gun name !
And Sorry For My Type Im Not English  :trollface: ! So Thanks
 

P0wnerx

Member
Joined
Feb 20, 2013
Messages
21
Reaction score
0
It say that its enabled and all, but I get no message or anything when I get killed :/
 

bojicha

Member
Joined
Oct 19, 2014
Messages
14
Reaction score
0
Doesnt wori fine for me cuz for some reason i dont die....
Am i using this wrong?
:fuck_yea: :iknowwhatyoudid:
 

godofwarz36

Active member
Joined
Jan 30, 2015
Messages
88
Reaction score
1
Can you make it like it tells us when someone shoots you?? Like ShotByWhat.cs but it tells all the extra info that yours tell???
This cleo is nice!
 

Codex1337

Active member
Joined
Mar 1, 2014
Messages
170
Reaction score
1
P0wnerx link said:
It say that its enabled and all, but I get no message or anything when I get killed :/
bojicha link said:
Doesnt wori fine for me cuz for some reason i dont die....
Am i using this wrong?
:fuck_yea: :iknowwhatyoudid:
Download again
 

Higuys14

Active member
Joined
Jan 19, 2014
Messages
115
Reaction score
0
Is there any chance of getting it working without sampfunctions?
 

Fu$10N

Expert
Joined
Mar 5, 2014
Messages
1,101
Reaction score
9
I tried this cleo, and works well, except it makes my game to lag very hard. Hope you can fix it  :urtheman:
 
Status
Not open for further replies.
Top