Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_autoclicker.sqf
- Description: Dose What it Says
- */
- ClicksPerSecond = 0;
- lastlogging = 0;
- clickingstarted = false;
- (findDisplay 46) displayAddEventHandler ["MouseButtonDown",{
- _this spawn {
- ClicksPerSecond = ClicksPerSecond + 1; clickingstarted = true;
- if (ClicksPerSecond < 0) then {ClicksPerSecond = 0;};
- uisleep 1; ClicksPerSecond = ClicksPerSecond - 1;
- if (ClicksPerSecond >= 11 && clickingstarted) then {
- clickingstarted = false;
- if ((lastLogging + 5) < time) then {
- lastLogging = time;
- _uid = getPlayerUID player;
- _name = name player;
- [_name,_uid,ClicksPerSecond] remoteExec ["life_fnc_autoclicker",2];
- diag_log format ["매크로 사용 감지: %1 - %2 1초당 %3회 클릭됨",_uid,_name,ClicksPerSecond];
- disableUserInput true;
- [0,"STR_ISTR_AutoClicker",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT];
- CASH = 0;
- [] call SOCK_fnc_updatePartial;
- {
- missionNamespace setVariable [ITEM_VARNAME(configName _x), 0];
- } forEach ("true" configClasses (missionConfigFile >> "VirtualItems"));
- sleep 2;
- life_thirst = 0;
- life_hunger = 0;
- hint "매크로를 사용하여 현금이 모두 삭제되었습니다.";
- sleep 5;
- ["AutoClicker",false,true] call BIS_fnc_endMission;
- };
- };
- if (ClicksPerSecond < 0) then {ClicksPerSecond = 0;};
- }}];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement