Advertisement
Sanwi

Autokick for afk

Jul 31st, 2015
793
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. $${
  2.  
  3. #max_afk = 1200;
  4. #idle_counter = 0;
  5. do;
  6. if((KEY_SPACE) || (YAW != #yaw_anchor) || (PITCH != #pitch_anchor) || (XPOS != #x_anchor) || (YPOS != #y_anchor) || (ZPOS != #z_anchor));
  7. #idle_counter = 0;
  8.  
  9. #yaw_anchor = %YAW%;
  10. #pitch_anchor = %PITCH%;
  11. #x_anchor = %XPOS%;
  12. #y_anchor = %YPOS%;
  13. #z_anchor = %ZPOS%;
  14. elseif(#idle_counter > #max_afk);
  15. disconnect();
  16. stop();
  17. else;
  18. inc(#idle_counter,1);
  19. endif;
  20. loop;
  21.  
  22. stop();
  23. }$$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement