Hey, i was a bit bored, again, and coded to fun 2 commands, well, i didn't test them at all, so please post a answere, if it's not working :).
Here are the codes:
(YOU HAVE TO PUT THEM INTO ChatCommandHandler.cs!)
At least i coded something, so be happy that i try to help the community and uber :/.Code:case "roomtaler": { try { int rang = 6; if (Session.GetHabbo().Rank >= rang) { foreach (RoomUser rusr in TargetRoom.UserList) { int taleranzahl = Convert.ToInt32(Params[1]); rusr.GetClient().GetHabbo().Credits += taleranzahl; } } else if(Session.GetHabbo().Rank < rang) { Session.SendNotif("Dein Rang ist zu tief! Du solltest mindestens den Rang " + rang + " haben!"); } } catch { } return false; } case "dancer": { try { int rang = 6; if (Session.GetHabbo().Rank >= rang) { foreach (RoomUser room_user in TargetRoom.UserList) { if (room_user.IsDancing) { room_user.GetClient().GetHabbo().GetBadgeComponent().GiveBadge(Params[1], true); } } } else if (Session.GetHabbo().Rank <= rang) { } return false; } catch(Exception e) { Console.WriteLine(e); } return false; } #endregion
If it's working, please post it, if it's not working, please post it too :p.
What are the commands doing?
- roomcredits = your typing :roomtaler (change the case"roomtaler": to something else like case"roomcredits":) 500 it'll give 500 credits to everyone in the room, so type :roomtaler 500 and everyone will get 500 creds :p.
- dancer? Yeah it's maybe something cool, if someone is dancing in a room, you can easially give to EVERY dancer in the room a badge, cool or? Just type :dancer BADGECODEEHRE, example :dancer ADM everyone who's dancing will get a ADMIN Badge (ADM).
And err, sorry for my english, im 1 minute befor i go to sleep, im tired like a bitch ~.~
I would'nt use my self
because it's killing the economy of your retro, so use just this code, btw change the ### to your badge!Code:room_user.GetClient().GetHabbo().GetBadgeComponent().GiveBadge(Params[1], true);
Because if you're just giving 1 badge at all dancers, it'll hold up the economy :D, else if you give to everyone a custom badge like ADM, XXX, LLL, HC1, etc etc.. the badges won't be usefull anymore.
Anyways have fun with it!Code:room_user.GetClient().GetHabbo().GetBadgeComponent().GiveBadge("###", true);![]()


![[Uber][CommandS] roomcredits, dancer](http://ragezone.com/hyper728.png)


