Store what there menu page/postion is through a global var. You can find more information by searching for like the AMXX menu template (it's not offical, but was used for a long while and still is).
Code:
new gPlayerMenuPosition[33];
public MyMenuHook(id, key)
{
switch (key)
{
case 8:
ShowMenu(id, --gPlayerMenuPosition[id]); // Backward
case 9:
ShowMenu(id, ++gPlayerMenuPosition[id]); // Forward
}
}
__________________