AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_cmd quest (https://forums.alliedmods.net/showthread.php?t=57511)

kmal2t 07-06-2007 04:15

client_cmd quest
 
Is it possible to client_cmd(id, "shit"); someone on an HLTV? Obviously you can't put AMXX on an HLTV but is it possible to do it remotely some how? And if so, how?

Alka 07-06-2007 04:20

Re: client_cmd quest
 
I think you can remote it through sockets! Was a post started somewhere with this! Search for it :wink:

EDIT:Check this http://forums.alliedmods.net/showthr...ht=HLTV+remote exec start/stop record on HLTV!

Lee 07-06-2007 20:31

Re: client_cmd quest
 
Change rcon_address to point to the HLTV and use server_cmd("rcon ...").

kmal2t 07-07-2007 17:44

Re: client_cmd quest
 
Quote:

Originally Posted by Lee (Post 499763)
Change rcon_address to point to the HLTV and use server_cmd("rcon ...").

I don't even think that makes sense since client_cmd is not a console hl function its hooking into the engine or whatever.

And I was thinking sockets be the right way, but I don't think I fully understand how sockets works. So with sockets I can remotely hook into the server (or hltv) and run amx stuff as if it was on the server?

Zenith77 07-07-2007 18:04

Re: client_cmd quest
 
No obviously you're not going to put a function call in an rcon query.

Here's what he was talking about (example rcon query):

Code:

rcon say Alpha-Bravo-Charlie

kmal2t 07-07-2007 21:10

Re: client_cmd quest
 
LoL i understand rcon and using rcon_address to call a command to another addy. If that's what I needed I would have used that. I need to know if I can call the client_cmd fucntion on a client on an HLTV from a server.

Lee 07-07-2007 21:40

Re: client_cmd quest
 
I understand what you want. Try what I said and come back if it doesn't work. I'm pretty sure HLDS has RCON implemented just like a client. Something similar to..
Code:
set_cvar_string("rcon_address", "1.2.3.4"); set_cvar_num("rcon_port", 27030); server_cmd("rcon record");

kmal2t 07-08-2007 02:39

Re: client_cmd quest
 
No, you obviously don't. For like the third time I want to run a command on a CLIENT not make the server record a demo.

Lee 07-08-2007 07:56

Re: client_cmd quest
 
I'm not going to say this again.. I know that you want to execute commands on a HLTV using the server - not on the server and not from a client. I'm telling you how to do it but you don't want to listen.

Think about what it is you're saying. Who would use server_cmd() in a console command? Who would use rcon to execute commands locally?

kmal2t 07-08-2007 14:20

Re: client_cmd quest
 
I...
want...
to...
make...
a...
client...
on...
HLTV...
run...
a...
command.

example: have a client on hltv bind his c key to +use. which would require me to be able to run client_cmd on the people in hltv.


All times are GMT -4. The time now is 21:25.

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