^^^ Rate this script!
[/b][/u]
Script Name: SubAdmin
Script Description: Define custom admin logins with limited access to some commands.
Original Author(s): Nick "EnEsCe" Cooper
Core Version: 2.6.0---------
Well, basically this script will let you define custom admin logins with limited access to some commands.... For example, you can make a password "imso1337" and set it to only be able to use the /map and /password commands.
Installation:1. Download the ZIP Archive from
my website2. Extract the contents of the ZIP to your Dedicated Server /scripts/ folder
3. Open admins.ini and edit the line that says Password=mysubadminpass
4. Add any commands you want this admin to be able to use next to Access=
5. Wash, rinse, clean, run server.
Multiple SubAdmins:1. Open admins.ini
2. Create a new line and title it [ADMIN#] (Replace # with a number from 1-20)
3. Copy the fields from an existing admin entry and customize as necessary.
Usage ingame:1. Type /login PASSWORD (Replace PASSWORD duh)
2. A message will display if your password is correct.
3. Type commands as a normal admin would, if you are not allowed to access the command you typed, a message will be shown in the console.
Code:procedure ActivateServer();
var
i: Integer;
begin
for i := 1 to 20 do begin
if ReadINI('scripts/admins.ini','ADMIN'+inttostr(i),'Enabled','false') = 'true' then begin
SubAdmin[i].Password := ReadINI('scripts/admins.ini','ADMIN'+inttostr(i),'Password','');
SubAdmin[i].Access := ReadINI('scripts/admins.ini','ADMIN'+inttostr(i),'Access','');
end;
end;
for i := 1 to 32 do HasSubAdmin[i].IsAdmin := false;
end;
------------------------------------ File chopped
Download from http://enesce.com/?page=downloads&f=24 to view the rest.
NOTE: This is a teaser script for Soldat Dedicated Server 2.6.0! So dont try use it untill 2.6.0 gets released