PDA

View Full Version : Problems with the ClientCmd



thoseHacker
04-12-07, 01:40
Hi,
I have a problem with the ClientCmd command.
Example:

working:

base.m_pEngine->ClientCmd("mat_fullbright 1");

not working (why?):

base.m_pEngine->ClientCmd("exec fdm.cfg");

thX, thoseHacker!

Helo
04-12-07, 04:36
test it without ".cfg". i think it is not needed ...


Helo

thoseHacker
04-12-07, 06:35
Oh, I forgot the error message.

Unknown command "exec"

not working too:

base.m_pEngine->ClientCmd("name d-fsdkfhsjvdfnvk");

Same error with "name".

thx, thoseHacker!

STR
04-12-07, 10:19
ConCommandBase* fb = main.m_pCvar->FindVar("mat_fullbright");
fb->SetValue(1.0f);



should work.

thoseHacker
04-12-07, 10:37
Do it work when I use the following?


ConCommandBase* fb = main.m_pCvar->FindVar("name");
fb->SetValue("thisismyfuckinnewname?");

Thx fumin!

If I try it with exec or name, both give the same error - unknown Command.

thoseHacker
11-12-07, 07:03
Hey, I don't want to spam, but nothing of this works.
I need a command to exec a cfg:

m_pEngine->ClientCmd("exec bla.cfg");
doesn't work!
This error appears:

FCVAR_CLIENTCMD_CAN_EXECUTE prevented running command: exec
Unknown command: exec

Thx, thoseHacker

thoseHacker
23-01-08, 07:53
*poush*

HELLO:)
23-01-08, 08:28
i guess fcvar whatever is some cvar flag


ConCommandBase* Cvar = HellosCheat.pCvar->FindVar("exec" );


if(Cvar)
{
if(!Cvar->IsBitSet(FCVAR_CLIENTCMD_CAN_EXECUTE))
Cvar->m_nFlags |= FCVAR_CLIENTCMD_CAN_EXECUTE;
}

thoseHacker
23-01-08, 09:38
Thx, Hello!
But the compiler doesn't know what FCVAR_CLIENTCMD_CAN_EXECUTE is...
I looked into the Developer Console Control - Valve Developer Community (http://developer.valvesoftware.com/wiki/Developer_Console_Control) , but theres nothing which can be pass my problem...

FCVAR_CLIENTCMD_CAN_EXECUTE prevented running command: exec
Unknown command: exec

thoseHacker

Brother
22-11-09, 03:03
i know that this hack is 1 year old

but use

m_pEngine->ExecuteClientCmd("exec blah");

i just dont like it if there is no solution in threads