You can do this with the $iif() identifier:
on *:TEXT:!Pancake:#: {
.msg # $iif($nick isop #,Hello $+ $chr(44) you want a pancake? Ok! Because you're an op! Congratz!,$&
Unfortunately $+ $chr(44) you're not an op so you're not trusted with a pancake. Sorry!)
}
, which saves yourself a /msg command. I also corrected a couple of misspellings, excluding the word "congratz."