AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugin/Gameplay Ideas and Requests (https://forums.alliedmods.net/forumdisplay.php?f=60)
-   -   Demo format plugin (https://forums.alliedmods.net/showthread.php?t=331250)

Rugal 03-12-2021 10:52

Demo format plugin
 
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

NanoC 03-12-2021 23:00

Re: Demo format plugin
 
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

Rugal 03-13-2021 00:40

Re: Demo format plugin
 
Quote:

Originally Posted by NanoC (Post 2740258)
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?

NanoC 03-13-2021 08:57

Re: Demo format plugin
 
Ctrl + f
Find that word you want to change


All times are GMT -4. The time now is 19:20.

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