Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if SERVER then
- //################################################################################################################################################################
- //Config//
- //If this is set to TRUE, the addon will use MySql and not the local SQLLite.
- TP_useMySql = true
- //Insert MySql details, if useMySql is set to TRUE
- TP_mysql_hostname = ''
- TP_mysql_username = ''
- TP_mysql_password = ''
- TP_mysql_database = ''
- TP_mysql_port = 3306
- //Tablename. No need to change it.
- TP_SQL_table = 'bestplayers'
- // Open the Toplist with this KEY
- TP_key = KEY_F6
- //If you have an MySql Database, which is reachable from your webserver AND your GMOD Server, you can set this to true.
- //If a player opens the Toplist, he will see the toplist from your Webserver (faster) instead of the file (slower). The variable useMySql have to be TRUE.
- //For example if you wish to have the toplist on your server homepage like this: http://prntscr.com/6bakhh or this: http://prntscr.com/6bal5d
- TP_onlineMode = true
- //You need this only, if onlineMode is set to TRUE
- //URL to your webserver. Example: http://www.example.com
- TP_webserverURL = "http://viciousdonuts.site.nfoservers.com/bestplayers/index.php"
- //You need this only, if onlineMode is set to FALSE. If you have onlineMode = TRUE then edit config.php on your webserver to change the description.
- //Description in the infobox on the toplist site. For example you can list the rewards, that the player of the week becomes.
- TP_descritpion = "In the table, you can see the TOP 10 players of the actual week (from Monday to now). 'Player of the Week' is the player, who had the highest score in the previous week (Monday - Sunday). <br><br>Toplist reset: Every Monday."
- //You need this only, if onlineMode is set to FALSE.
- //Background of the toplist. Browse: http://all-free-download.com/free-vector/commercial-use-backgrounds.html
- TP_background = "http://ironsummitmedia.github.io/startbootstrap-stylish-portfolio/img/bg.jpg"
- //Set this to TRUE if this is a second Server, which runs this addon on the same Database-table. This is for preventing, that the reset runs twice.
- //If this is set to TRUE, the reset is disabled on this server, and will be executed on your primary server.
- TP_secondServer = true
- //Prints an additional message in the ServerConsole if the player disconnects. Example: 'Score+Time saved. (23 Score, 240 Seconds)'
- TP_displaySavedMsg = false
- //Here can you add more commands to open the Toplist:
- //Example: local TP_commands = {"!topplayers", "!top10players", "!topten"}
- TP_commands = {"!top", "!top10"}
- //Here can you add more commands to open the Toplist:
- TP_rank_commands = {"!rank"}
- //Prints every X seconds a message in the chat to promote the !top command.
- //You need ULX for this!
- TP_displayCommandAdverts = true
- //Every x seconds, the advert will be displayed
- TP_advertRepeatSeconds = 1000
- //Message, which will be displayed
- TP_advertMsg = "Are you one of the TOP players this week? Do you want to know? Type !top"
- //The color of the message. Default: (150,221,26) = lightgreen
- TP_advertColor = Color(150,221,26)
- //The servergroups, which can use the admin menu.
- //You can find this menu, if you type !top_admin or on the toplist in the bottom-right.
- TP_AdminGroups = {"superadmin", "owner"}
- //The stats of these usergroups will not be saved
- TP_ExcludedGroups = {}
- //If this is set to True, the player of the week will be added to a specified group
- //You need ULX for this!
- //You also need this addon: https://mega.co.nz/#!xgoiwKQD!7zk5jo8BD3Y81_L2O0Agay24v8t9g6Pw2EXVwpGM-z4 <- You need this version or it will not work. (-> Original Version: http://forums.ulyssesmod.net/index.php/topic,5953.0.html)
- TP_AddPOTWtoGroup = false
- //Only for these groups, the auto-promote is enabled
- TP_AllowedGroups = {"user"}
- //The player of the week will be added to this group
- TP_GroupToAdd = "potw"
- //If the player of the week should not be downranked after a week.
- //The rank after the downrank is the rank the player had before the uprank.
- TP_AddPermanent = false
- //Give the player an amount of PS Points if he/she is selected as 'Player of the week'
- TP_GivePointshopPoints = true
- //POINTSHOP 1
- //The amount of Points given to the player
- TP_PS1_Points = 5000
- //POINTSHOP 2
- //The amount of premiumPoints given to the player
- TP_PS_PremiumPoints = 5000
- //The amount of standardPoints given to the player
- TP_PS_Points = 5000
- //Config//
- //################################################################################################################################################################
- end
Add Comment
Please, Sign In to add comment