0 Members and 1 Guest are viewing this topic.
const COLOR = $FFFFFFFF;var RemovePassword: string;procedure ActivateServer();begin RemovePassword := ReadINI('soldat.ini','NETWORK','Game_Password',''); end;function OnPlayerCommand(ID: Byte; Text: string): boolean;begin if GetPiece(Text,' ',0) = '/pass' then begin if GetPiece(Text,' ',2) = '' then begin Command('/password '+GetPiece(Text,' ',1)); WriteConsole(ID,'Password has been changed to: '+GetPiece(Text,' ',1), COLOR); end; end; Result := false;end;procedure OnLeaveGame(ID, Team: byte; Kicked: boolean);begin if Numplayers = 1 then Command('/password ' +RemovePassword);end;
Full Description:Usage command /pass allows you to set a password (available for players)When the last player leaves the server, he remove the password.
Posted by: Bonecrusher« on: Today at 04:50:10 am » Insert QuoteQuoteFull Description:Usage command /pass allows you to set a password (available for players)When the last player leaves the server, he remove the password.dont make me mute you dude