AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Catch console (https://forums.alliedmods.net/showthread.php?t=313118)

JocAnis 12-28-2018 23:47

Catch console
 
Hello guys
Is there any option to hook client's commands made in console, eg kill, snapshot...?
If thats impo, is there a way to detect if client got a message in his console, example: snapshot -> Captured HalfLife8.tga

fysiks 12-29-2018 02:10

Re: Catch console
 
It is not possible to see what a client types in their console. It is only possible to see the commands that are sent to the server. Snapshot is not a server command and thus I don't believe is ever sent to the server.

eat1k 12-29-2018 06:42

Re: Catch console
 
register_clcmd("kill", "func_Kill");
register_forward(FM_ClientKill, "fmfwd_ClientKill_Pre");

It's not possible with snapshot cmd.

JocAnis 12-29-2018 09:46

Re: Catch console
 
Thanks guys for that... Is it possible for record? Because how i understand its client + server side (like its poss for status)

klippy 12-29-2018 12:53

Re: Catch console
 
Demo recording just stores the data already available by just playing on the server, the client doesn't query for any additional data I think.


All times are GMT -4. The time now is 07:38.

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