- Joined
- Sep 8, 2010
- Messages
- 145
- Reaction score
- 55
Hey guys, i was a bit bored, and made this command, Slaxxer did see how i made it my self. lol. Back to topic. what does it do?
It gives to every user in the room a Badge.
Example:
:roombadges XXX
Every user in the room will get a badge called XXX aka Xler Badge.
Anyways, have fun with it!
Code:
It gives to every user in the room a Badge.
Example:
:roombadges XXX
Every user in the room will get a badge called XXX aka Xler Badge.
Anyways, have fun with it!
Code:
PHP:
case "roombadges":
{
if (Session.GetHabbo().Rank >= 6)
{
string badgecode = MergeParams(Params, 1);
// Das sind alles METHODEN zb:
TargetRoom = UberEnvironment.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
foreach (RoomUser RoomUser in TargetRoom.UserList)
{
if (RoomUser.IsBot)
{
continue;
}
RoomUser.GetClient().GetHabbo().GetBadgeComponent().GiveBadge(badgecode, true);
}
return true;
}
return false;
}