public OnPlayerText(playerid, text[]){ if (IsPlayerInMenu(playerid)) { // menu code stuff here return 0; } return 1;}