Raised This Month: $ Target: $400
 0% 

Demo recorder (different)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 07-21-2015 , 18:23   Demo recorder (different)
Reply With Quote #1

Hello everyone. Can anyone make different demo recorder plugin? https://forums.alliedmods.net/showthread.php?p=770786

In this plugin, when I connect to the server, demo begins, when I disconnect, demo ends, and in cstrike I get "demo.dem", but i need new plugin like this:

demo1.dem
demo2.dem
demo3.dem
.....

Thanks a lot

Last edited by LithuanianJack; 07-21-2015 at 18:24.
LithuanianJack is offline
Loupu.
Member
Join Date: Jul 2013
Old 07-22-2015 , 16:21   Re: Demo recorder (different)
Reply With Quote #2

i haven't tested, but should work !
PHP Code:
#include <amxmodx>

#define PLUGIN "Demo Record"
#define VERSION "0.1"
#define AUTHOR "Loupu."

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_connect(id) {
    if(
is_user_connected(id) && is_user_aliveid )){
    new 
time[32];
    
get_time("%m/%d/%Y - %H:%M:%S",time,31);
    
client_cmd(id,"record demo_%s.dem",time);
    
    }    
}

public 
client_disconnect(id)
    
client_cmd(id,"stop"); 
Attached Files
File Type: sma Get Plugin or Get Source (demor.sma - 564 views - 428 Bytes)
Loupu. is offline
OnePL
BANNED
Join Date: May 2012
Location: GB
Old 07-22-2015 , 16:46   Re: Demo recorder (different)
Reply With Quote #3

PHP Code:
#include <amxmodx>

public client_putinserver(id) {
    if(
is_user_bot(id) || is_user_hltv(id)) return;

    
set_task(1.0"RecordDemoTask"id 100);
}

public 
RecordDemoTask(id) {
    
id -= 100;

    if(!
is_user_connected(id)) {
        
remove_task(id 100);
        return;
    }

    new 
szTime[22];
    
get_time("%m_%d_%Y - %H_%M_%S"szTime21);

    
client_cmd(id"record demo_%s"szTime);

OnePL is offline
Send a message via ICQ to OnePL Send a message via AIM to OnePL Send a message via Yahoo to OnePL Send a message via Skype™ to OnePL
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 07-22-2015 , 17:24   Re: Demo recorder (different)
Reply With Quote #4

Quote:
Originally Posted by OnePL View Post
PHP Code:
#include <amxmodx>

public client_putinserver(id) {
    if(
is_user_bot(id) || is_user_hltv(id)) return;

    
set_task(1.0"RecordDemoTask"id 100);
}

public 
RecordDemoTask(id) {
    
id -= 100;

    if(!
is_user_connected(id)) {
        
remove_task(id 100);
        return;
    }

    new 
szTime[22];
    
get_time("%m_%d_%Y - %H_%M_%S"szTime21);

    
client_cmd(id"record demo_%s"szTime);

Quote:
Originally Posted by Loupu. View Post
i haven't tested, but should work !
PHP Code:
#include <amxmodx>

#define PLUGIN "Demo Record"
#define VERSION "0.1"
#define AUTHOR "Loupu."

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_connect(id) {
    if(
is_user_connected(id) && is_user_aliveid )){
    new 
time[32];
    
get_time("%m/%d/%Y - %H:%M:%S",time,31);
    
client_cmd(id,"record demo_%s.dem",time);
    
    }    
}

public 
client_disconnect(id)
    
client_cmd(id,"stop"); 
Thanks, but plugins not work
LithuanianJack is offline
Loupu.
Member
Join Date: Jul 2013
Old 07-22-2015 , 17:31   Re: Demo recorder (different)
Reply With Quote #5

works on my server...
PHP Code:
#include <amxmodx>


#define PLUGIN "Demo Record"
#define VERSION "0.1"
#define AUTHOR "Loupu."

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id) {   
        
set_task10"startrecord"id );

    }    
}

public 
startrecord(id){
       if( !
is_user_connected(id))
        return;

    new 
time[32];
    
get_time("%m_%d_%Y - %H_%M_%S",time,31);

    
client_cmd(id,"stop; record demo_%s.dem",time);


Last edited by Loupu.; 07-22-2015 at 17:43.
Loupu. is offline
LithuanianJack
Senior Member
Join Date: Nov 2013
Location: Vilnius, Lithuania
Old 07-22-2015 , 17:40   Re: Demo recorder (different)
Reply With Quote #6

Quote:
Originally Posted by Loupu. View Post
works on my server...
PHP Code:
#include <amxmodx>
#include <amxmodx>


#define PLUGIN "Demo Record"
#define VERSION "0.1"
#define AUTHOR "Loupu."

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_putinserver(id) {
    if(
is_user_alive(id)){
    new 
time[32];
    
get_time("%m/%d/%Y - %H:%M:%S",time,31);
    
client_cmd(id,"record demo_%s.dem",time);
    
    }    
}

public 
client_disconnect(id)
    
client_cmd(id,"stop"); 
Where the demo saved?
LithuanianJack is offline
4ever16
Veteran Member
Join Date: Apr 2015
Old 07-24-2015 , 04:21   Re: Demo recorder (different)
Reply With Quote #7

This plugin doesnt work for me.
The .dem are saved in cstrike folder.
4ever16 is offline
Jack Carmmo
Member
Join Date: Apr 2015
Old 07-25-2015 , 12:01   Re: Demo recorder (different)
Reply With Quote #8

Boys plugin is perfect, but there is a command that allows an admin to run the supposed xiter, then simply request a demo and analyze, because the demo will be recorded in client.segue pc in the admin console should run amx_execclient Ramon record name demo

Last edited by Jack Carmmo; 07-25-2015 at 12:03.
Jack Carmmo is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-25-2015 , 21:52   Re: Demo recorder (different)
Reply With Quote #9

Quote:
Originally Posted by Loupu. View Post
i haven't tested, but should work !
PHP Code:
#include <amxmodx>

#define PLUGIN "Demo Record"
#define VERSION "0.1"
#define AUTHOR "Loupu."

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}

public 
client_connect(id) {
    if(
is_user_connected(id) && is_user_aliveid )){
    new 
time[32];
    
get_time("%m/%d/%Y - %H:%M:%S",time,31);
    
client_cmd(id,"record demo_%s.dem",time);
    
    }    
}

public 
client_disconnect(id)
    
client_cmd(id,"stop"); 
You cannot send a command to a player that is no longer connected . . .
__________________
fysiks is online now
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 07-26-2015 , 03:20   Re: Demo recorder (different)
Reply With Quote #10

And it would be useless as demo recording stops at disconnecting from a server.
__________________

Mordekay 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 20:59.


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