You probably need to follow a certain file name format, it will be much better such as costume_m_hats.mdl
PHP Code:
new const szFile[] = "costume_X"
new charGender = szFileName[strlen(szFile) - 1];
switch( charGender )
{
case 'm': charGender= 'M';
case 'f': charGender= 'F';
}
__________________