public OnPlayerClickTextDraw(playerid, Text:clickedid) { if(_:clickedid == INVALID_TEXT_DRAW) { //Do your work here } return 1; }