First of all you should know that there are two types to recording a demo:
1) First Person Demo ( In which you can see only yourself and cant check the players status by pressing TAB button).
2) HLTV Demo ( In this demo you can view and check every player at any camera view and you also can check the players status by pressing TAB button).
So here we go first i will tell you how to make First Person Demos:
Making a first person demo is so simple you just need to join a server and then open your console and type this command " record name.dem " in the name you have to put the name wat ever you want. For stoping the recording open your console and type " stop " & you are done your demo will be saved in this location Valve/cstrike.
Now I will tell you how to make HLTV Demos: (Note: For making this hltv demo you should have 2 different ports forwarded one port for "HLTV" and one port for your server "HLDS" )
Follow these steps:
You should be able to find the hltv.exe in your server folder (HLDS Folder) [half-life logo with handy cam icon] and also the hltv.cfg file.
Now you are ready to record the demo. Run the hltv.exe file. (If you have Windows XP with the firewall running you might have to unblock the access for hltv.exe when it pops up the unblock message.) A command prompt will pop up something like this.
[img]
[/img]
Consider you are trying to connect to Mafia Match server with IP 202.63.171.122:27033 and password “match”. Now the first step is to enter the server password. You MUST do this before you try to connect to a password protected server. Use the command "serverpassword “. This is what it will look like.
[img]
[/img]
Now you have to connect to the server with the command connect ip:port. Your window should now look something like this
[img]
[/img]
To verify if your HTLV server is connected to the game, there are 3 ways.You can check the Title bar where it shows the IP and the map name. Else you can type the command "status" in the HLTV window and check the output. It should say "Online" and show some server details (see below)or you can also join the server through CS and find "Mafia Match server" as a spectator.
[img]
[/img]
Now once you have verified that HLTV has been setup properly and is"Online" you can start recording. Use the command "record “. In our case assuming that we are recording the game as and want our demo named as "hi" we deploy the command as "record hi". The window will output something like this.
[img]
[/img]
Note how the demo is named as "hi-0810081130-awp_map_fair.dem”. It’s basically named in the "demoname-datetime-mapname.dem" convention. To verify if the HLTV is working and recording you can use the status command again.
To stop recording the demo use the command "stoprecording". When you run the command it gives a confirmation by saying "completed demo" followed by demo name.
To close HLTV when you are done, just type "exit". You will find your recorded demos in the "HLDS/cstrike" folder dedicated server folder.
[b]NOTE: In some C.S versions HLTV dont work correctly i.e it don't connect to the server so you can download the working HLTV FROM
HERE