This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[REQ] Record Demo


Post New Thread Reply   
 
Thread Tools Display Modes
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-13-2010 , 22:53   Re: [REQ] Record Demo
Reply With Quote #11

Quote:
Originally Posted by fysiks View Post
<demo_name> is without the .dem extension.
FYI, still works with the .dem extension.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
wariorman
Senior Member
Join Date: Mar 2008
Old 01-14-2010 , 04:20   Re: [REQ] Record Demo
Reply With Quote #12

Ok so i type that in console? Ok how do i do if i want to make a video that i can put in youtube?
wariorman is offline
Nibs
Member
Join Date: Apr 2009
Old 01-14-2010 , 04:54   Re: [REQ] Record Demo
Reply With Quote #13

Quote:
Originally Posted by Exolent[jNr] View Post
No it won't. You never get the player's name.

Code:
#include < amxmodx > new g_szMapName[ 64 ]; new g_szDemoName[ 33 ][ 128 ]; public plugin_init( ) {     register_plugin( "Demo Recorder", "0.0.1", "Exolent" );         new const szPrefixes[ ] = { '.', '/', '!' };         new szCommand[ 16 ];     for( new i = 0; i < sizeof( szPrefixes ); i++ ) {         formatex( szCommand, 15, "say %cdemo", szPrefixes[ i ] );         register_clcmd( szCommand, "CmdStart" );                 formatex( szCommand, 15, "say %cstop", szPrefixes[ i ] );         register_clcmd( szCommand, "CmdStop" );     }         get_mapname( g_szMapName, 63 );     strtolower( g_szMapName ); } public client_disconnect( iPlayer ) {     g_szDemoName[ iPlayer ][ 0 ] = 0; } public CmdStart( iPlayer ) {     g_szDemoName[ iPlayer ][ 0 ] = 0;         new szDate[ 32 ];     format_time( szDate 31, "%Y_%m_%d_" );     add( g_szDemoName[ iPlayer ], 127, szDate );     add( g_szDemoName[ iPlayer ], 127, g_szMapName );     format_time( szDate 31, "_%H_%M_%S.dem" );     add( g_szDemoName[ iPlayer ], 127, szDate );         client_cmd( iPlayer, "stop; record ^"%s^"", g_szDemoName[ iPlayer ] );         client_print( iPlayer, print_chat, "Recording %s", g_szDemoName[ iPlayer ] ); } public CmdStop( iPlayer ) {     if( g_szDemoName[ iPlayer ][ 0 ] ) {         client_cmd( iPlayer, "stop" );                 client_print( iPlayer, print_chat, "Finished recording %s", g_szDemoName[ iPlayer ] );                 g_szDemoName[ iPlayer ][ 0 ] = 0;     } else {         client_print( iPlayer, print_chat, "You are not recording." );     } }
i put this code in a compiler and it came up with 4+ errors and wouldnt work?? can you link me a compiler that works with this code? or fix it?
Nibs is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-14-2010 , 09:09   Re: [REQ] Record Demo
Reply With Quote #14

Fixed code.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
HaqaN
Member
Join Date: Jan 2010
Location: Koca3l! / Turkey
Old 01-14-2010 , 10:54   Re: [REQ] Record Demo
Reply With Quote #15

Quote:
Originally Posted by Exolent[jNr] View Post
No it won't. You never get the player's name.


