Clickable textdraw
#6

What if i have multiple textdraws like:

ShopTxd1
ShopTxd2
ShopTxd3

and so on?

Code will be like this?

pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
    if(clickedid == Text:INVALID_TEXT_DRAW)
    {
        TextDrawHideForPlayer(playerid, ShopTxd1);
        TextDrawHideForPlayer(playerid, ShopTxd2);
    }
    else if(clickedid == ShopTxd1)
    {
        SendClientMessage(playerid,COLOR_GREY,"You clicked textdraw named ShopTxd1");
    }
    else if(clickedid == ShopTxd2)
    {
        SendClientMessage(playerid,COLOR_GREY,"You clicked textdraw named ShopTxd2");
    }
    return 1;
}
Reply


Messages In This Thread
Clickable textdraw - by Face9000 - 26.12.2013, 09:10
Re: Clickable textdraw - by Face9000 - 26.12.2013, 11:52
Re: Clickable textdraw - by ikey07 - 26.12.2013, 11:56
Re: Clickable textdraw - by Face9000 - 26.12.2013, 11:57
Re: Clickable textdraw - by ikey07 - 26.12.2013, 12:03
Re: Clickable textdraw - by Face9000 - 26.12.2013, 12:08
Re: Clickable textdraw - by ikey07 - 26.12.2013, 12:17
Re: Clickable textdraw - by Face9000 - 26.12.2013, 19:34
Re: Clickable textdraw - by Face9000 - 26.12.2013, 19:43
Re: Clickable textdraw - by HardRock - 26.12.2013, 19:52

Forum Jump:


Users browsing this thread: 1 Guest(s)