Script Name: Sub Admin Login
Script Description control admins commands and ip
Author: Rampage_Terranius (http://soldatcentral.com/index.php?page=profile&u=13)
Compile Test: (http://soldatcentral.com/images/pass.gif) Passed
Core Version: 2.6.3
Hosted by: Soldat Central - http://soldatcentral.com/ (http://soldatcentral.com/)
Full Description:
This is a small subadmin script i made a while back due to admins abusing their powers it allows you to control what commands they may use and you can monitor the commands they do use
Sub Admin Script goes into the scripts folder
Admin goes into the servers root directory
In the folder Admin you create the admins files each area in the file must be in that exact same case Rampage and
rampage are different
here is an example of how to set it out
Rampage_Terranius.ini:
[Admin]
Password=c4ca4238a0b923820dcc509a6f75849b <------ this is obviously the password its an md5string so you will prob need to encrypt your own passes to set in here
SayRulesOnLogin=True <------ this is whether or not the rules will be stated to this admin True will say it any other value will not
OnlyOneIpAllowed=True <------ this is for if you want to lock the player to only one ip it can be very useful for stopping admins sharing their files but the down side is that if some one has a dynamic ip it will stop then from logging in
Ip=127.0.0.1 <------ this is the ip they are locked to using it doesnt need a value if OnlyOneIpAllowed is off
Chat= <--- if something is here then the player will be told this on loging in
NoBan= <--- if True then can not be banned
[Commands]
Allowed=/kick /ban /recompile /say /unban /kicklast /unbanlast /banlast /kill /pm <------ this is the commands this player is allowed to add more commands just simply add them in there make sure to have a space between each command and a / at the start of each
you can also use /subadmincreate (username) (password) to create a defult file in server which is generally the easier way to do it
to login a player will use /subadminlog (then the name of the file) (then the password in the file in this case the password is 1) after it will tell them the rules if SayRulesOnLogin = true then they must use /i accept to gain admin ship this is so that noobs cant say "but it didnt tell me the rules" they would of had to read the rules to know to use that command ;) thats pretty much it im sure ive messed up something in this script if u find a bug let me know
(http://soldatcentral.com/images/download.gif) (http://soldatcentral.com/dl.php?id=48&act=1)
(Size 2.52 KB)
- http://soldatcentral.com/index.php?page=script&f=48 -
** Script hosted by Soldat Central (http://soldatcentral.com/index.php?page=script&f=48)! Please visit the authors script page (http://soldatcentral.com/index.php?page=script&f=48) and Rate this script **
i plan to recode this script later on cause its a bit messed up but it works as is i figured i might as well release it to the public it might help someone at least
some of its a little messed up currently so sorry for that but it works for its purpose i plan to recode most of it tomorrow tho
Date Posted: October 03, 2008, 07:41:13 pm
i finally got around to recoding sub admin login so heres the new one
Script Name: Sub Admin Login
Script Description control admins commands and ip
Author: Rampage_Terranius (http://soldatcentral.com/index.php?page=profile&u=13)
Compile Test: (http://soldatcentral.com/images/pass.gif) Passed
Core Version: 2.6.3
Hosted by: Soldat Central - http://soldatcentral.com/ (http://soldatcentral.com/)
Full Description:
This is a small subadmin script i made a while back due to admins abusing their powers it allows you to control what commands they may use and you can monitor the commands they do use
I finally got around to fixing this script up and i might add more things to it still
Sub Admin is now using my Function Read and now organises all admin files into one single file for example coming from Admin/Admin.txt:
[Tyler]39c63ddb96a31b9610cd976b896ad4f0 1 0 127.0.0.1 1 1 [Chat]wicked sick[Allowed]/kick /ban /recompile /say /unban /kicklast /unbanlast /banlast /kill /pm[Tyler/]
[Brown]6f1ed002ab5595859014ebf0951522d9Â 1 0 127.0.0.1 1 1 [Chat]0[Allowed]/kick /ban /recompile /say /unban /kicklast /unbanlast /banlast /kill /pm[Brown/]
[Owns]6f1ed002ab5595859014ebf0951522d9 1 0 127.0.0.1 1 1 [Chat]0[Allowed]/kick /ban /recompile /say /unban /kicklast /unbanlast /banlast /kill /pm[Owns/]
[You]f850038cdc0d2f2820556b22f58c38b3 1 0 127.0.0.1 1 1 [Chat]0[Allowed]/kick /ban /recompile /say /unban /kicklast /unbanlast /banlast /kill /pm[You/]
It is set up alot differently from the old style
Place Admin folder in your soldat servers root directory
Admin.txt is where your admins are stored
Log.txt is all the logs of admin commands etc...
Place Sub Admin Script into the scripts folder
when you read the settings
0 = Off
1 = On
This is what each number etc means
[StartLoadHere]PassWord Say_Rules_At_Login  Only_One_Ip_Allowed  Ip_To_Force  Dont_Allow_player_To_Be_Banned  Log_This_Admins_Commands_Into_Log.txt  [LoadChatFromHere]What To Say To The Player When They Login (put 0 to disable this)[EndLoadHere]
You can use /subadmincreate username password to automatically create a file then modify from there the file will use your pre defined default settings that you set up in the script here
Const
//Defults for when creating an admin file
//0 = off
//1 = on
FileChat= '0';//what will be said to the player when they login put a 0 to disable it from chatting
SayRulesOnLogin= '1';//if the player will be told the rules when loging in
OnlyOneIpAllowed= '0';//i would suggest leaving this off and setting up the ips by hand
Ip= '127.0.0.1';//ip to be set in file i would suggest leaving this and setting this up by hand
NoBan= '1';//if on then the file will automaticaally be unbaned if banned
DefultCommands= '/kick /ban /recompile /say /unban /kicklast /unbanlast /banlast /kill /pm';//defult commands to be given to a created file
LogFilesCommands= '1';//if on then this admins commands will automatically be logged to the file Admin/Log.txt
(http://soldatcentral.com/images/download.gif) (http://soldatcentral.com/dl.php?id=48&act=1)
(Size 3.06 KB)
- http://soldatcentral.com/index.php?page=script&f=48 -
** Script hosted by Soldat Central (http://soldatcentral.com/index.php?page=script&f=48)! Please visit the author's script page (http://soldatcentral.com/index.php?page=script&f=48) and Rate this script **