Quote:
Originally Posted by Emp`
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) != 1 || read_data(2) != 0)
return;
new szText[128];
static a;
formatex(szText, charsmax(szText), "Test: %d", a++)
message_begin(MSG_ONE_UNRELIABLE, g_msgStatusText, _, iPlayer)
write_byte(0)
write_string(szText)
message_end()
}