record command
How could I make my script to run, when someone write in game console command 'record' (event?)?
This is the hard part of my idea, so i would be happy (give karma :up:) for working tip :) |
Re: record command
The client command 'record' is not a server-side command and thus cannot be detected by the server (amxx).
When a client begins recording a demo, however, his hud is reset - he receives the message ResetHUD from the server. So you could hook the ResetHUD message and make sure he is not spawning. (ex, check close proximity for a spawn point) |
Re: record command
Or you could just check to see if anyone else's HUD was reset.
Unless you're playing CSDM / WC3 it's unlikely a player would be the only one spawning ( I think ... ). |
| All times are GMT -4. The time now is 01:24. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.