Half-Life Icon HL Script

[AMXX][HL] LongJump Icon

Hey, you! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending Rj. points.
  • Post: Give Rj. your thoughts on this Script.
  • Vote: Help Rj. win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Sign up

Already a Bananite? Login

35 lines | 869 bytes | Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#include <amxmodx>
#include <fakemeta_util>

new statusicon

public plugin_init(){
        register_plugin("LongJump Icon","0.2","[LF] | SerFreeman")
       
        statusicon = get_user_msgid("StatusIcon")
        if (!statusicon)
                statusicon = engfunc(EngFunc_RegUserMsg,"StatusIcon",-1)
        register_event("ItemPickup","showicon","b","1&item_longjump")
        register_event("DeathMsg","hideicon","a")
}

public showicon(id){
        engfunc(EngFunc_MessageBegin,MSG_ONE_UNRELIABLE,statusicon,{0.0, 0.0, 0.0},id)
        write_byte(1)
        write_string("item_longjump")
        write_byte(255)
        write_byte(127)
        write_byte(0)
        message_end()
}

public hideicon(){
        new id = read_data(2)
       
        if(is_user_connected(id)&&fm_get_user_longjump(id)){
                engfunc(EngFunc_MessageBegin,MSG_ONE_UNRELIABLE,statusicon,{0.0, 0.0, 0.0},id)
                write_byte(0)
                write_string("item_longjump")
                message_end()
        }
}

Posts

None found

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Original Authors
GordonFreeman (RU) "[LF] | SerFreeman"
AMXX Script/Codes

Submitter

Rj. avatar
Rj. avatar Dreamin'
Member Joined 10mo
655 points Ranked 6621st
35 medals 4 legendary 9 rare
  • Submitted 15 Tools Medal icon
  • Submitted 50 Gamefiles Medal icon
  • 15+ Entries! GameBanana’s Christmas Giveaway 2016 Medal icon
  • Thanked 500 submitters Medal icon
  • 2nd Place - Game Poetry Contest Medal icon
  • Submitted 5 Tools Medal icon

Rj. avatar
Rj.

Redistributor
Are you the owner? Request Ownership
Send a Private Message to the submitter

Category

Attributes

Language
Pawn (AMXMODX)

Stats

Posts
0
Views
34
Date Added
4d
Date Modified
4d