AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   add sprite in hud (https://forums.alliedmods.net/showthread.php?t=87935)

One 03-18-2009 10:56

add sprite in hud
 
Hi,

is this possible? i want to add 3 sprites in hud under the bomb or buyzone sprite.

i wann it for ma rallymod so that there willbe displayes for 2sec. a red cycle & after this a new red sprite for each time & after this a green.

Arkshine 03-18-2009 11:59

Re: add sprite in hud
 
I don't think it's possible since it's something client-side only.

xPaw 03-18-2009 12:19

Re: add sprite in hud
 
you can use StatusIcon

Arkshine 03-18-2009 12:30

Re: add sprite in hud
 
He wants to "add".

One 03-18-2009 12:38

Re: add sprite in hud
 
anything like infect on ZP or whatever... or anything like when ur on fire.. :-(

i think its imposs. so then i ask u for anyideas.?!

xPaw 03-18-2009 12:45

Re: add sprite in hud
 
search for StatusIcon, with it you can do fire etc ;/

One 03-18-2009 12:58

Re: add sprite in hud
 
DAmn this is all


[IMG]http://img95.**************/img95/5918/dmgradmh4.jpg[/IMG]

[IMG]http://img178.**************/img178/4803/dmgheatnd4.jpg[/IMG]

[IMG]http://img72.**************/img72/3686/dmggaser1.jpg[/IMG]


[IMG]http://img72.**************/img72/6564/dmgdrownps5.jpg[/IMG]


[IMG]http://img291.**************/img291/7311/dmgcolddw9.jpg[/IMG]


[IMG]http://img246.**************/img246/9513/dmgbiokb4.jpg[/IMG]


[IMG]http://img50.**************/img50/8814/dmgshocksh9.jpg[/IMG]



[IMG]http://img59.**************/img59/5223/itemlongjumpyr6.jpg[/IMG]



[IMG]http://img62.**************/img62/5586/itembatteryok3.jpg[/IMG]

:cry: its poss to make colored screen? like in hns but so that the colors changes ?

Emp` 03-18-2009 13:08

Re: add sprite in hud
 
Code:

        message_begin( MSG_ONE_UNRELIABLE, get_user_msgid("StatusIcon"), {0,0,0}, id )
        write_byte( 1 ) // status
        write_string( "hostage1" ) // sprite name
        write_byte( r ) // red
        write_byte( g ) // green
        write_byte( b ) // blue
        message_end()


One 03-18-2009 13:15

Re: add sprite in hud
 
Quote:

Originally Posted by Emp` (Post 783725)
Code:

    message_begin( MSG_ONE_UNRELIABLE, get_user_msgid("StatusIcon"), {0,0,0}, id )
    write_byte( 1 ) // status
    write_string( "hostage1" ) // sprite name
    write_byte( r ) // red
    write_byte( g ) // green
    write_byte( b ) // blue
    message_end()


ty but where can i give this time? & how to go next colord?

Emp` 03-18-2009 13:18

Re: add sprite in hud
 
I believe you set status to 1 to show, and set it to 0 to remove. Also I think 2 was blink, but I could be wrong.

The r,g,b values are... well... RGB values...


All times are GMT -4. The time now is 08:53.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.