Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[-------------------------------------------------------------------------
- Welcome to the configuration!
- ---------------------------------------------------------------------------]]
- -- SET NAME OF FIRST RANK
- firstrank = "Citizen"
- -- 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.
- -- To add more categories, increase this number and add a number to the end of the table || CAP: 10 (Currently)
- categories = 4
- -- Multi RP-Characters
- -- Currently only really supports 1 character, will add full support in future update.
- MultiCharacters = false
- MaxCharacters = 1
- -- Do you want the ID in the nametag?
- id_in_name1 = true
- -- SET RANKS FOR
- ranklist_group1 = {
- "", -- Exclude the first rank!
- }
- ranklist_group2 = {
- "US Military PVT", -- Exclude the first rank!
- "US Military PFC",
- "US Military CPL",
- "US Military SGT",
- "US Military SSGT",
- "US Military SFC",
- "US Military MSG",
- "US Military SGM",
- "US Military 2LT",
- "US Military LT",
- "US Military CPT",
- "US Military MJR",
- "US Military LTCL",
- "US Military COL",
- "US Major General",
- "US Lieutenant General",
- "General of the Army",
- "US President",
- }
- -- Remove the brackets to enable a second category. You can make as many categories as desired(to 10).
- ---------------------------------------------------------------------------
- id_in_name2 = true
- ranklist_group3 = {
- "Red Army PVT", -- Exclude the first rank!
- "Red Army PFC",
- "Red Army CPL",
- "Red Army SGT",
- "Red Army SSGT",
- "Red Army SFC",
- "Red Army MSG",
- "Red Army SGM",
- "Red Army 2LT",
- "Red Army LT",
- "Red Army CPT",
- "Red Army MJR",
- "Red Army LTCL",
- "Red Army COL",
- "Soviet Lieutenant General",
- "Soviet Army General",
- "Marshal of the Soviet",
- "General of the Soviet Union",
- }
- ---------------------------------------------------------------------------]]
- id_in_name3 = false
- ranklist_group4 = {
- "Schutze", -- Include the first rank!
- "Ober Schutze",
- "Ober Gefreiter",
- "Unter Offizier",
- "Unter Feldwebel",
- "Feldwebel",
- "Ober Feldwebel",
- "Stabs Feldwebel",
- "Leutnant",
- "Ober Leutnant",
- "Haupt Mann",
- "Major",
- "Oberst Leutnant",
- "Oberst",
- "General Leutnant",
- "General Der Infanterie",
- "General Oberst",
- "General-Feld Marschall",
- "Oberste Fuhrer",
- }
- -- Determines how long an ID is capable of being.
- NameMenu_IDLength = 4
- -- Determines how long a name can be
- NameMenu_MaxLengthName = 10
- NameMenu_MinLengthName = 3
- -- Sets up command permissions through ulx
- -- NOTE: Need to add more permission-based systems
- Enable_ULX = true
- --[[-------------------------------------------------------------------------
- NAME LAYOUTS
- ---------------------------------------------------------------------------]]
- -- You can remove the id with
- -- mainname = ranklist_..category[rank].. " ".. nick
- -- CURRENTLY, CHANGE IN SV_RANKSYSTEM LINE 146
- -- Banned phrases in names
- -- Careful with some phrases like "ass" which can ban the name Mass
- badphrases = {
- ["NotAllowed"] = {"fuck", "bitch", "faggot", "nigger", "test", "name", "cunt", "whore", "minge", "nigga", "jews"},
- }
- --Fonts used in the derma menus
- if (CLIENT) then
- surface.CreateFont("hudheader2", {
- font = "roboto",
- size = 17,
- weight = 400,
- blursize = 0,
- scanlines = 0,
- antialias = true
- })
- surface.CreateFont("hudheader21", {
- font = "roboto",
- size = 15,
- weight = 300,
- blursize = 0,
- scanlines = 0,
- antialias = true
- })
- end
- -- Note to add, Multi-language support?
- NameMenu_SetNameText = "Set your Name"
- 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."
- NameMenu_ContinueText = "Continue"
- -- This is the template name shown in the creation of your name
- NameMenu_StartingName = "Namehere"
- -- Change range of numbers you wish players to see when they first see the name
- -- Default: 1001-9999
- NameMenu_StartingID = math.random(1001, 9999)
- 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."
- NameMenu_Error_SpaceName = "Name has a space!"
- NameMenu_Error_InvalidSize = "Nickname invalid size."
- NameMenu_Error_Characters = "Invalid Character(s)!"
- NameMenu_Error_Banned = "Banned Phrase(s) Detected."
- NameMenu_ConfirmName = "Click to CONFIRM Name, You can set your CloneID after."
- NameMenu_IDInfo_Players = "Set your CloneID here. It needs to be a four digit number"
- NameMenu_IDInfo_FinalMessage = "Set your CloneID. Final name Check."
- if not( file.Exists( "rank_system/ranktable", "DATA" ) ) then
- file.CreateDir( "rank_system/ranktable" )
- print("[BlinkRank] Rank Table Localized")
- end
- --[[-------------------------------------------------------------------------
- Make sure to remove the comments (--) to enable the additional ranks
- ---------------------------------------------------------------------------]]
- file.Write("rank_system/ranktable/ranktable_1.txt", util.TableToJSON( ranklist_group1, true ))
- file.Write("rank_system/ranktable/ranktable_2.txt", util.TableToJSON( ranklist_group2, true ))
- file.Write("rank_system/ranktable/ranktable_3.txt", util.TableToJSON( ranklist_group3, true ))
- file.Write("rank_system/ranktable/ranktable_4.txt", util.TableToJSON( ranklist_group4, true ))
- print("[BlinkRank] Configuration loaded.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement