function LoggedInFailsafe: Boolean;
Its mainly made for SMART uses and sometimes when you lag SMART flashes and sometimes scripts say your logged out even if your not, this was just made to reduce the risk of it happening.
SCAR Code:
function LoggedInFailsafe: Boolean;
var
Tries: Integer;
begin
while not (GetColor(532, 74) = 3951443) do
begin
wait(500);
Inc(Tries);
if (Tries >= 5) then
begin
Result := False;
srl_Warn('LoggedInFailsafe', 'Player is believed to be logged out', warn_Debug);
exit;
end;
end;
Result := True;
end;
Evilchickens posted one:
SCAR Code:
function LoggedInFailsafe: Boolean;
begin
Result := WaitColor(532, 74, 3951443, 0, 2500);
if (not Result) then
srl_Warn('LoggedInFailsafe', 'Player is believed to be logged out', warn_Debug);
end;