I don't know if there is a specific check to see if the game is paused, but you might try having a dummy unit somewhere, and whenever a player used one of your commands, then you'd have the trigger deal the unit a small amount of damage and then check if the dummy unit actually lost health (I'm pretty sure that damage can't go through while the game is paused). If the unit didn't lose health, the game is probably paused.