Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Delphi 1.05 KB | None | 0 0
  1. procedure Escape();    // Реакция на игроков на споте
  2. const R = 77;   // радиус обнаружения
  3. var skill: TSkill; legit: TPlayer;
  4. begin
  5.   if (User.DistTo(c_Spot_x, c_Spot_y, c_Spot_z) < R-5)
  6.   and (PlayersInRangeOfSpotCount(R, c_Spot_x, c_Spot_y, c_Spot_z) > 0) then begin
  7.     Engine.SetGameWindow(true);      
  8.     if (Find_Another_Players) then Engine.Print('Обнаружен легит: '+legit.Name+ ', '+IntToStr(legit.Level)+' lvl,  дист: '+FToStr(User.DistTo(legit)), 128);
  9.     delay(222);      
  10.     Script.Suspend;
  11.       if  engine.dfastmoveto_zxc (598.14, 718.11, 157.94)then delay(10000);
  12.       if  engine.dfastmoveto_zxc (257.56, 765.76, 298.14)then delay(333);    
  13.     repeat
  14.       while (PlayersInRangeOfSpotCount(R, c_Spot_x, c_Spot_y, c_Spot_z) > 0) do delay(333);
  15.       delay(5000);
  16.     until (PlayersInRangeOfSpotCount(R, c_Spot_x, c_Spot_y, c_Spot_z) = 0);
  17.     if Engine.FastMoveTo_zxc(c_Spot_x, c_Spot_y, c_Spot_z) then delay(555);
  18.     delay(555);
  19.     Script.Resume;
  20.    Engine.SetGameWindow(false);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement