$_COOKIE["username"] - "username" is the name of the cookie
You should also be careful with your authentication. Someone could potentially create their own cookie and this means would give them access, you should add an encrypted password or and MD5 hash of their password to confirm (if that is how you are developing this).
I suggest you use $_COOKIE["username"] method instead of $username and have register globals on in php.ini. Otherwise, someone could add a ?username=Admin to the end of this php file, just a though
mysql_pconnect("localhost","master","password");
mysql_select_db("tcomuk_pchat4");
$user=mysql_query("SELECT * FROM c_reg_users WHERE username='".stripslashes($_COOKIE["username"])."' LIMIT 0,1");
$user=mysql_fetch_array($user);
if ($user["banned"]=="1") {
header("Location: another_page.php");
} else {
header("Location: loggedon.php");
}