12.09.2012, 07:01
For the first question, I wouldn't see the point of calling OnPlayerDisconnect when the filterscript exits, it could seriously screw up other things in your code (it's probably done to save all players but you should make a custom function for that) , just close the database if you're not going to be loading and unloading the filterscript constantly.
For the second question, you do need db_escape if you're saving any user input other than someone's name. Hackers could use crafted inputs to select, delete, insert or modify data in your database.
For the second question, you do need db_escape if you're saving any user input other than someone's name. Hackers could use crafted inputs to select, delete, insert or modify data in your database.