Official Soldat Forums

Server Talk => Scripting Releases => Topic started by: Vyka on November 01, 2008, 09:39:00 am

Title: Info about concurrent password!
Post by: Vyka 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;
Title: Re: Info about concurrent password!
Post by: homerofgods on November 01, 2008, 11:12:19 am
nice :D
Title: Re: Info about concurrent password!
Post by: Mr 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.