Didn't have any luck finding clientcommand callback. Is it somewhere in the stock gsc files or in libcod?
Edit:
https://script.cod2.ru/libcod/player/clientcommand.htm
This is the one i guess but i don't know where the follownext/followprev stuff is.