![]() |
Executing command on other clients?
Hey all,
I've been playing around with the 'speak' command (like POD uses). It works for me as a host. But i want it to execute it on other human players too. So they all hear the same as the host. I know it should be possible, i have seen several admin mods and also statsme works great with this. (like the bomb timer, etc). Is there any way to do this? |
Re: Executing command on other clients?
I think it was enginefunc_s::pfnClientCommand
|
Re: Executing command on other clients?
theres also
CLIENT_COMMAND(pEdict,command); which does basically the same thing as what aspirin said :P |
Re: Executing command on other clients?
You must be kidding me? I probably looked not far enough. I found:
CLIENT_COMMAND(pEdict); that was it. But i did not know you could do this: CLIENT_COMMAND(pEdict, <command>); |
Re: Executing command on other clients?
dunno about that macro, but in the enginefuncs its defined another way :
void pfnClientCommand( edict_t* pEdict, char* szFmt, ... ); |
Re: Executing command on other clients?
lol, well i looked a bit further and u're right :)
|
Re: Executing command on other clients?
FakeClientCommand also works.....
|
Re: Executing command on other clients?
"FakeClientCommand also works....."
Works for what? It won't execute commands on the client (I should know, since I created it). I think you're confused about what FakeClientCommand() does. botman |
Re: Executing command on other clients?
Code:
if (!IsABot(pEdict)) { |
Re: Executing command on other clients?
speak works for clients and for servers afaik. Its just something to make that cool voice play.
|
All times are GMT +2. The time now is 23:26. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.