Hey, its Ken...
Today i am releasing my command. Took me hours to code, but its now done! :lol:
Its pretty simple (Sorry, didn't make it admin only yet :( you can manually do it...)
Add this to ChatCommandhandler.cs (Put it under a command that ends in "return true;"
Feel free to edit the name of the command. But make sure to alter the command if you are changing the amount of letters or else it will be like for example: :MakeSay Rick Hey will be like RICK: Rick HeyCode:case "say":
TargetClient = UberEnvironment.GetGame().GetClientManager().GetClientByHabbo(Params[1]);
TargetRoomUser = TargetRoom.GetRoomUserByHabbo(TargetClient.GetHabbo().Id);
int Hey = Session.GetHabbo().Username.Length;
int Heya;
Heya = 5;
int Amount = Heya += Hey;
TargetRoomUser.Chat(Session, Input.Substring(Amount), false);
return true;
Well so the Heya = must be the number of command text so M(1)A(2)k(3)e(4)S(5)a(6)y(7) then add 2 to it... so it would be 9...... so then it will fix it to: Rick: Hey
If there are any errors or questions feel free to ask 'em
Credits:
Ken (ME) - 95% // Coding CMD
homeandlearn.com - 5% // Helping me fix the error of including part of the command using the addition function and learning how to set an int's value...
Thanks,
Kenneth816

