alliedmodders/sourcemod — pull request #43 by hlstriker (2014-06-21 04:51:48+00:00)
Title: Added a new function SetFilePermissions to set permissions of a file.

I'm not sure about the Windows implementation. See this feature request: https://bugs.alliedmods.net/show_bug.cgi?id=6152