Chức năng thoát game khi bị lag nhân vật. New...
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 3 của 3
  1. #1
    Thành Viên
    Ngày tham gia
    Apr 2007
    Bài viết
    869
    Thanks
    3
    Thanked 59 Times in 19 Posts

    Chức năng thoát game khi bị lag nhân vật. New...

    Demo : [Only registered and activated users can see links. ]
    use và pass là admin

    Coder bởi BachCotSau !
    Code 1
    Code:
    }
    function disconnect ($name)
    {
    require("config.php");
    
    $name = stripslashes($_POST['character_disconnect']);
    $status_check=$db->Execute("Select ConnectStat from MEMB_STAT where memb___id=?",array($name));
    $status = $status_check->fetchrow();
    					
                             if(empty($name)){
                                 show_error("$warning_start Chưa có nhân vật trong tà i khoản! $warning_end");}
     						 elseif($status[0] == 0)
    						 {
    						 show_error("$ok_start Rất tiếc $name hiện đã thoát game $ok_end");
    						 }
                        	else
                              { 
                                  $disconnect=$db->Execute("Update MEMB_STAT set [ConnectStat]=0 where memb___id=?",array($name));
                                                       show_error("$ok_start Thà nh công, $name Đã được thoát ra ngoà i! $ok_end");
                              }
    						  }
    Code 2
    Code:
     
    <?
    /**
     * @author Nguyen Huy
     * @copyright 2008
     */
    
    $account_id = stripslashes($_SESSION['user']);
    $account_id = clean_var($account_id);
    require("config.php");
    $from_character_sql_script = $db->Execute("Select gameid1,gameid2,gameid3,gameid4,gameid5,gameidc From accountcharacter WHERE id=?",array($account_id));
    $from_character_execute = $from_character_sql_script->fetchrow();
    ?>
    
    <script language=javascript>
    function check_disconnect_form()
    {
    if ( document.disconnect.character_disconnect.value == "")
    {
    alert("Please select character.");
    return false;
    }
    //return false;
    document.disconnect.submit();
    }
    </script>
    <table width="307" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="307">&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center"><? if(isset($_POST['disconnect'])){ require("includes/character.class.php"); disconnect($_POST['character_disconnect']); } ?></div></td>
      </tr>
    </table>
    <table width="200" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
      <tr>
        <td><div align="center">
          <form action="" method="post" name="disconnect" id="disconnect">
            <fieldset>
            <legend>Disconnect Char</legend><table width="200" border="0" align="center" cellpadding="0" cellspacing="4">
              <tr>
                <td width="60" align="right" class="normal_text_white">Character</td>
                <td width="140" align="left" class="normal_text_white"><div align="left">
    			<? echo("					 
    										 <select name='character_disconnect' id='character_disconnect'>
                                             <option value='$from_character_execute[0]'>$from_character_execute[0]</option>
                                             <option value='$from_character_execute[1]'>$from_character_execute[1]</option>
                                             <option value='$from_character_execute[2]'>$from_character_execute[2]</option>
                                             <option value='$from_character_execute[3]'>$from_character_execute[3]</option>
                                             <option value='$from_character_execute[4]'>$from_character_execute[4]</option>
                    
    				</select>"); ?>         
                </div>
    			</td>
              </tr>
            </table>
            <table width="190" border="0" cellspacing="4" cellpadding="0">
              <tr>
                <td width="88"><div align="right">
                   <input type="submit" class="button" name="Submit" value="Thoát nhân vật" onclick="return check_disconnect_form()">
                </div></td>
                <td width="90"><input type="reset" class="button" name="Reset" value="Hủy bỏ"></td>
              </tr>
            </table></fieldset>
          </form>
        </div></td>
      </tr>
    </table>
    <table width="393" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td>&nbsp;</td>
      </tr>
    </table>
    <table width="320" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="395" height="37" background="images/img_mu_did-u-know.gif"><div align="center">
            <table width="220" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><div align="left"><strong>Chú ý </strong></div></td>
              </tr>
            </table>
        </div></td>
      </tr>
    </table>
    <table width="417" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100">&nbsp;</td>
        <td width="317"><table width="220" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td align="left"><strong>Chức năng nà y sẽ là m nhân vật trong game của bạn thoát ra ngoà i .</strong> </td>
            </tr>
        </table></td>
      </tr>
    </table>
    Khách viếng thăm hãy cùng bachcotsau xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  2. #2
    Thành Viên
    Ngày tham gia
    Sep 2006
    Bài viết
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Ðề: Chức năng thoát game khi bị lag nhân vật. New...

    Bạn Có Thể Hướng Dẫn Kĩ cho Mình đc Hok Mình Hok Hỉu
    Khách viếng thăm hãy cùng rebirth_hotboys xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

  3. #3
    Thành Viên
    Ngày tham gia
    Mar 2008
    Bài viết
    214
    Thanks
    0
    Thanked 156 Times in 42 Posts

    Ðề: Chức năng thoát game khi bị lag nhân vật. New...

    Chức năng này không ăn thua đâu. Mình đã làm từ lâu rùi nhưng có nhiều trường hợp không thể thoát được nhân vật, bắt buộc phải khởi động lại cả GameServer của nhân vật bị kẹt.
    Và đoạn mã này có thể bị Gamer lợi dụng HackReset vì nếu đang trong Game (không bị kẹt) nhưng sử dụng chức năng này nghĩa là nhân vật đã thoát => Reset mà không phải thoát nhân vật.
    Muốn sử dụng tốt chức năng này phải đi thêm vài điều kiện kiểm tra trong lúc Reset. Ví dụ như khi Reset phải: block nhân vật, block tài khoản,...
    Khách viếng thăm hãy cùng NetBanBe.Net xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. Web Clbmuvn 3.5 fix nvtpro lỗi không cần thoát game vẫn RS được.
    Bởi sathu107 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 10
    Bài viết cuối: 07-06-11, 11:00 PM
  2. [LỗiSCF10.07.65] Tự thoát 1 cách khó hiểu ?
    Bởi godhoang trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 8
    Bài viết cuối: 12-05-11, 09:13 PM
  3. Cho mình hỏi web nào có chức năng find ip của tk trong game
    Bởi wan0124 trong diễn đàn Hỏi Đáp/ Yêu Cầu
    Trả lời: 9
    Bài viết cuối: 09-05-11, 08:52 PM
  4. MU cho điện thoại di động đây
    Bởi mybob trong diễn đàn Releases
    Trả lời: 52
    Bài viết cuối: 13-08-09, 05:54 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 01:11 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.