Raised This Month: $ Target: $400
 0% 

Remove StatusText


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-11-2009 , 16:39   Re: Remove StatusText
Reply With Quote #7

Quote:
Originally Posted by shine771 View Post
@Connor - Doesn't work
I'm using this in client_prethink and it works as expected (both StatusValue and StatusText are BLOCK_SET):
PHP Code:
    static iPlayercrap
    get_user_aiming
(idiPlayercrap)
    if( 
Is_PlayeriPlayer ) )
    {
        static 
iOldPlayer
        iOldPlayer 
g_iTarget[id]

        if( !
iOldPlayer )
        {
            
message_begin(MSG_ONE_UNRELIABLEgmsgStatusValue_id)
            
write_byte(1)
            
write_short(2)
            
message_end()
        }

        if( 
iOldPlayer != iPlayer )
        {
            
g_iTarget[id] = iPlayer
            message_begin
(MSG_ONE_UNRELIABLEgmsgStatusValue_id)
            
write_byte(2)
            
write_short(iPlayer)
            
message_end()
        }

        if( !
iOldPlayer )
        {
            static const 
szStatusText[] = "1 %p2"
            
message_begin(MSG_ONE_UNRELIABLEgmsgStatusText_id)
            
write_byte(0)
            
write_string(szStatusText)
            
message_end()
        }
    }
    else
    {
        if( 
g_iTarget[id] )
        {
            
g_iResetStatusText[id] = 100
            g_iTarget
[id] = 0
            
        
}
        else if( --
g_iResetStatusText[id] == )
        {
            
message_begin(MSG_ONE_UNRELIABLEgmsgStatusValue_id)
            
write_byte(1)
            
write_short(0)
            
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 01:28.


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