Raised This Month: $ Target: $400
 0% 

Executing FakeClient comands


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
USvER
Junior Member
Join Date: Nov 2006
Location: Ukraine, Kyiv
Old 12-19-2007 , 20:28   Executing FakeClient comands
Reply With Quote #1

Hi again

dllfunc (DLLFunc_ClientCommand, pClient)

How to pass a command in ClientCommand? %)
USvER is offline
Send a message via ICQ to USvER
Drak
Veteran Member
Join Date: Jul 2005
Old 12-19-2007 , 22:27   Re: Executing FakeClient comands
Reply With Quote #2

The "DLLFunc_ClientCommand" is just the forward, called when a player uses a client command.
To execute a command on a client, there's: "client_cmd(id,"COMMAND");"
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
USvER
Junior Member
Join Date: Nov 2006
Location: Ukraine, Kyiv
Old 12-19-2007 , 23:32   Re: Executing FakeClient comands
Reply With Quote #3

Quote:
dllfunc - Calls a Half-Life engine DLL function.

Syntax:
dllfunc ( type, [ ... ] )

Type:
Native

Notes:
type is an DllFunc_*
Quote:
Originally Posted by fakemeta_const.inc
...
/* Used with dllfunc()
*/
enum
{
...
DLLFunc_ClientCommand, // void ) (edict_t *pEntity);
...
USvER is offline
Send a message via ICQ to USvER
Drak
Veteran Member
Join Date: Jul 2005
Old 12-19-2007 , 23:41   Re: Executing FakeClient comands
Reply With Quote #4

Okay for one. Your original question makes no sense. And what you just said again make no sense.
__________________
Oh yeah
Drak is offline
Send a message via MSN to Drak
USvER
Junior Member
Join Date: Nov 2006
Location: Ukraine, Kyiv
Old 12-20-2007 , 00:41   Re: Executing FakeClient comands
Reply With Quote #5

ClientCommand is a MOD function called by Engine when client passes command in console.

register_forward (FM_ClientCommand, "ClientCommand", 0) // Hook of ClientCommand
dllfunc (DLLFunc_ClientCommand, pClient) // Call of ClientCommand

Correct me if I'm wrong.

I don't need to execute a command on a client, I need to execute a command as client.

Fake clients don't have network connection to server... so client_cmd can't do...
engclient_cmd on description exactly that function which I search but she for some reason does not work with "menuselect"

Last edited by USvER; 12-20-2007 at 01:25.
USvER is offline
Send a message via ICQ to USvER
[ --<-@ ] Black Rose
ANNIHILATED
Join Date: Sep 2005
Location: Stockholm, Sweden.
Old 12-20-2007 , 04:56   Re: Executing FakeClient comands
Reply With Quote #6

Bots doesn't have menus(?)
[ --<-@ ] Black Rose is offline
USvER
Junior Member
Join Date: Nov 2006
Location: Ukraine, Kyiv
Old 12-20-2007 , 12:50   Re: Executing FakeClient comands
Reply With Quote #7

From POD Bot:
FakeClientCommand (pBot->pEdict, "menuselect %d\n", pBot->bot_team);

FakeClientCommand call MDLL_ClientCommand...

params must be in argc,argv
so it's unposible to use that function =(

I think it's time to program for metamod... it's more powerfull

Last edited by USvER; 12-20-2007 at 12:53.
USvER is offline
Send a message via ICQ to USvER
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 12-20-2007 , 13:17   Re: Executing FakeClient comands
Reply With Quote #8

May be this could help you : http://forums.space-headed.net/viewtopic.php?t=131
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
USvER
Junior Member
Join Date: Nov 2006
Location: Ukraine, Kyiv
Old 12-20-2007 , 14:36   Re: Executing FakeClient comands
Reply With Quote #9

w0w
tnx
USvER is offline
Send a message via ICQ to USvER
Orangutanz
Veteran Member
Join Date: Apr 2006
Old 12-22-2007 , 07:58   Re: Executing FakeClient comands
Reply With Quote #10

Quote:
Originally Posted by [ --<-@ ] Black Rose View Post
Bots doesn't have menus(?)
Bots see everything a player can see (even the crappy VGUI welcome screen).
After all a bot is a player, just controlled server-side that's all.
__________________
|<-- Retired from everything Small/Pawn related -->|
You know when you've been Rango'd
Orangutanz is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode