Raised This Month: $51 Target: $400
 12% 

Execute a command every x minutes? Multiple HLTVDemos/round?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grottenolm
Junior Member
Join Date: Sep 2005
Old 03-03-2006 , 13:41   Execute a command every x minutes? Multiple HLTVDemos/round?
Reply With Quote #1

Maybe this is only a case of me not knowing what to search for, but this is what I want to do:

Every x minutes I want the server to execute a server command (In my case: "kick <playername>").

I could write a plugin that uses "set_timer", but I suspect that either this feature already is somewhere inside AMXX, or someone wrote such a plugin already.


Perhaps someone has an even better idea how to accomplish my original task, though:

Basically, what I have is a server with roundtime 60. There is a HLTV recording demos, so that I can check suspected cheaters. Unfortunately on my side as well as on my clanmates' PCs fast forwarding or jumping to later times while using VIEWDEMO regularily crashes the game (DOD in my case). So if a suspected cheater joins 50 minutes into a game, checking him means waiting for 50 minutes. So I reasoned: I have to get the HLTV to make 10-15 minutes demos instead. The only way that I could think of is to regularily kick the HLTV so that it closes it's demo, reconnects, and starts a new demo.

So even if my first question is not easily answered, perhaps someone knows a way how to cause HLTV to start a new Demo every x minutes? Even running an external tool that executes this kick command over RCON would be OK...
Grottenolm is offline
Brad
AMX Mod X Team Member
Join Date: Jun 2004
Old 03-03-2006 , 13:48  
Reply With Quote #2

Moved from "Support/Help" forum.
Brad is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-03-2006 , 13:49  
Reply With Quote #3

This may be helpful to you.
__________________
Janet Jackson is offline
Grottenolm
Junior Member
Join Date: Sep 2005
Old 03-03-2006 , 17:10  
Reply With Quote #4

Yeeeees, this is it. So I now know the word I should have searchedfor, itwas "sheduler" LOL

Thanks a lot!
Grottenolm is offline
Janet Jackson
Veteran Member
Join Date: Mar 2005
Location: far, far away from here
Old 03-03-2006 , 18:13  
Reply With Quote #5

I searched for 'schedule' first and found nothing (I didn't think of adding a wildcard). But I found it while searching for 'task' ;)
__________________
Janet Jackson is offline
Grottenolm
Junior Member
Join Date: Sep 2005
Old 03-03-2006 , 21:42  
Reply With Quote #6

OK, finally I got a good solution. For reference to anyone who might search such a thing I'll post what I did on my windows server:

1) get PERL (or use Linux)

2) get kkrcon http://sourceforge.net/project/showf...group_id=23454

3) Use a scheduler to regularily everfy x minutes run a batch file that includes the two following lines:

kkrcon.pl -a <address> -p <port> <password> stoprecording
kkrcon.pl -a <address> -p <port> <password> record <directory>

This will give you one demo per x minutes, all named with date & time.
Grottenolm is offline
superbulette.nordend
Junior Member
Join Date: Jul 2006
Old 03-29-2007 , 11:57   Re: Execute a command every x minutes? Multiple HLTVDemos/round?
Reply With Quote #7

or you could use
loopcmd 1 <seconds> stoprecording
loopcmd 2 <seconds> record <name>

greetz, bulette
superbulette.nordend 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 08:50.


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