Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.10 KB | None | 0 0
  1.         public static void SendRoom(GameClient Session, ServerMessage Message)
  2.         {
  3.             uint RoomId = Session.GetHabbo().Flat;
  4.  
  5.             foreach (var pair in ClientMessageHandler.mRoomList)
  6.             {
  7.                 if (RoomId == pair.Key && pair.Value.GetHabbo().Username == Session.GetHabbo().Username)
  8.                 {
  9.                     AleedaEnvironment.GetHabboHotel().GetClients().GetClientByFlat(RoomId, pair.Value.GetHabbo().Username).GetConnection().SendMessage(Message);
  10.                 }
  11.             }
  12.             /*
  13.             using (DatabaseClient dbClient = AleedaEnvironment.GetDatabase().GetClient())
  14.             {
  15.                 dbClient.AddParamWithValue("id", id);
  16.                 foreach (DataRow row in dbClient.ReadDataTable("SELECT * FROM users WHERE flat = @id;").Rows)
  17.                 {
  18.                     uint mId = (uint)row["id"];
  19.                     GameClient mClient = AleedaEnvironment.GetHabboHotel().GetClients().GetClientOfHabbo(mId);
  20.  
  21.                     mClient.GetConnection().SendMessage(Message);
  22.                 }
  23.             }*/
  24.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement