Credits to: SantiagoEllis
As I'm sure you're aware, all the text that appears in the upper left of your window when playing SA:MP is saved to a file called "chatlog.txt" in "C:\Users\\Documents\GTA San Andreas User Files\SAMP". It's a good thing to refer to if there was an RP scenario you'd like to re-read, or an old PM you'd like to refer to or anything else.
But by default, chatlog.txt is overwritten every time you launch the game. You could make a mental note to move the file somewhere and rename it every time you leave the game, but that's boring and requires effort. And why bother when you can do it automagically with a AHK script!?
If you haven't already, download and install AutoHotkey.
http://www.autohotkey.com/
Navigate to your GTA San Andreas User Files folder (C:\Users\\Documents\GTA San Andreas User Files\SAMP").
Create a new folder here. Name it "Chatlog backups" (without the quote marks).
Now, go to your desktop. Right click > New > AutoHotkey Script.
Picture:
http://i.imgur.com/OOQUE0g.pngName it "Chatlog Archiver".
Picture:
http://i.imgur.com/JBbDyUw.pngRight click on your file and click Edit Script.
Picture:
http://i.imgur.com/X6RPvXj.pngThe script should open up in Notepad, and you'll probably see a load of gibberish.
Picture:
http://i.imgur.com/6hGK1Ku.pngDelete all of it - you don't need it.
So, now you should have a blank notepad window with the filename "Chatlog Archiver.ahk".
Picture:
http://i.imgur.com/m5UwqHz.png
Now, copy and paste this into the file:
WinWait, GTA: San Andreas
WinWaitClose
FileMove, C:\Users\your username\Documents\GTA San Andreas User Files\SAMP\chatlog.txt, C:\Users\your username\Documents\GTA San Andreas User Files\SAMP\Chatlog backups\Chatlog %A_YYYY%-%A_MM%-%A_DD% %A_Hour%-%A_Min%-%A_Sec%.txt
Run Chatlog Archiver.ahk
return
Replace BOTH your username fields with your computer username. If you have Word Wrap switched off, you'll need to scroll to the right to see the second one.
For example, my computer username is Kaze, so for me it would look like this:
WinWait, GTA: San Andreas
WinWaitClose
FileMove, C:\Users\Kaze\Documents\GTA San Andreas User Files\SAMP\chatlog.txt, C:\Users\Kaze\Documents\GTA San Andreas User Files\SAMP\Chatlog backups\Chatlog %A_YYYY%-%A_MM%-%A_DD% %A_Hour%-%A_Min%-%A_Sec%.txt
Run Chatlog Archiver.ahk
return
Click File > Save (or Ctrl + S, whichever you prefer) to save the file.
Double click the "Chatlog Archiver.ahk" file.Picture:
http://i.imgur.com/aLOEst9.pngYou should see an AutoHotkey icon appear in your system tray, and if you hover your mouse over it then it should show the name of the file.
Picture:
http://i.imgur.com/4XqUjtT.pngAnd that's it - it's ready to go. As long as this script is running, whenever you close SA:MP (the game window, not the server browser/launcher) or even if it crashes, "chatlog.txt" will be moved to "Chatlog backups" and renamed to the current time and date. An example new file name would be "Chatlog 2013-03-28 11-27-32.txt" (Chatlog year-month-day hour-minute-second.txt).
Picture:
http://i.imgur.com/Z5aQNlS.png
Requesting for this to be stickied!