public OnPlayerClickTextDraw(playerid, Text:clickedid){ if(clickedid == GLOBAL_TD[15]) { //your functions CancelSelectTextDraw(playerid); } return 1;}