Author Topic: SubAdmin Script  (Read 4872 times)

0 Members and 1 Guest are viewing this topic.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
SubAdmin Script
« 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
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 :)

Offline HEX

  • Major
  • *
  • Posts: 77
  • =tNt=
    • SoldatX Brazilian Community
Re: SubAdmin Script
« Reply #1 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 :)
« Last Edit: April 30, 2007, 07:30:38 pm by HEX »



Offline chillis34

  • Major
  • *
  • Posts: 68
    • [FT] Clan Web Site
Re: SubAdmin Script
« Reply #2 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
I am the smartest :D

Offline dasilverguy

  • Major(1)
  • Posts: 40
    • |BTK| Forum
Re: SubAdmin Script
« Reply #3 on: July 14, 2008, 06:30:02 pm »
Does this work for 2.6.2?

Offline Costa

  • Major
  • *
  • Posts: 95
  • [.O']
    • -- Soldat
Re: SubAdmin Script
« Reply #4 on: July 15, 2008, 09:05:40 am »
I was looking for this, thanks.


Offline DemonicForces

  • Major(1)
  • Posts: 11
  • Evil?!?
Re: SubAdmin Script
« Reply #5 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  ???

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: SubAdmin Script
« Reply #6 on: September 27, 2008, 05:35:48 pm »
Quote
Core Version: 2.6.0

Im chill like that

Offline Irlandec

  • Soldier
  • **
  • Posts: 176
Re: SubAdmin Script
« Reply #7 on: April 19, 2009, 05:43:29 am »
EnEsCe , is it possible you up-date the script for the newest scriptcore?

Offline Haushinko

  • Major(1)
  • Posts: 1
Re: SubAdmin Script
« Reply #8 on: May 06, 2009, 03:24:17 pm »
broken link  :-\

Quote
EnEsCe , is it possible you up-date the script for the newest scriptcore?
²

Offline CurryWurst

  • Camper
  • ***
  • Posts: 265
    • Soldat Global Account System
Re: SubAdmin Script
« Reply #9 on: May 06, 2009, 03:38:43 pm »
I can offer you some scripts with a similar function...

Script Name         Author         File
SubAdminVykaClick
Sub Admin LoginRampage_TerraniusClick
LogInSystemMeClick


Make your decision :P
Soldat Global Account System: #soldat.sgas @ quakenet