OnPlayerClickTextDraw
#10

You need to this as well!

Code:
new bool:CloseTextDraw[MAX_PLAYERS];

public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
	// Close code
	if(Text:INVALID_TEXT_DRAW == clickedid)
	{
	        if(!CloseTextDraw[playerid])  SelectTextDraw(playerid, 0x00FF00FF);
                else 
                {
                    HideTextDraws(playerid);
                    CloseTextDraw[playerid] = false;
                 }
	}

        // Close Click you can remove this
	if(Text:Close_Click == clickedid)
        {
               // These two lines will close the textdraw put them where you need them in your script!
               CloseTextDraw[playerid] = true;
               CancelSelectTextDraw(playerid);
        }
}
Reply


Messages In This Thread
OnPlayerClickTextDraw - by Gangasta300 - 05.04.2013, 16:06
Re: OnPlayerClickTextDraw - by Azazelo - 05.04.2013, 16:16
Re: OnPlayerClickTextDraw - by MP2 - 05.04.2013, 16:23
Re: OnPlayerClickTextDraw - by Pottus - 05.04.2013, 16:26
Re: OnPlayerClickTextDraw - by Gangasta300 - 05.04.2013, 16:27
Re: OnPlayerClickTextDraw - by Pottus - 05.04.2013, 16:29
Re: OnPlayerClickTextDraw - by Gangasta300 - 05.04.2013, 16:45
Re: OnPlayerClickTextDraw - by Pottus - 05.04.2013, 16:51
Re: OnPlayerClickTextDraw - by Gangasta300 - 05.04.2013, 18:26
Re: OnPlayerClickTextDraw - by Pottus - 05.04.2013, 18:27

Forum Jump:


Users browsing this thread: 2 Guest(s)