Raised This Month: $ Target: $400
 0% 

[TUT] User Icon Status


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #27

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
 



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