Raised This Month: $ Target: $400
 0% 

record command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Miczu
Member
Join Date: Jul 2007
Old 11-19-2007 , 03:47   record command
Reply With Quote #1

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 ) for working tip

Last edited by Miczu; 11-19-2007 at 03:57.
Miczu is offline
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 11-19-2007 , 08:00   Re: record command
Reply With Quote #2

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

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 11-20-2007 , 08:07   Re: record command
Reply With Quote #3

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 ... ).
purple_pixie 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 01:24.


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