Guest User

2rfq24rfrw2

a guest
Apr 11th, 2016
32
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.95 KB | None | 0 0
  1. if SERVER then
  2. //################################################################################################################################################################
  3. //Config//
  4. //If this is set to TRUE, the addon will use MySql and not the local SQLLite.
  5. TP_useMySql = true
  6.  
  7. //Insert MySql details, if useMySql is set to TRUE
  8. TP_mysql_hostname = ''
  9. TP_mysql_username = ''
  10. TP_mysql_password = ''
  11. TP_mysql_database = ''
  12. TP_mysql_port = 3306
  13.  
  14. //Tablename. No need to change it.
  15. TP_SQL_table = 'bestplayers'
  16.  
  17. // Open the Toplist with this KEY
  18. TP_key = KEY_F6
  19.  
  20. //If you have an MySql Database, which is reachable from your webserver AND your GMOD Server, you can set this to true.
  21. //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.
  22. //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
  23. TP_onlineMode = true
  24.  
  25. //You need this only, if onlineMode is set to TRUE
  26. //URL to your webserver. Example: http://www.example.com
  27. TP_webserverURL = "http://viciousdonuts.site.nfoservers.com/bestplayers/index.php"
  28.  
  29. //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.
  30. //Description in the infobox on the toplist site. For example you can list the rewards, that the player of the week becomes.
  31. 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."
  32.  
  33. //You need this only, if onlineMode is set to FALSE.
  34. //Background of the toplist. Browse: http://all-free-download.com/free-vector/commercial-use-backgrounds.html
  35. TP_background = "http://ironsummitmedia.github.io/startbootstrap-stylish-portfolio/img/bg.jpg"
  36.  
  37. //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.
  38. //If this is set to TRUE, the reset is disabled on this server, and will be executed on your primary server.
  39. TP_secondServer = true
  40.  
  41. //Prints an additional message in the ServerConsole if the player disconnects. Example: 'Score+Time saved. (23 Score, 240 Seconds)'
  42. TP_displaySavedMsg = false
  43.  
  44. //Here can you add more commands to open the Toplist:
  45. //Example: local TP_commands = {"!topplayers", "!top10players", "!topten"}
  46. TP_commands = {"!top", "!top10"}
  47.  
  48. //Here can you add more commands to open the Toplist:
  49. TP_rank_commands = {"!rank"}
  50.  
  51. //Prints every X seconds a message in the chat to promote the !top command.
  52. //You need ULX for this!
  53. TP_displayCommandAdverts = true
  54.  
  55. //Every x seconds, the advert will be displayed
  56. TP_advertRepeatSeconds = 1000
  57.  
  58. //Message, which will be displayed
  59. TP_advertMsg = "Are you one of the TOP players this week? Do you want to know? Type !top"
  60.  
  61. //The color of the message. Default: (150,221,26) = lightgreen
  62. TP_advertColor = Color(150,221,26)
  63.  
  64. //The servergroups, which can use the admin menu.
  65. //You can find this menu, if you type !top_admin or on the toplist in the bottom-right.
  66. TP_AdminGroups = {"superadmin", "owner"}
  67.  
  68. //The stats of these usergroups will not be saved
  69. TP_ExcludedGroups = {}
  70.  
  71. //If this is set to True, the player of the week will be added to a specified group
  72. //You need ULX for this!
  73. //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)
  74. TP_AddPOTWtoGroup = false
  75.  
  76. //Only for these groups, the auto-promote is enabled
  77. TP_AllowedGroups = {"user"}
  78.  
  79. //The player of the week will be added to this group
  80. TP_GroupToAdd = "potw"
  81.  
  82. //If the player of the week should not be downranked after a week.
  83. //The rank after the downrank is the rank the player had before the uprank.
  84. TP_AddPermanent = false
  85.  
  86. //Give the player an amount of PS Points if he/she is selected as 'Player of the week'
  87. TP_GivePointshopPoints = true
  88.  
  89. //POINTSHOP 1
  90.  
  91. //The amount of Points given to the player
  92. TP_PS1_Points = 5000
  93.  
  94. //POINTSHOP 2
  95.  
  96. //The amount of premiumPoints given to the player
  97. TP_PS_PremiumPoints = 5000
  98.  
  99. //The amount of standardPoints given to the player
  100. TP_PS_Points = 5000
  101.  
  102. //Config//
  103. //################################################################################################################################################################
  104. end
Add Comment
Please, Sign In to add comment