AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   record command (https://forums.alliedmods.net/showthread.php?t=63364)

Miczu 11-19-2007 03:47

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 :)

Wilson [29th ID] 11-19-2007 08:00

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)

purple_pixie 11-20-2007 08:07

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.