Hello! This is the devlog and official documentation of Scandinavian Scripters Administration Commands (SS Admin)
Get it here - SS Administrator Commands
VERSION - 0.2.0
- Release
- No Paid Access - 0 Robux Cost
- Easy to set up!
How to set up:
- Get the model
- Put in in Roblox Studio
- See the string values highlighted in purple? Change those values to your admins names.
I am sure more than 70 percent of the people reading this are wondering if there is a way to add more than 2 admins. And yes there is!
How to add more than one admin
-
WARNING | DO NOT, AND I REPEAT DO NOT MESS WITH THE CODE! It can severely harm your game (in terms of admin commands.)
-
See where it says “SSAdminCmds” in the SS Admin Folder, you should have put in workspace? Go into the script. Line 8 & 9 have table.insert statements. Add another statement like I did below.
table.insert(Admins, tostring(game.Workspace.SSAdmin.Admin3.Value))
Do that, but with the name of your admin value. Remember, you must change the number at the end to match the number on the table.insert statement. Also, there cannot be to values with the same name as it will break. Just leave them in workspace, and the the game will work itself!
Now, I am sure you guys are expecting that this is just an admin commands with a few commands. NO! This is COMPLETELY Customizable. The only thing we do NOT want you to mess with is the code & the embedded icons. That’s part of our signature, and you cannot get the ui without that. Also, there will be errors because our commands expect you to have the ui. Leave the ui in the folder.
HOW TO ADD COMMANDS
Go to line 210 in the SSAdminCmds script. Drop down a couple lines. Start writing your code! first do as I did:
commands.warn = function(sender, arguments)
end
Instead of warn, do your command name! Now we are going to call a print command that will tell our output if the command was ran by an admin. This will be useful in your testing to see how far your code got if there was any errors! Now write the following:
commands.warn = function(sender, arguments)
print("Warn Command Fired By"..sender.Name)
end
Now lets begin finding our players. SS Admin has a function set up for you! Do the following code!
commands.warn = function(sender, arguments)
print("Warn Command Fired By"..sender.Name)
local personToWarn = arguments[1]
local reasonToWarn = arguments[2]
if personToWarn then
local plr = findPlayer(personToWarn)
if plr then
end
end
end
Good job! We are almost done! Let’s actually fire something now! Do the following code! Reminder: In the release version (0.1.0) we are unable to do something like a warn command that the player has more than 1 word in their warn. Sorry about that! Lets finish our code!
commands.warn = function(sender, arguments)
print("Warn Command Fired By"..sender.Name)
local personToWarn = arguments[1]
local reasonToWarn = arguments[2]
if personToWarn then
local plr = findPlayer(personToWarn)
if plr then
local reason = tostring(reasonToWarn)
print(reasonToWarn)
local gui = Instance.new("Hint")
gui.Name = "hintmessage"
gui.Parent = plr.PlayerGui
gui.Text = reason
wait(5)
gui:Destroy()
end
end
end
THIS IS AN OPTIONAL STEP
If you want to add your command to the gui, put the commands gui in the starter gui for a second and enable it. Do not worry about positioning, we do that all for you!
After you are done, move it back into the folder! Aswell, make sure it is disabled!
UPDATE LOG
Changed the ui, nothing crazy.
Hope you guys learnt a thing or two from today and I will see you guys around! Cya!