I would download a real simply mod from the Add-Ons forum to see some basic plugin code.
PHP Code:
if ($foruminfo['forumid'] == xx AND is_member_of($vbulletin->userinfo, y,z))
{
$show['newthreadlink'] = false;
}
Something like that. The variable names will always depend on the hook location you pick for your plugin. Pick a hook location, do a search in your files for the hook, then look at the variable names used right there to find out what is allowed.