Raised This Month: $ Target: $400
 0% 

client_cmd quest


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kmal2t
BANNED
Join Date: Apr 2006
Old 07-06-2007 , 04:15   client_cmd quest
Reply With Quote #1

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?
kmal2t is offline
Alka
AMX Mod X Plugin Approver
Join Date: Dec 2006
Location: malloc(null)
Old 07-06-2007 , 04:20   Re: client_cmd quest
Reply With Quote #2

I think you can remote it through sockets! Was a post started somewhere with this! Search for it

EDIT:Check this http://forums.alliedmods.net/showthr...ht=HLTV+remote exec start/stop record on HLTV!
__________________
Still...lovin' . Connor noob! Hello
Alka is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 07-06-2007 , 20:31   Re: client_cmd quest
Reply With Quote #3

Change rcon_address to point to the HLTV and use server_cmd("rcon ...").
Lee is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 07-07-2007 , 17:44   Re: client_cmd quest
Reply With Quote #4

Quote:
Originally Posted by Lee View Post
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?
kmal2t is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 07-07-2007 , 18:04   Re: client_cmd quest
Reply With Quote #5

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
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 07-07-2007 , 21:10   Re: client_cmd quest
Reply With Quote #6

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.
kmal2t is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 07-07-2007 , 21:40   Re: client_cmd quest
Reply With Quote #7

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");

Last edited by Lee; 07-07-2007 at 21:47.
Lee is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 07-08-2007 , 02:39   Re: client_cmd quest
Reply With Quote #8

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.
kmal2t is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 07-08-2007 , 07:56   Re: client_cmd quest
Reply With Quote #9

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?

Last edited by Lee; 07-08-2007 at 08:00.
Lee is offline
kmal2t
BANNED
Join Date: Apr 2006
Old 07-08-2007 , 14:20   Re: client_cmd quest
Reply With Quote #10

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.
kmal2t is offline
Reply



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 21:25.


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