Difference between revisions of "Actions:sourcemod"

From PrometheusIPN Wiki
Jump to: navigation, search
(Created page with "====== SourceMod ======")
 
(SourceMod)
Line 1: Line 1:
====== SourceMod ======
+
====== SourceMod Integration '''BETA''' ======
 +
 
 +
 
 +
== Installation ==
 +
 
 +
* Drag and drop the '''addons''' folder to your game's root directory.
 +
* Restart the server.
 +
 
 +
 
 +
== Configuration ==
 +
Once the plugin has been loaded, it will automatically generate "Prometheus.cfg" in your <game>/cfg/sourcemod/ folder. Edit it to your liking.
 +
 
 +
* '''sm_prometheus_broadcast'''
 +
** You have the option to use these two arguments #PLAYER_NAME for the donator's steam name, and #DONATION_AMOUNT for how much they donated (ex: 9.99).
 +
Furthermore, you can add color to the broadcast message. The full list of color tags can be found here: [https://www.doctormckay.com/morecolors.php]
 +
Example: {fullred}[Prometheus] {haunted}#PLAYER_NAME {honeydew}has donated {haunted}$#DONATION_AMOUNT{honeydew}! Thank you!
 +
 
 +
* '''sm_prometheus_checkinterval'''
 +
** This CVAR specifies the time in seconds in which the plugin checks to see if the donator's ranks have expired.
 +
For example, every 600 seconds (10 minutes) it checks all users who have donated to see if their rank has expired.
 +
 
 +
* '''sm_prometheus_mode'''
 +
** This CVAR tells the plugin where (and how) to store the donator (Flatfile or MySQL). Keep in mind that Prometheus uses the default sourcemod admin management plugins to work correctly (Sourcebans is not supported yet).
 +
 
 +
 
 +
'''FLATFILE:'''
 +
1) You will need to ensure that your "admin-flatfile.smx" plugin exists in addons/sourcemod/plugins/ folder.
 +
2) Edit addons/sourcemod/configs/admins.cfg file and make sure that it has "Admins" on the first line, a { on the second line, and a } on the last line.
 +
 
 +
'''MYSQL:'''
 +
1) Make sure your MySQL database is set up properly in addons/sourcemod/configs/databases.cfg
 +
- Prometheus uses the "default" connection info, however if you do not want this plugin to use the "default" connection info, add an aditional one and name it "prometheus".
 +
2) Update your admin tables! Move addons/sourcemod/plugins/disabled/sql-admin-manager.smx to your plugins folder.
 +
3) Restart the server, and run the command "sm_create_adm_tables" from your server console. For MySQL, your database must have CREATE and ALTER permissions.
 +
4) Ensure that you are using "admin-sql-threaded.smx" in your addons/sourcemod/plugins/ folder.
 +
- If it is not present, it should be in the addons/sourcemod/plugins/disabled/ folder.

Revision as of 21:19, 15 August 2015

SourceMod Integration BETA

Installation

  • Drag and drop the addons folder to your game's root directory.
  • Restart the server.


Configuration

Once the plugin has been loaded, it will automatically generate "Prometheus.cfg" in your <game>/cfg/sourcemod/ folder. Edit it to your liking.

  • sm_prometheus_broadcast
    • You have the option to use these two arguments #PLAYER_NAME for the donator's steam name, and #DONATION_AMOUNT for how much they donated (ex: 9.99).

Furthermore, you can add color to the broadcast message. The full list of color tags can be found here: [1] Example: {fullred}[Prometheus] {haunted}#PLAYER_NAME {honeydew}has donated {haunted}$#DONATION_AMOUNT{honeydew}! Thank you!

  • sm_prometheus_checkinterval
    • This CVAR specifies the time in seconds in which the plugin checks to see if the donator's ranks have expired.

For example, every 600 seconds (10 minutes) it checks all users who have donated to see if their rank has expired.

  • sm_prometheus_mode
    • This CVAR tells the plugin where (and how) to store the donator (Flatfile or MySQL). Keep in mind that Prometheus uses the default sourcemod admin management plugins to work correctly (Sourcebans is not supported yet).


FLATFILE: 1) You will need to ensure that your "admin-flatfile.smx" plugin exists in addons/sourcemod/plugins/ folder. 2) Edit addons/sourcemod/configs/admins.cfg file and make sure that it has "Admins" on the first line, a { on the second line, and a } on the last line.

MYSQL: 1) Make sure your MySQL database is set up properly in addons/sourcemod/configs/databases.cfg - Prometheus uses the "default" connection info, however if you do not want this plugin to use the "default" connection info, add an aditional one and name it "prometheus". 2) Update your admin tables! Move addons/sourcemod/plugins/disabled/sql-admin-manager.smx to your plugins folder. 3) Restart the server, and run the command "sm_create_adm_tables" from your server console. For MySQL, your database must have CREATE and ALTER permissions. 4) Ensure that you are using "admin-sql-threaded.smx" in your addons/sourcemod/plugins/ folder. - If it is not present, it should be in the addons/sourcemod/plugins/disabled/ folder.