Post Pacific  

Go Back   Post Pacific > Lineage 2 > Lineage 2 Help

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 27.06.2007, 10:34   #11
Drag
Архивный участник
 
Join Date: Mar 2006
Posts: 241
Default

Thats what I use to ban (using character name)

Code:
$name=$_POST['name'];
$char_id=GetCharID($name); //function to get char_id using nick
echo 'Kicking character <b>'.$name.'</b>:'.KickCharacterPacket($char_id).'<br>'; //cached function
$result=mssql_query("SELECT account_name FROM user_data WHERE char_id='$char_id'");
$r=mssql_fetch_array($result);
if($r[account_name]){
$account=$r[account_name];
echo'Ban account <b>'.$account.'</b>.';
mssql_select_db ($mssql_lin2db);
mssql_query("UPDATE user_account SET block_flag2='1' WHERE account='$account'");
mssql_select_db ($mssql_lin2world);}
It doesnt make any lags at all... cant.
Drag is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:40.