Code:
#include < amxmodx ></p><p>&nbsp;</p><p>new g_szMapName[ 64 ];</p><p>&nbsp;</p><p>new g_szDemoName[ 33 ][ 128 ];</p><p>&nbsp;</p><p>public plugin_init( ) {</p><p> register_plugin( "Demo Recorder", "0.0.1", "Exolent" );</p><p>&nbsp;</p><p> new const szPrefixes[ ] = { '.', '/', '!' };</p><p>&nbsp;</p><p> new szCommand[ 16 ];</p><p> for( new i = 0; i < sizeof( szPrefixes ); i++ ) {</p><p> formatex( szCommand, 15, "say %cdemo", szPrefixes[ i ] );</p><p> register_clcmd( szCommand, "CmdStart" );</p><p>&nbsp;</p><p> formatex( szCommand, 15, "say %cstop", szPrefixes[ i ] );</p><p> register_clcmd( szCommand, "CmdStop" );</p><p> }</p><p>&nbsp;</p><p> get_mapname( g_szMapName, 63 );</p><p> strtolower( g_szMapName );</p><p>}</p><p>&nbsp;</p><p>public client_disconnect( iPlayer ) {</p><p> g_szDemoName[ iPlayer ][ 0 ] = 0;</p><p>}</p><p>&nbsp;</p><p>public CmdStart( iPlayer ) {</p><p> g_szDemoName[ iPlayer ][ 0 ] = 0;</p><p>&nbsp;</p><p> new szDate[ 32 ];</p><p> format_time( szDate, 31, "%Y_%m_%d_" );</p><p> add( g_szDemoName[ iPlayer ], 127, szDate );</p><p> add( g_szDemoName[ iPlayer ], 127, g_szMapName );</p><p> format_time( szDate, 31, "_%H_%M_%S.dem" );</p><p> add( g_szDemoName[ iPlayer ], 127, szDate );</p><p>&nbsp;</p><p> client_cmd( iPlayer, "stop; record ^"%s^"", g_szDemoName[ iPlayer ] );</p><p>&nbsp;</p><p> client_print( iPlayer, print_chat, "Recording %s", g_szDemoName[ iPlayer ] );</p><p>}</p><p>&nbsp;</p><p>public CmdStop( iPlayer ) {</p><p> if( g_szDemoName[ iPlayer ][ 0 ] ) {</p><p> client_cmd( iPlayer, "stop" );</p><p>&nbsp;</p><p> client_print( iPlayer, print_chat, "Finished recording %s", g_szDemoName[ iPlayer ] );</p><p>&nbsp;</p><p> g_szDemoName[ iPlayer ][ 0 ] = 0;</p><p> } else {</p><p> client_print( iPlayer, print_chat, "You are not recording." );</p><p> }</p><p>}

Its !demo !stop oR !demo <demoname> !stop

??
HaqaN is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-14-2010 , 10:58   Re: [REQ] Record Demo
Reply With Quote #16

Quote:
Originally Posted by HaqaN View Post
Its !demo !stop oR !demo <demoname> !stop

??
It is the commands that the OP requested
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
AirShot
Veteran Member
Join Date: Sep 2009
Location: Belgium
Old 01-14-2010 , 11:28   Re: [REQ] Record Demo
Reply With Quote #17

Worked for me but is it possible to make a plugin to send the demo on the server when the demo is completed?

When the demo is completed a menu opens with :

1. Upload this Demo on the server.
2. Do Not Upload.

If the player click 1 it's open a windows in counte strike and the demo is uploading on the server in addons/amxmodx/demo/

Sorry For Not Verry Good English ^^
__________________

Last edited by AirShot; 01-14-2010 at 11:30.
AirShot is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-14-2010 , 11:39   Re: [REQ] Record Demo
Reply With Quote #18

Not possible to do with AMXX. You would need a web page that you would have to have shown in the MOTD window. that allows the client to upload it.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ditmesteam
Senior Member
Join Date: Oct 2009
Old 01-19-2010 , 09:04   Re: [REQ] Record Demo
Reply With Quote #19

Can you make: when admin say /record will open playermenu. Admin choose one player to record. When admin say /stop record will open menuplayer to stop (in one map, admin can make many records demo for player) Thanks!
ditmesteam is offline
nuked
Member
Join Date: Oct 2009
Old 01-22-2010 , 01:18   Re: [REQ] Record Demo
Reply With Quote #20

If you are looking for a more advanced recording plugin : http://forums.alliedmods.net/showthr...highlight=A3RA - Highly recommended. Been using it for almost a year now. The only bug is when everyone on server is dead the cam goes nuts and scrolls through all players like nuts. But a simple press on spacebar stops the scrolling.

Excellent plug to say the least
nuked is offline
Send a message via ICQ to nuked Send a message via MSN to nuked
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 02:07.


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