View Single Post
Old 14.06.2005, 11:07   #8
BiGBoY
Архивный участник
 
Join Date: May 2005
Posts: 216
Default

here another way of ban. much more reliable coz that way they dont get any reply from server. they r simply rejected:

[php:1:261ac87e3c]if(strstr($szAction,"<ban>"))
{
$dbconnect = mssql_connect ($CONFIG['dbaddress'], $CONFIG['dbuser'], $CONFIG['dbpass']);
mssql_select_db ($CONFIG['dbdbname'], $dbconnect) or die(print("error"));
$query = "UPDATE User_Account SET block_flag=1, block_flag2=1 WHERE uid=".$userAccId;
$result = mssql_query($query);
if($result)
{
$str = "ACC BANNED: UID = $userAccId; CHAR NAME = $charName;";
echoLn($str);
writeLog($str);
}
else echoLn("ACC (UID = $userAccId) NOT BANNED!!");
}[/php:1:261ac87e3c]

Change variables at ur needs ...
BiGBoY is offline