-
Number of Players Banned
I edited this code to show banned account names only, not player name:
PHP Code:
<?PHP
//--Credits to TimeBomb - archangel1969 for ban edit: \\
$sql_server = "localhost"; //<-- MSSQL server address/ip
$sql_user = "sa"; //<-- MSSQL username
$sql_pass = "......"; //<-- MSSQL password
$sql_data = "Account"; //<-- MSSQL database
$conn=mssql_connect($sql_server,$sql_user,$sql_pass);
$xadb = mssql_select_db($sql_data,$conn);
$AuthType2 = mssql_query("select [ID] from [dbo].[cabal_auth_table] where AuthType = 2");
$AuthType2test = mssql_num_rows($AuthType2);
if ($AuthType2test > 0) {
echo '<center><b>Current Banned Accounts:</b><p><i>';
do { while ($row = mssql_fetch_row($AuthType2)) {
echo $row[0].'<br>';
} } while (mssql_next_result($AuthType2));
echo '</i></center>'; } else echo '<center><b>No Accounts Currently Banned!</b></center>';
mssql_free_result($AuthType2);
mssql_close($conn);
?>
Credits to me archangel1969 for banned players addon php code:
Credits to TimeBomb for his players online php code that i used to make this:
Enjoy...
Link from request:
http://forum.ragezone.com/f451/script-636966/