03.12.2012, 20:56
Testa:
pawn Код:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == TextDraw01)
{
SendClientMessage(playerid, -1, " clicou no TextDraw01 ");
}
else if(clickedid == TextDraw02)
{
SendClientMessage(playerid, -1, " clicou no TextDraw02 ");
}
else if(clickedid == TextDraw03)
{
SendClientMessage(playerid, -1, " clicou no TextDraw03 ");
}
else if(clickedid == TextDraw04)
{
SendClientMessage(playerid, -1, " clicou no TextDraw04 ");
}
else if(clickedid == TextDraw05)
{
SendClientMessage(playerid, -1, " clicou no TextDraw05 ");
return 1;
}
TextDrawHideForPlayer(playerid, TextDraw01);
TextDrawHideForPlayer(playerid, TextDraw02);
TextDrawHideForPlayer(playerid, TextDraw03);
TextDrawHideForPlayer(playerid, TextDraw04);
TextDrawHideForPlayer(playerid, TextDraw05);
CancelSelectTextDraw(playerid);
return 1;
}