in old menu style ofcourse
PHP Code:
new onoff = 0
public menuhandle(id, key)
{
switch (key)
{
case 0: // this is the key 1
{
// when player press the key 1 and thing is on, then it will be off, and if it off then
// it will be on
if (onoff)
onoff = 0
else
onoff = 1
}
}
}