Raised This Month: $ Target: $400
 0% 

[TUT] User Icon Status


Post New Thread Reply   
 
Thread Tools Display Modes
rrduna
Member
Join Date: Nov 2010
Location: Brazil
Old 11-26-2010 , 19:32   Re: [TUT] User Icon Status
Reply With Quote #61

nice.
rrduna is offline
Jacob
Senior Member
Join Date: Oct 2010
Old 11-28-2010 , 01:38   Re: [TUT] User Icon Status
Reply With Quote #62

eventually,i found it.
Jacob is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-11-2010 , 11:05   Re: [TUT] User Icon Status
Reply With Quote #63

Can someone tell me what the name of the sprite from wc3ft ability of nightelf is?
bibu is offline
Vechta
Veteran Member
Join Date: Jun 2010
Old 12-11-2010 , 11:40   Re: [TUT] User Icon Status
Reply With Quote #64

How it looks?

Btw. for all here is a stock for Icons.
PHP Code:
 stock icon_status(indexstatus, const icon[], redgreenblue)
{
    
message_begin(MSG_ONEiconstatus, {0,0,0}, index);
    
write_byte(status); // status (0=hide, 1=show, 2=flash)
    
write_string(icon); // sprite name
    
write_byte(red); // red
    
write_byte(green); // green
    
write_byte(blue); // blue
    
message_end();

How to use?
PHP Code:
 icon_status(id2"dmg_shock"255255255
Vechta is offline
abdul-rehman
Veteran Member
Join Date: Jan 2010
Location: Khi, Pakistan
Old 12-11-2010 , 12:27   Re: [TUT] User Icon Status
Reply With Quote #65

Code:
stock icon_status(index, status, const icon[], red, green, blue) {     message_begin(MSG_ONE, iconstatus, {0,0,0}, index);     write_byte(status); // status (0=hide, 1=show, 2=flash)     write_string(icon); // sprite name     write_byte(red); // red     write_byte(green); // green     write_byte(blue); // blue     message_end(); }
--->
Code:
stock icon_status(index, status, const icon[], red, green, blue) {     message_begin(MSG_ONE_UNRELIABLE, iconstatus, {0,0,0}, index);     write_byte(status); // status (0=hide, 1=show, 2=flash)     write_string(icon); // sprite name     write_byte(red); // red     write_byte(green); // green     write_byte(blue); // blue     message_end(); }
You should use MSG_ONE_UNRELIABLE for such things since MSG_ONE can easily crash a server if the message is not sent
__________________

My Plugins For ZP

Inactive due to College and Studies
abdul-rehman is offline
Send a message via Yahoo to abdul-rehman Send a message via Skype™ to abdul-rehman
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-11-2010 , 15:17   Re: [TUT] User Icon Status
Reply With Quote #66

As a stock :
PHP Code:
stock Send_StatusIcon(idiStatusszIcon[], iRediGreeniBluebool:bReliable=false
{
    static 
iStatusIcon
    
    message_begin
(bReliable MSG_ONE MSG_ONE_UNRELIABLEiStatusIcon || (iStatusIcon get_user_msgid("StatusIcon")), .player=id);
    {
        
write_byteclamp(iStatus02) ); // status (0=hide, 1=show, 2=flash) 
        
write_stringszIcon ); // sprite name 
        
write_byteclamp(iRed0255) ); // red 
        
write_byteclamp(iGreen0255) ); // green 
        
write_byteclamp(iBlue0255) ); // blue 
    
}
    
message_end(); 


In a plugin :
PHP Code:
new g_iStatusIcon

public plugin_init()
{
    
g_iStatusIcon get_user_msgid("StatusIcon")
}

Send_StatusIcon(idiStatusszIcon[], iRediGreeniBluebool:bReliable=false
{
    
message_begin(bReliable MSG_ONE MSG_ONE_UNRELIABLEg_iStatusIcon, .player=id);
    {
        
write_byteclamp(iStatus02) ); // status (0=hide, 1=show, 2=flash) 
        
write_stringszIcon ); // sprite name 
        
write_byteclamp(iRed0255) ); // red 
        
write_byteclamp(iGreen0255) ); // green 
        
write_byteclamp(iBlue0255) ); // blue 
    
}
    
message_end(); 

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-11-2010 , 15:32   Re: [TUT] User Icon Status
Reply With Quote #67

Quote:
Originally Posted by bibu View Post
Can someone tell me what the name of the sprite from wc3ft ability of nightelf is?
bibu is offline
Howdy!
Senior Member
Join Date: Feb 2007
Old 12-11-2010 , 16:53   Re: [TUT] User Icon Status
Reply With Quote #68

Quote:
Originally Posted by bibu View Post
Can someone tell me what the name of the sprite from wc3ft ability of nightelf is?
Why don't you find out yourself?
__________________
[IMG]http://img221.**************/img221/5608/howdyfinnishhq2.jpg[/IMG]
Howdy! is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 12-12-2010 , 06:43   Re: [TUT] User Icon Status
Reply With Quote #69

Quote:
Originally Posted by Howdy! View Post
Why don't you find out yourself?
How should I find it myself if I am asking it here, if I would find and get what I need, I wouldn't ask here.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-12-2010 , 07:34   Re: [TUT] User Icon Status
Reply With Quote #70

Quote:
Originally Posted by bibu View Post
Can someone tell me what the name of the sprite from wc3ft ability of nightelf is?
Quote:
Originally Posted by Vechta View Post
How it looks?

Either answer that question, either go yourself look into the thousands lines wc3 source code, that's fair.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Reply



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 10:43.


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