Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Creating and saving files

Maximiliano Jabase edited this page Oct 3, 2021 · 1 revision

New files

You can go to File -> New or press the default hotkey Ctrl + N to create a new empty SourcePawn script and open it in the editor. The file will be created at the root of your selected config directory.

New from Template

You can go to File -> New from Template or press the default hotkey Ctrl + Shift + N to create a new script from a pre-made template.

In the Templates window, you can select all kinds of templates from which to start your new script from. Select one, give your new script a location and a name, and hit 'Save' to create it.

Here, you can also add new templates, and edit or delete existing ones. Just right click on any template and select the option you desire.

Adding templates

Right click on any template and hit 'Add' to enter the template addition mode.

  • In the top text box, insert a name for your new template.
  • In the code editor, design your template.
  • In the bottom textbox, write the name that your script created based on that template will have by default.

After this, hit 'Save' to save your new template.

Editing templates

To edit a template, just right click on any template, hit 'Edit', and repeat the steps described in the 'Adding templates' explanation.

Deleting templates

To delete a template, right click on any template and hit 'Delete' to delete that template.