function IsArena( Arena, P ) local CurrentArena = string.upper( gArena.m_name ); if ( P == 1 or P == 3 ) then if ( string.match( CurrentArena, "^" .. Arena .. "?[1-9][0-9]?$" ) ) then return true; end elseif ( P == 2 or P == 3 ) then if ( string.match( CurrentArena, "^#" .. Arena .. "?[1-9][0-9]?$" ) ) then return true; end end return false; end