Raised This Month: $203 Target: $400
 50% 

Demo format plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rugal
Senior Member
Join Date: Jun 2020
Location: Brazil
Old 03-12-2021 , 10:52   Demo format plugin
Reply With Quote #1

Hello, I need a simple plugin which basically consists of starting a demo when one joins 10 players on the server, and ending the demo when the game is over.
Before you ask me why I don't use "tv_autorecord 1", I don't want to use this because the format of the demo name doesn't match my region.
"tv_autorecord 1" uses the following format: YYYY/MM/D

My region uses this:

D/MM/YYYY

Last edited by Rugal; 03-12-2021 at 10:53.
Rugal is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 03-12-2021 , 23:00   Re: Demo format plugin
Reply With Quote #2

Use this plugin:
https://forums.alliedmods.net/showthread.php?p=824438

But change line 228:
Code:
FormatTime(sTime, sizeof(sTime), "%Y%m%d-%H%M%S", GetTime());
to:
Code:
FormatTime(sTime, sizeof(sTime), "%d%m%Y-%H%M%S", GetTime());
then recompile the plugin
__________________
NanoC is offline
Send a message via Skype™ to NanoC
Rugal
Senior Member
Join Date: Jun 2020
Location: Brazil
Old 03-13-2021 , 00:40   Re: Demo format plugin
Reply With Quote #3

Quote:
Originally Posted by NanoC View Post
Use this plugin:
https://forums.alliedmods.net/showthread.php?p=824438

But change line 228:
Code:
FormatTime(sTime, sizeof(sTime), "%Y%m%d-%H%M%S", GetTime());
to:
Code:
FormatTime(sTime, sizeof(sTime), "%d%m%Y-%H%M%S", GetTime());
then recompile the plugin
Is there any way to change the default name of the demos in the source code of this plugin?
If so, how to do it?
Rugal is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 03-13-2021 , 08:57   Re: Demo format plugin
Reply With Quote #4

Ctrl + f
Find that word you want to change
__________________
NanoC is offline
Send a message via Skype™ to NanoC
Reply


Thread Tools
Display Modes

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 11:28.


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