30.04.2012, 22:12
Quote:
Hide them when they press ESC (INVALID_TEXT_DRAW passed to OnPlayerClick(Player)TextDraw).
|
pawn Code:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if( playertextid == INVALID_TEXT_DRAW )
{
//they hit esc
}
return true;
}
EDIT:
Odd, this doesn't seem to work..
pawn Code:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if( _:playertextid == INVALID_TEXT_DRAW )
{
// They hit ESC!
HidePlayerDashboard ( playerid );
accViewing [ playerid ] = 0;
}
return true;
}