❓ Name Changer

Posts 1–2 of 2 · Page 1 of 1
❓ Name Changer
Hello Guys, I need a code for a simple namechanger, where I can set my OWN CUSTOM name. I saw a namechanger where u had to type "name [EXAMPLE]" in the console and this would be your name. I currently have this, but only for set Names:

Any help would be great!
Thank you!

Quote Originally Posted by p3c View Post

static clock_t start_t = clock();
double timeSoFar = (double)(clock() - start_t) / CLOCKS_PER_SEC;
if (timeSoFar < 0.001)
return;

...

start_t = clock();

- - - Updated - - -

void vacjoke () {

if (!Interfaces::Engine->IsInGame())
return;

if(!Interfaces::Engine->IsConnected())
return;

static clock_t start_t = clock();
double timeSoFar = (double)(clock() - start_t) / CLOCKS_PER_SEC;
if (timeSoFar < 0.001)
return;

static bool steal = true

ConVar* nameConvar = Interfaces::CVar->FindVar(charen("name"));
*(int*)((DWORD)&nameConvar->fnChangeCallback +0xC) = 0;

if (nameConvar) {
if (steal)
{
nameConvar->SetValue("-VAC is a joke");
} else
{
nameConvar->SetValue("VAC is a joke-");
}
}

steal = !steal;
}

Now everything works fine. But I cant type "name" in the console. It will automaticcly change to "ame". And I cant hit the back to remove letters in the console.
Posts 1–2 of 2 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us