Detecting ESC Key while Selecting Textdraws
#11

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
It's still correct, both global and per-player textdraws call OnPlayerClickTextDraw for the ESC detection.

pawn Код:
public OnPlayerClickTextDraw( playerid, Text: clickedid )
{
    if( clickedid == Text: INVALID_TEXT_DRAW )
    {
        PlayerTextDrawHide( playerid, ... );
        // code..
        return 1;
    }
    return 0;
}

public OnPlayerClickPlayerTextDraw( playerid, PlayerText: playertextid )
{
    if( playertextid == ... )
    {
        // code..
        CancelSelectTextDraw( playerid );
    }
    return 0;
}
So how do I get it working. Can you please give me an example script. From what I understood from you, I'll have to use OnPlayerClickTextdraw under OnPlayerclickplayertextdraw in order to get it working?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)