Jump to content

Workshop scripts for CS:GO


crunkinshoe

Recommended Posts

You can use this to install maps:

Operating System: Any
Description: Move map to /csgo/maps/
Script Engine: IronPython
Event: After Workshop Content Installed
Ignore execution errors: Unchecked

from System.IO import File
if File.Exists(FileNameSavePath):
    try:
        File.Move(FileNameSavePath, ThisService.RootDirectory + 'csgo/maps/' + FileNameNoPath)
    except IOError, e:
        raise Exception("Failed to move %s, error was:\n%s" % ('csgo/maps/' + FileNameNoPath, e))

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use