OnPlayerClickTextDraw
#4

Really easy to fix do something like this....

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
	if(Text:Close_Click == clickedid)
        {
               CloseTextDraw[playerid] = true;
               CancelSelectTextDraw(playerid);
        }

HideTextDraws(playerid)
{
     TextDrawHideForPlayer(playerid, MyDraw);
}

}
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)