Advertisement
Guest User

Untitled

a guest
Jan 28th, 2020
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_autoclicker.sqf
  4. Description: Dose What it Says
  5. */
  6. ClicksPerSecond = 0;
  7. lastlogging = 0;
  8. clickingstarted = false;
  9.  
  10. (findDisplay 46) displayAddEventHandler ["MouseButtonDown",{
  11. _this spawn {
  12. ClicksPerSecond = ClicksPerSecond + 1; clickingstarted = true;
  13. if (ClicksPerSecond < 0) then {ClicksPerSecond = 0;};
  14. uisleep 1; ClicksPerSecond = ClicksPerSecond - 1;
  15. if (ClicksPerSecond >= 11 && clickingstarted) then {
  16. clickingstarted = false;
  17. if ((lastLogging + 5) < time) then {
  18. lastLogging = time;
  19. _uid = getPlayerUID player;
  20. _name = name player;
  21. [_name,_uid,ClicksPerSecond] remoteExec ["life_fnc_autoclicker",2];
  22. diag_log format ["매크로 사용 감지: %1 - %2 1초당 %3회 클릭됨",_uid,_name,ClicksPerSecond];
  23. disableUserInput true;
  24. [0,"STR_ISTR_AutoClicker",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT];
  25. CASH = 0;
  26. [] call SOCK_fnc_updatePartial;
  27. {
  28. missionNamespace setVariable [ITEM_VARNAME(configName _x), 0];
  29. } forEach ("true" configClasses (missionConfigFile >> "VirtualItems"));
  30. sleep 2;
  31. life_thirst = 0;
  32. life_hunger = 0;
  33. hint "매크로를 사용하여 현금이 모두 삭제되었습니다.";
  34. sleep 5;
  35. ["AutoClicker",false,true] call BIS_fnc_endMission;
  36. };
  37. };
  38. if (ClicksPerSecond < 0) then {ClicksPerSecond = 0;};
  39. }}];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement