Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.83 KB | None | 0 0
  1. --[[-------------------------------------------------------------------------
  2. Welcome to the configuration!
  3. ---------------------------------------------------------------------------]]
  4.  
  5. -- SET NAME OF FIRST RANK
  6. firstrank = "Citizen"
  7.  
  8. -- At here, you type how many categories you need to have, for example, let's say we have a trooper ranking and a jedi ranking. We would want 2 categories.
  9. -- To add more categories, increase this number and add a number to the end of the table || CAP: 10 (Currently)
  10. categories = 4
  11.  
  12. -- Multi RP-Characters
  13. -- Currently only really supports 1 character, will add full support in future update.
  14. MultiCharacters = false
  15. MaxCharacters = 1
  16.  
  17. -- Do you want the ID in the nametag?
  18. id_in_name1 = true
  19.  
  20. -- SET RANKS FOR
  21. ranklist_group1 = {
  22. "", -- Exclude the first rank!
  23. }
  24.  
  25. ranklist_group2 = {
  26. "US Military PVT", -- Exclude the first rank!
  27. "US Military PFC",
  28. "US Military CPL",
  29. "US Military SGT",
  30. "US Military SSGT",
  31. "US Military SFC",
  32. "US Military MSG",
  33. "US Military SGM",
  34. "US Military 2LT",
  35. "US Military LT",
  36. "US Military CPT",
  37. "US Military MJR",
  38. "US Military LTCL",
  39. "US Military COL",
  40. "US Major General",
  41. "US Lieutenant General",
  42. "General of the Army",
  43. "US President",
  44. }
  45.  
  46. -- Remove the brackets to enable a second category. You can make as many categories as desired(to 10).
  47. ---------------------------------------------------------------------------
  48. id_in_name2 = true
  49. ranklist_group3 = {
  50. "Red Army PVT", -- Exclude the first rank!
  51. "Red Army PFC",
  52. "Red Army CPL",
  53. "Red Army SGT",
  54. "Red Army SSGT",
  55. "Red Army SFC",
  56. "Red Army MSG",
  57. "Red Army SGM",
  58. "Red Army 2LT",
  59. "Red Army LT",
  60. "Red Army CPT",
  61. "Red Army MJR",
  62. "Red Army LTCL",
  63. "Red Army COL",
  64. "Soviet Lieutenant General",
  65. "Soviet Army General",
  66. "Marshal of the Soviet",
  67. "General of the Soviet Union",
  68. }
  69. ---------------------------------------------------------------------------]]
  70. id_in_name3 = false
  71. ranklist_group4 = {
  72. "Schutze", -- Include the first rank!
  73. "Ober Schutze",
  74. "Ober Gefreiter",
  75. "Unter Offizier",
  76. "Unter Feldwebel",
  77. "Feldwebel",
  78. "Ober Feldwebel",
  79. "Stabs Feldwebel",
  80. "Leutnant",
  81. "Ober Leutnant",
  82. "Haupt Mann",
  83. "Major",
  84. "Oberst Leutnant",
  85. "Oberst",
  86. "General Leutnant",
  87. "General Der Infanterie",
  88. "General Oberst",
  89. "General-Feld Marschall",
  90. "Oberste Fuhrer",
  91. }
  92. -- Determines how long an ID is capable of being.
  93. NameMenu_IDLength = 4
  94.  
  95. -- Determines how long a name can be
  96. NameMenu_MaxLengthName = 10
  97. NameMenu_MinLengthName = 3
  98.  
  99. -- Sets up command permissions through ulx
  100. -- NOTE: Need to add more permission-based systems
  101. Enable_ULX = true
  102.  
  103. --[[-------------------------------------------------------------------------
  104. NAME LAYOUTS
  105. ---------------------------------------------------------------------------]]
  106. -- You can remove the id with
  107. -- mainname = ranklist_..category[rank].. " ".. nick
  108.  
  109. -- CURRENTLY, CHANGE IN SV_RANKSYSTEM LINE 146
  110.  
  111.  
  112. -- Banned phrases in names
  113. -- Careful with some phrases like "ass" which can ban the name Mass
  114. badphrases = {
  115. ["NotAllowed"] = {"fuck", "bitch", "faggot", "nigger", "test", "name", "cunt", "whore", "minge", "nigga", "jews"},
  116. }
  117.  
  118. --Fonts used in the derma menus
  119. if (CLIENT) then
  120. surface.CreateFont("hudheader2", {
  121. font = "roboto",
  122. size = 17,
  123. weight = 400,
  124. blursize = 0,
  125. scanlines = 0,
  126. antialias = true
  127. })
  128.  
  129. surface.CreateFont("hudheader21", {
  130. font = "roboto",
  131. size = 15,
  132. weight = 300,
  133. blursize = 0,
  134. scanlines = 0,
  135. antialias = true
  136. })
  137. end
  138.  
  139. -- Note to add, Multi-language support?
  140. NameMenu_SetNameText = "Set your Name"
  141.  
  142. NameMenu_InformationalText = "Welcome to The Spartan Army (TSA). In this panel, you will be setting your Nickname and ID, you will automatically be assigned the rest of your name and will be updated with your rank. If you wish to change your name in the future, you will need to contact a staff member about the change. Who will put you back in this panel."
  143.  
  144. NameMenu_ContinueText = "Continue"
  145.  
  146. -- This is the template name shown in the creation of your name
  147. NameMenu_StartingName = "Namehere"
  148.  
  149. -- Change range of numbers you wish players to see when they first see the name
  150. -- Default: 1001-9999
  151. NameMenu_StartingID = math.random(1001, 9999)
  152.  
  153. NameMenu_SetNickNameText = "Set your NICKNAME here. It must be a unique name, no numbers, spaces or special characters. Press enter after typing in your name."
  154.  
  155. NameMenu_Error_SpaceName = "Name has a space!"
  156. NameMenu_Error_InvalidSize = "Nickname invalid size."
  157. NameMenu_Error_Characters = "Invalid Character(s)!"
  158. NameMenu_Error_Banned = "Banned Phrase(s) Detected."
  159.  
  160. NameMenu_ConfirmName = "Click to CONFIRM Name, You can set your CloneID after."
  161.  
  162. NameMenu_IDInfo_Players = "Set your CloneID here. It needs to be a four digit number"
  163. NameMenu_IDInfo_FinalMessage = "Set your CloneID. Final name Check."
  164.  
  165.  
  166. if not( file.Exists( "rank_system/ranktable", "DATA" ) ) then
  167. file.CreateDir( "rank_system/ranktable" )
  168. print("[BlinkRank] Rank Table Localized")
  169. end
  170.  
  171. --[[-------------------------------------------------------------------------
  172. Make sure to remove the comments (--) to enable the additional ranks
  173. ---------------------------------------------------------------------------]]
  174. file.Write("rank_system/ranktable/ranktable_1.txt", util.TableToJSON( ranklist_group1, true ))
  175. file.Write("rank_system/ranktable/ranktable_2.txt", util.TableToJSON( ranklist_group2, true ))
  176. file.Write("rank_system/ranktable/ranktable_3.txt", util.TableToJSON( ranklist_group3, true ))
  177. file.Write("rank_system/ranktable/ranktable_4.txt", util.TableToJSON( ranklist_group4, true ))
  178.  
  179. print("[BlinkRank] Configuration loaded.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement