Draw On Map
So I was talking on a stream with rustler and he said "you have no skill " , " you made a fake skype", "paying someone to make you scripts" .
So here you go rustler .
rustler's bf "boomdead" was also attacking me.
Have fun when ever rustler shows off any scripts I'll make them and post them on here.
So here you go rustler .
Code:
fnc_marker_keyDown_EH = {
private ["_control","_random","_pos3d","_mrkr"];
_control = ((findDisplay 12) displayCtrl 51);
_mouseCursorPositionX = _this select 1;
_mouseCursorPositionY = _this select 2;
_random = str(ceil(random 999999));
_pos3d = _control posScreenToWorld [_mouseCursorPositionX,_mouseCursorPositionY];
_mrkr = createMarker [_random,_pos3d];
_mrkr setMarkerType "DestroyedVehicle";
_mrkr setMarkerText " ";
_mrkr setMarkerColor ("ColorRed");
};
fnc_map_mouseButtonDblClick_EH = {
if (isNil "MouseMovingEHactive") then {MouseMovingEHactive = 0;};
if (MouseMovingEHactive == 0) then {
MouseMovingEHactive = 1;
((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["MouseMoving", "_this call fnc_marker_keyDown_EH"];
} else {
MouseMovingEHactive = 0;
((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers "MouseMoving";
};
};
if (isNil "MouseClickEH") then {MouseClickEH = 0;};
if (MouseClickEH == 0) then {
MouseClickEH = 1;
systemChat "Draw on map enabled";
waitUntil {sleep 0.1;(visibleMap)};
systemChat "Click on map to start drawing! Click again to stop drawing!";
((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["MouseButtonClick", "_this call fnc_map_mouseButtonDblClick_EH"];
} else {
MouseClickEH = 0;
((findDisplay 12) displayCtrl 51) ctrlRemoveAllEventHandlers "MouseButtonClick";
systemChat "Draw on map disabled";
};
Have fun when ever rustler shows off any scripts I'll make them and post them on here.


