Raised This Month: $32 Target: $400
 8% 

Auto record demo


Post New Thread Reply   
 
Thread Tools Display Modes
xonfire
Member
Join Date: Sep 2020
Old 01-16-2021 , 00:30   Re: Auto record demo
Reply With Quote #11

Thank you OciXCrom is now working! one last help how would you like to add date to the demo?
xonfire is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 01-16-2021 , 02:40   Re: Auto record demo
Reply With Quote #12

In no way!
Adding this would result in each day new demos instead of older ones overwritten wasting your clients hard disk space. If you want to get a demo after someone got banned only the latest would be needed, or in case this is for a match server, the clients would have to submit them and also can be overwritten afterwards.
Don't mess with your clients harddisks.
__________________

Mordekay is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-16-2021 , 03:03   Re: Auto record demo
Reply With Quote #13

I would argue that forcing a demo to be recorded is as bad as slowhacking.
__________________
fysiks is offline
xonfire
Member
Join Date: Sep 2020
Old 01-16-2021 , 03:55   Re: Auto record demo
Reply With Quote #14

I understand what they say about the use of disk space, but this is for people who like to save their demos without worrying about using record, after the game is sent and deleted (client) the last thing I asked for was a date since that will guide me if any of them want to ask for a date.
xonfire is offline
tarsisd2
Veteran Member
Join Date: Feb 2016
Location: brazil
Old 01-16-2021 , 09:12   Re: Auto record demo
Reply With Quote #15

Quote:
Originally Posted by fysiks View Post
I would argue that forcing a demo to be recorded is as bad as slowhacking.
i don`t agree with you, we are not changing anything from the client, we are only making sure that the player is not using cheats, its no big deal and the players kind of enjoy it, because from time to time they can get amazing plays and it will be recorded

in my servers each map a demo is recorded, if we suspect that the player is cheating, we ask for the last 3 demos, so we can watch and scan for cheats, is the only way that works for finding cheats nowdays, no one complains, i have a few servers with full players everyday, everyone sends the demos when requested, even tournaments every game players has to send each demo to be scanned

i use this plugin, very simple and 1 demo will be saved per map, and will be overwritten

add this cvar on amxx.cfg

PHP Code:
amx_demo_format "NameOfDemo-%mapname%" 
PHP Code:
#include <amxmodx>

const MAX_LENGTH 64;

new 
Float:TimeoutDemoName[MAX_LENGTH];

public 
plugin_init() {
    
register_plugin("Demo Recorder""2.4.1""F@nt0M");
    
register_dictionary("demo_recorder.txt");

    
bind_pcvar_float(create_cvar(
        .
name "amx_demo_timeout",
        .
string "5.0",
        .
has_min true,
        .
min_val 0.0
    
), Timeout);

    
hook_cvar_change(create_cvar(
        .
name "amx_demo_format",
        .
string "Demo-%mapname%"
    
), "HookChangeFormat");
}

public 
plugin_cfg() {
    
HookChangeFormat(get_cvar_pointer("amx_demo_format"));
}

public 
HookChangeFormat(const pcvar) {
    
get_pcvar_string(pcvarDemoNamecharsmax(DemoName));

    new 
map[32];
    
get_mapname(mapcharsmax(map));
    
replace(DemoNamecharsmax(DemoName), "%mapname%"map);
}

public 
client_putinserver(id) {
    if (!
is_user_bot(id) && !is_user_hltv(id)) {
        if (
Timeout 0.0) {
            
set_task(Timeout"TaskStop"id);
        } else {
            
TaskStop(id);
        }
    }
}

public 
client_disconnected(id) {
    
remove_task(id)
}

public 
TaskStop(id) {
    if (
is_user_connected(id)) {
        
client_cmd(id"stop");
        
set_task(0.2"TaskRecord"id);
    }
}

public 
TaskRecord(const id) {
    if (
is_user_connected(id)) {
        
client_cmd(id"record ^"%s^""DemoName);
        
set_task(5.0"TaskMessage"id);
    }
}

public 
TaskMessage(const id) {
    if (
is_user_connected(id)) {
        new 
time[10], date[12];

        
get_time("%H:%M:%S"timecharsmax(time));
        
get_time("%d.%m.%Y"datecharsmax(date));

        
client_print_color(idprint_team_default"%l %l""DR_TAG""DR_WARNING"id);
        
client_print_color(idprint_team_default"%l %l""DR_TAG""DR_DEMO"DemoName);
        
client_print_color(idprint_team_default"%l %l""DR_TAG""DR_TIME"timedate);
    }

Attached Files
File Type: txt demo_recorder.txt (467 Bytes, 35 views)

Last edited by tarsisd2; 01-16-2021 at 09:18.
tarsisd2 is offline
conn
Member
Join Date: Dec 2013
Old 01-17-2021 , 00:40   Re: Auto record demo
Reply With Quote #16

thanks
conn 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 13:18.


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