Raised This Month: $ Target: $400
 0% 

StatusValue player is not looks at players.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fl0werD
Senior Member
Join Date: May 2011
Old 01-22-2013 , 14:24   Re: StatusValue player is not looks at players.
Reply With Quote #3

Quote:
Originally Posted by Emp` View Post
When the first data (read_data(1) == 1) is sent with the value of 0 (read_data(2) == 0), then the player is not looking at a player/hostage.

Code:
register_event( "StatusValue", "EventHideStatus", "be", "1=1", "2=0" );
Yes, but call StatusValue every seconds.

PHP Code:
public EventStatsValue(iPlayer)
{
    if(
read_data(1) != || read_data(2) != 0)
        return;

    new 
szText[128];
    static 
a;

    
formatex(szTextcharsmax(szText), "Test: %d"a++)

    
message_begin(MSG_ONE_UNRELIABLEg_msgStatusText_iPlayer)
    
write_byte(0)
    
write_string(szText)
    
message_end()

fl0werD is offline
Send a message via ICQ to fl0werD
 



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 20:31.


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