Supermario
Member
- Jan 5, 2016
- 99
- 0
deleted.
Last edited:
its better having it as the staff alert because if a staff member is away for example atleast they'll see it when they return
its better having it as the staff alert because if a staff member is away for example atleast they'll see it when they return
I rather have it for Whisper to be honest, some of my staff members were suggesting it because the pop up staff alert is annoying.
using Plus.HabboHotel.GameClients;
foreach (GameClient Client in PlusEnvironment.GetGame().GetClientManager().GetClients.ToList())
{
if (Client == null || Client.GetHabbo() == null || Client.GetHabbo().GetPermissions() == null)
continue;
Client.SendWhisper("Message");
}
its better having it as the staff alert because if a staff member is away for example atleast they'll see it when they return
Nobody gives a fuck what you morons want, this is what he is asking for.--QUOTE NO REPLY--
Shutup, you fuckboy. Nobody asked for your opinion.This goes at the top of your page
Here is the codeCode:using Plus.HabboHotel.GameClients;
Since nobody else can answer a god damn question and they wanna play stupid bullshit like this:Code:foreach (GameClient Client in PlusEnvironment.GetGame().GetClientManager().GetClients.ToList()) { if (Client == null || Client.GetHabbo() == null || Client.GetHabbo().GetPermissions() == null) continue; Client.SendWhisper("Message"); }
Nobody gives a fuck what you morons want, this is what he is asking for.
That's why you replied just quoting someone elses post, which by the way was against devbest rules.Shutup, you fuckboy. Nobody asked for your opinion.
I could give two fucks about the forum rules. Your code is quite trash, which is why nobody uses your methods of support. Bye now scum.That's why you replied just quoting someone elses post, which by the way was against devbest rules.
Heres a little advice for not only you but everyone else who reads this post;
IF YOU DON'T KNOW WHAT THE FUCK YOU'RE DOING, THEN DON'T REPLY TO THE FUCKING THREAD.
Oh hey, you commented on my profile asking for help regarding a simple fix which can be found on various noob littered threads on here, yet you claim his code is shit, hmmm - how can it be of you to curse other peoples work, when you cant code?I could give two fucks about the forum rules. Your code is quite trash, which is why nobody uses your methods of support. Bye now scum.
Sorry about that, I was on the phone while coding this so I didn't check the method for clarity.@JayCustom
Thank you so much. I'm also trying to make it a Last Bubble but I get an error, saying "The name 'ThisUSer' does not exist in the current context" Any suggestions?
~EDIT~
If I add
It works but I'm now getting another error saying SendWhisper. "No overload for method 'SendWhisper' takes 3 arguments"Code:RoomUser ThisUser = Room.GetRoomUserManager().GetRoomUserByHabbo(Session.GetHabbo().Id); if (ThisUser == null) return;
Bro now you're making shit up.Still didn't work.
I put this
Code:Client.SendMessage("[Staff Alert] " + "[" + Session.GetHabbo().Username + "] " ,Message, false, 23);
and It's giving me this error:
"The name 'Message' does not exist In the current context"
@JayCustom
public void Execute(GameClients.GameClient Session, Rooms.Room Room, string[] Params)
{
if (Params.Length == 1)
{
Session.SendWhisper("Please enter a message to send.");
return;
}
string Message = "Staff Alert: ";
Message += CommandManager.MergeParams(Params, 1);
foreach (GameClient Client in PlusEnvironment.GetGame().GetClientManager().GetClients.ToList())
{
if (Client == null || Client.GetHabbo() == null || Client.GetHabbo().GetPermissions() == null)
continue;
Client.SendWhisper(Message, false, 0);
}
return;
}
}