Hey, I've tried to build this code into the mapchooser.
But it will not really help to select the file 1, 2, 1 etc.
Code:
//get the map number
new g_mndb_file[128]
get_datadir(g_mndb_file, 127)
format(g_mndb_file, 127, "%s/maps_chooser.dat", g_mndb_file)
new mn[5]=1;
new mndb_file = fopen(g_mndb_file, "wt+")
if ( ! mndb_file )
{
fprintf(mndb_file, "%s", mn)
fclose(mndb_file)
}
else
{
fgets(mndb_file, mn, 4)
if (mn[3] == 1)
{
mn[3]=2;
fprintf(mndb_file, "%s", mn)
fclose(mndb_file)
}
else
{
mn[3]=1;
fprintf(mndb_file, "%s", mn)
fclose(mndb_file)
}
}
new maps_ini_file[64]
get_configsdir(maps_ini_file, 63);
format(maps_ini_file, 63, "%s/maps_chooser%s.ini", maps_ini_file, mn)