Raised This Month: $ Target: $400
 0% 

[TUT] User Icon Status


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-11-2010 , 15:17   Re: [TUT] User Icon Status
Reply With Quote #28

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
 



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