Keys & Selecting textdraws
#5

Quote:
Originally Posted by MP2
View Post
Hide them when they press ESC (INVALID_TEXT_DRAW passed to OnPlayerClick(Player)TextDraw).
So..

pawn Code:
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)
{
if( playertextid == INVALID_TEXT_DRAW )
{
//they hit esc
}
return true;
}
? Good to know!

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;
}
Reply


Messages In This Thread
Keys & Selecting textdraws - by 2KY - 30.04.2012, 20:57
Re: Keys & Selecting textdraws - by Psymetrix - 30.04.2012, 21:22
Re: Keys & Selecting textdraws - by 2KY - 30.04.2012, 21:34
Re: Keys & Selecting textdraws - by MP2 - 30.04.2012, 21:55
Re: Keys & Selecting textdraws - by 2KY - 30.04.2012, 22:12
Re: Keys & Selecting textdraws - by CyNiC - 01.05.2012, 02:22

Forum Jump:


Users browsing this thread: 1 Guest(s)