Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public demo_record_start( id, level, cid )
- {
- if( !cmd_access( id, level, cid, 1 ) )
- return PLUGIN_HANDLED;
- new g_szDemoName[128];
- new g_szMapName[ 64 ];
- new szDate[ 32 ];
- get_mapname( g_szMapName, 63 );
- strtolower( g_szMapName );
- format_time( szDate, 31, "%Y_%m_%d_" );
- add( g_szDemoName, 127, szDate );
- add( g_szDemoName, 127, g_szMapName );
- format_time( szDate, 31, "_%H_%M_%S.dem" );
- add( g_szDemoName, 127, szDate );
- new players[32], num;
- get_players( players, num );
- for( new i; i < num; i++ )
- client_cmd(players[i],"stop; record ^"%s^"", g_szDemoName);
- client_print(0, print_chat, "[InHouse League]: IHL-Server requested Demo recording at %s...",szDate);
- client_print(0, print_chat, "[InHouse League]: Recording demo file: %s...",g_szDemoName);
- return PLUGIN_HANDLED;
- }
- public demo_record_stop( id, level, cid )
- {
- client_cmd(0, "stop" );
- client_print(0, print_chat, "[InHouse League]: Finished recording demo file...");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement