Hey guys, i've done just the code for uber to change ingame the name.
"HOW DOES IT WORK?" Easy, just write :name youractualname yourwannabename
Example: :name JNike ragezone
In the emulator will get a writeline where it says [NAMECHANGE]: JNike changed his name to ragezone.
If you type "JUST" :name it will freeze the emulator, im here to find a solution, it isnt so easy as i thought, hope someone could help me? :P
Thanks anyways:
Known bugs:
- If you enter nothing, the emu will crash, idk why, i tryed if(Params[1] == null || Params[2] == null) { return false; } etc. nothing worked just d/ced :(
- Not refreshing ingame.
Anyways, code for ya:
(PS IM WORKING ON!):
Code:
case "username":
case "newname":
case "name":
{
if (Session.GetHabbo().Rank >= 6)
{
string old_name = Params[1];
string new_name = Params[2];
using (Uber.Storage.DatabaseClient dbClient = UberEnvironment.GetDatabase().GetClient())
{
dbClient.ExecuteQuery("UPDATE users SET username = '" + Params[2] + "' WHERE username = '" + Params[1] + "'");
}
Session.SendNotif("Your Username has been changed to " + Params[2]);
Console.Write("[NAMECHANGE]: ");
UberEnvironment.GetLogging().WriteLine(Params[1] + " has changed his name to" + Params[2]);
return true;
}
Session.SendNotif("You doesnt have the rights to do this!");
return false;
}
SCREENSHIT:

Get ready for Project One X 5. with much cool Commands, i released just 2 or 3 commands of my emulator, im making much more for it and coding on it :)!
- JNike!