Quote:
Originally Posted by hhk31257
hello,
there is an exploit where the player can hide himself.
we tested it on the latest cypher patch, and it works on every private server i know of.
file: (provided in pm to cypher)
and type
/social***** to hide
/social***** to unhide
(the stars are to cover the important part  )
scenario:
pk > hide > log out
hit > hide > hit > hide
|
You about this?
http://allcheats.ru/showpost.php?p=85348&postcount=97
Script for hLaPEx [(c) Hint]:
Code:
var
pck48:string;
hidden:boolean;
i,x,y:integer;
procedure Init;
begin
hidden:=false;
pck48:='';
randomize;
end;
procedure SendMsg(msg:string);
begin
buf:=#$4A;
WriteD(0);
WriteD(2);
WriteS('hLaPEx');
WriteS(msg);
SendToClient;
end;
begin
if FromServer then exit;
case ord(pck[1]) of
$1B:case ord(pck[2]) of
$05:
begin
SendMsg('Here I am ;)');
pck:=#$30;
hidden:=false;
end;
$06:
begin
if pck48='' then exit;
SendMsg('Invisible mode');
hidden:=true;
pck:=pck48;
i:=2;
x:=ReadD(i);
y:=ReadD(i);
x:=x+1000+round(random*200)-100;
y:=y+1000+round(random*200)-100;
buf:=pck;
WriteD(x,2);
WriteD(y,6);
pck:=buf;
end;
end;
$48:pck48:=pck;
$30:if hidden then pck:='';
end;
end.
Cypher, can you fix this in next AmpeD?