Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: EnEsCe on March 02, 2007, 03:51:18 am

Title: SubAdmin Script
Post by: EnEsCe on March 02, 2007, 03:51:18 am
^^^ 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 website (http://enesce.com/?page=downloads&f=24)
2. 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:
Quote
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 :)
Title: Re: SubAdmin Script
Post by: HEX on April 30, 2007, 03:05:55 pm
Can you do a script that I would have the possibility to change the SubAdmins passwords using in-game commands if I know the administrator password?

for example:
1) I join the server.
2) Get admin status using "/adminlog PASSWORD"
3) Type /changesubadminpassword # OLDPASSWORD NEWPASSWORD (# is the number of the admin)

I would need it because I am admin from some servers which I don't have FTP access and sometimes I need to give admin status to untrustable(?) people.

Thanks!

edit: Doesn't matter anymore. I'll use mikembm's script. Thanks :)
Title: Re: SubAdmin Script
Post by: chillis34 on May 02, 2007, 09:02:01 pm
In the near future will you fix the conflict between the subadmin script and arrse i kinda need both running on the same server
Title: Re: SubAdmin Script
Post by: dasilverguy on July 14, 2008, 06:30:02 pm
Does this work for 2.6.2?
Title: Re: SubAdmin Script
Post by: Costa on July 15, 2008, 09:05:40 am
I was looking for this, thanks.
Title: Re: SubAdmin Script
Post by: DemonicForces on September 27, 2008, 04:59:00 pm
Is this Script still UPtoDate?
idk why but It crashes my Server ....
=> I would like to use it but I don't Works  ???
Title: Re: SubAdmin Script
Post by: Bonecrusher on September 27, 2008, 05:35:48 pm
Quote
Core Version: 2.6.0
Title: Re: SubAdmin Script
Post by: Irlandec on April 19, 2009, 05:43:29 am
EnEsCe , is it possible you up-date the script for the newest scriptcore?
Title: Re: SubAdmin Script
Post by: Haushinko on May 06, 2009, 03:24:17 pm
broken link  :-\

Quote
EnEsCe , is it possible you up-date the script for the newest scriptcore?
²
Title: Re: SubAdmin Script
Post by: CurryWurst on May 06, 2009, 03:38:43 pm
I can offer you some scripts with a similar function...

Script Name         Author         File
SubAdminVykaClick (http://forums.soldat.pl/index.php?action=dlattach;topic=33148.0;attach=19795)
Sub Admin LoginRampage_TerraniusClick (http://soldatcentral.com/dl.php?id=48&act=1)
LogInSystemMeClick (http://soldatcentral.com/dl.php?id=71&act=1)


Make your decision :P