I readed somewhere that you have to disable the Cheat Write Protected to make the SendCommandToConsole function works.
Hello
Im trying to send the command "name anything" to the alteriwnet console but every time it results in a crash. It seems like all the commands except the name command works any idea why? I need this command to work becuse i am working on a name stealer which do work but i have to type the command in console manually to refresh the name.
this is the SendCommandToConsole im using:
Code:void (__cdecl *SendCommandToConsole)(int a1,int a2,char *cvar)=(void (__cdecl *)(int,int,char *))0x0446DD0;
Thank you, and im sorry for my bad engelish
I readed somewhere that you have to disable the Cheat Write Protected to make the SendCommandToConsole function works.
winberg (04-03-2011)
Thanks i will take a look at that
Edit:
I dont think it is that beacuse i can use the command if i type it directly in the console but if i Send it the game crashes
Edit2:
I solved it
Code:SendCommandToConsole(1,1, "name anything")
Thank you Play&Win you got me thinking in the right direction. Expect a namestealer & changer in a couple of days
Last edited by winberg; 04-03-2011 at 09:57 AM.
that is what i am doing but the command wasent cheat, write protected the command just caused the game to crash