26.12.2013, 12:08
What if i have multiple textdraws like:
ShopTxd1
ShopTxd2
ShopTxd3
and so on?
Code will be like this?
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;
}