Code:
new inmotd[33] = 0
public motd_cmd(id)
{
//blah blah
//blah blah
//show motd
inmotd[id] = 1
}
public client_PreThink(id)
{
new but = get_user_button(id)
new obut = get_user_oldbutton(id)
if((but & IN_CANCEL) && !(obut & IN_CANCEL) && (inmotd[id] == 1))
{
inmotd[id] = 0
//put stuff to be done after motd here
}
}
That should work.
__________________