Thanks PMB but do you have a idea how to detect FY maps and AWP maps ?
Can you tell me is this way is good :
Code:
strcpy(filename, STRING(gpGlobals->mapname));
if (filename[0] == 'a') {
if (filename[1] == 's')
g_iMapType = MAP_AS;
else if (filename[1] == 'w')
g_iMapType = MAP_AWP;
else if (filename[1] == 'i')
g_iMapType = MAP_AIM;
} else if (filename[0] == 'c')
g_iMapType = MAP_CS;
else if (filename[0] == 'd')
g_iMapType = MAP_DE;
else if (filename[0] == 'e')
g_iMapType = MAP_ES;
else if (filename[0] == 'f')
g_iMapType = MAP_FY;
The map type is detected by the map name. But I think that still is not correct detected the CS maps. If you can help me.