Well i'm using GTE for a while, just updated the emu to 3.18.1 but still the kick wired is kicking me or staffs. So I went looking for a fix;
Orignal code:
Code:
case "wf_act_kick_user":
current2.ExtraData = "1";
current2.UpdateState(false, true);
current2.ReqUpdate(1);
GameClient GetPlayerSession = GoldTree.GetGame().GetClientManager().GetClientByHabbo(RoomUser_1.GetClient().GetHabbo().Username);
if (GetPlayerSession != null)
{
Room class2 = RoomUser_1.GetClient().GetHabbo().CurrentRoom;
if (!(class2.Owner == GetPlayerSession.GetHabbo().Username && GetPlayerSession.GetHabbo().HasFuse("acc_unkickable")))
{
class2.method_47(GetPlayerSession, true, false);
if (current2.string_2.Length > 0)
{
GetPlayerSession.SendNotif(current2.string_2);
}
else
{
GetPlayerSession.SendNotif("Wired: Potki käyttäjä wired-tavara on potkinut sinut huoneesta!");
}
}
flag2 = true;
}
break;
My code:
Code:
case "wf_act_kick_user":
current2.ExtraData = "1";
current2.UpdateState(false, true);
current2.ReqUpdate(1);
GameClient GetPlayerSession = GoldTree.GetGame().GetClientManager().GetClientByHabbo(RoomUser_1.GetClient().GetHabbo().Username);
if (GetPlayerSession != null)
{
Room class2 = RoomUser_1.GetClient().GetHabbo().CurrentRoom;
if (!(class2.Owner == GetPlayerSession.GetHabbo().Username || GetPlayerSession.GetHabbo().HasFuse("acc_unkickable")))
{
class2.method_47(GetPlayerSession, true, false);
if (current2.string_2.Length > 0)
{
GetPlayerSession.SendNotif(current2.string_2);
}
else
{
GetPlayerSession.SendNotif("Wired: Potki käyttäjä wired-tavara on potkinut sinut huoneesta!");
}
}
flag2 = true;
}
break;
So here's an explanation; In the original code it checked if you are a room owner and have the permission for not getting kicked, in my code it checks if you have the permission for not getting kicked or are a room owner. It's not a 'big' difference. Sorry if my English isn't that great I'm from Belgium. (: