Raised This Month: $ Target: $400
 0% 

add sprite in hud


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-18-2009 , 10:56   add sprite in hud
Reply With Quote #1

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.
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-18-2009 , 11:59   Re: add sprite in hud
Reply With Quote #2

I don't think it's possible since it's something client-side only.
Arkshine is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-18-2009 , 12:19   Re: add sprite in hud
Reply With Quote #3

you can use StatusIcon
__________________
xPaw is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-18-2009 , 12:30   Re: add sprite in hud
Reply With Quote #4

He wants to "add".
Arkshine is offline
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-18-2009 , 12:38   Re: add sprite in hud
Reply With Quote #5

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.?!
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 03-18-2009 , 12:45   Re: add sprite in hud
Reply With Quote #6

search for StatusIcon, with it you can do fire etc ;/
__________________
xPaw is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-18-2009 , 13:08   Re: add sprite in hud
Reply With Quote #8

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()
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
One
Veteran Member
Join Date: Oct 2008
Location: Hardstyle-eSports.de
Old 03-18-2009 , 13:15   Re: add sprite in hud
Reply With Quote #9

Quote:
Originally Posted by Emp` View Post
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?
__________________
One is offline
Send a message via ICQ to One Send a message via AIM to One Send a message via MSN to One Send a message via Yahoo to One Send a message via Skype™ to One
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 03-18-2009 , 13:18   Re: add sprite in hud
Reply With Quote #10

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...
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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