Resource icon

CLEO Release DmgBeep.cs

CLEO related
Status
Not open for further replies.

PopandaulX

Active member
Joined
Jul 15, 2013
Messages
189
Reaction score
1
I've made this simple DamageBeep which you can develop to make things like Damage Informer (useless, there's already one) or other things. It's open source, but the standard buttons are (Right)Shift + 1.

Code:
{$CLEO .cs}
0000: NOP
0662: "PopandauL"
thread 'DmgBeep'

if
    8AF7: get_samp_base_to 33@
then
    0A93: end_custom_thread
end
repeat
    wait 400
until 0AFA: is_samp_structures_available

wait 0
31@ = 1 //On/Off on login
32@ = 0
33@ = 0
040D: unload_wav 1
03CF: load_wav 17802 as 1

while true
wait 0
//Toggle System
    if and 
    0AB0: 49 //1
    0AB0: 161 //Right Shift
    32@ >= 500
    then
        if 31@ == 0
        then
        31@ = 1
        else
        31@ = 0
        end
    018C: play_sound 1052 at 0.0 0.0 0.0
    32@ = 0
    end
//DamageBeep System
    if and
    31@ == 1
    0AD2: 0@ = player $PLAYER_CHAR targeted_actor 
    then
        if 0B2B: samp 1@ = get_player_id_by_actor_handle 0@
        then
        0B25: samp 2@ = get_player_health 1@
        0B26: samp 3@ = get_player_armor 1@
        005A: 2@ += 3@
            repeat 
            wait 0   
            0B25: samp 4@ = get_player_health 1@
            0B26: samp 5@ = get_player_armor 1@
            005A: 4@ += 5@
                if 0AB0: 1
                then
                33@ = 0
                end
                if and
                001D: 2@ > 4@
                001B: 125 > 33@
                then     
                0085: 2@ = 4@
                03D1: play_wav 1 
                end
            until 8AD2: 0@ = player $PLAYER_CHAR targeted_actor
        end 
    end
end
 

Attachments

  • DmgBeep.cs
    18.9 KB · Views: 1,766

PopandaulX

Active member
Joined
Jul 15, 2013
Messages
189
Reaction score
1
mhm...it should...as time as the green triangle appears above the one you're shooting to and his HP is decreasing...
 
Status
Not open for further replies.
Top