Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.94 KB | None | 0 0
  1. case 133:
  2.     {
  3.         if (!Session.GetHabbo().HasFuse("cmd_roomalert"))
  4.         {
  5.             return false;
  6.         }
  7.        
  8.         class2 = GoldTree.GetGame().GetRoomManager().GetRoom(TargetClient.GetHabbo().CurrentRoomId);
  9.         if (class2 == null)
  10.         {
  11.             GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
  12.             return true;
  13.         }
  14.        
  15.         string video = ChatCommandHandler.MergeParams(Params, 1);
  16.         for (int i = 0; i < class2.RoomUsers.Length; i++)
  17.         {
  18.             RoomUser class6 = class2.RoomUsers[i];
  19.             if (class6 != null)
  20.             {
  21.                 try { GoldTree.GetWebSocketManager().getWebSocketByName(class6.GetClient().GetHabbo().Username).Send("31|" + i + "|" + "https://youtube.com/watch?v=" + video); }
  22.                 catch { }
  23.             }
  24.         }
  25.         GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
  26.         return true;
  27.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement