Mazter_1, for owner status, you can use:
if ($nick isowner $chan) {
The isowner operator will match the user nick mode "q". This operator may or may not work for standard ircd servers. If that doesn't work for your network, use
if ($nick($chan,$nick,~)) {
where the ~ indicates he or she is an owner.