Author Topic: Info about concurrent password!  (Read 1016 times)

0 Members and 1 Guest are viewing this topic.

Offline Vyka

  • Major
  • *
  • Posts: 59
Info about concurrent password!
« on: November 01, 2008, 09:39:00 am »
Script Name: Concurrent password
Script Description: if server has password use /passinfo to get information about password - simple script
Original Author(s): Vyka (Wykalaczka)
Core Version: 2.6.3

Code: [Select]
var
password: string;

function OnCommand(ID: Byte; Text: string): boolean;
begin
if MaskCheck(lowercase(Text),'/password*')=true then begin
password:=getpiece(text,' ',1);
end;
if MaskCheck(lowercase(Text),'/password')=true then begin
password:='There is no password!';
end;
if MaskCheck(lowercase(Text),'/passinfo')=true then begin
Writeln('Password: '+(password));
if ID<>255 then Writeconsole(ID,'Password: '+(password),$ff0000);
end;
end;

Offline homerofgods

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2029
  • We can do better!
Re: Info about concurrent password!
« Reply #1 on: November 01, 2008, 11:12:19 am »
nice :D

Offline Mr

  • Inactive Soldat Developer
  • Soldier
  • ******
  • Posts: 166
Re: Info about concurrent password!
« Reply #2 on: November 03, 2008, 01:18:34 am »
Nice, but you should read the password on startup from the soldat.ini, else the default password won't be shown.