- 2 Febbraio 2010
- 4.641
- 0
- Miglior risposta
- 0
Apriamo le nostre source e andiamo in room.cs
cerchiamo :
e lo sostituiamo con questo :
Fonte : Kekomundo.
cerchiamo :
if (!IsBot)
{
if (GetClient().GetHabbo().NewbieStatus == 1)
{
if (Message == "Yes, I verify that I will only speak English in the hotel." || Message == "Yes, I verify that I will only speak English in the hotel")
{
GetClient().GetHabbo().NewbieStatus = 2;
using (DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
{
dbClient.ExecuteQuery("UPDATE users SET newbie_status = '2' WHERE id = '" + GetClient().GetHabbo().Id + "' LIMIT 1");
}
GetClient().SendNotif("Thank you. You can now use chat.");
return;
}
else
{
GetClient().SendNotif("We would like to urge that Uber is an English hotel. Before you are allowed to use chat, please verify you will speak English by typing \"Yes, I verify that I will only speak English in the hotel.\" in the chat. This is case-sensitive.");
return;
}
}
e lo sostituiamo con questo :
#region Bobba Filter
if (Message.Contains("fuck") || Message.Contains(".com") || Message.Contains(".COM") || Message.Contains(".org") || Message.Contains("fuck") || Message.Contains(".ORG") || Message.Contains("Shit") || Message.Contains("SHIT") || Message.Contains("cunt") || Message.Contains("bitch") || Message.Contains("pussy") || Message.Contains("habbo.vg") || Message.Contains("Blah Hotel") || Message.Contains("whore") || Message.Contains("slut") || Message.Contains("buttfuck") || Message.Contains("asswhore")
|| Message.Contains("FUCK") || Message.Contains("CUNT") || Message.Contains("BITCH") || Message.Contains("PUSSY") || Message.Contains("HABBO.VG") || Message.Contains("BLAH HOTEL") || Message.Contains("WHORE") || Message.Contains("SLUT") || Message.Contains("BUTTFUCK") || Message.Contains("ASSWHORE")
|| Message.Contains("Fuck") || Message.Contains("Cunt") || Message.Contains("Bitch") || Message.Contains("Pussy") || Message.Contains("Habbo.VG") || Message.Contains("blah hotel") || Message.Contains("Whore") || Message.Contains("Slut") || Message.Contains("Buttfuck") || Message.Contains("Asswhore"))
{
GetClient().SendNotif("Este Lenguaje no es Aceptado.\nModeralo por favor");
Console.WriteLine("Alguien dijo una mala palabra");
return;
}
#endregion
Fonte : Kekomundo.