Jump to content
Sign in to follow this  
ANSWER

HOW Can I prohibit or forbid Map Marker System?

Recommended Posts

I want players to be forbiden(prohibited) to marking on map

there are ideas of mine

1.remove all marker by script every 1 sec

2.literally as the title, just make players cant use map marker system

3.ban players who uses marker from server

Share this post


Link to post
Share on other sites

What's the reason for that? You could remove side and global channels so players only can see their own markers.

Share this post


Link to post
Share on other sites

Try onMapSingleClick {true}; that should disable waypoint creation, not sure about markers, might need more complicating handling.

Edited by Killzone_Kid

Share this post


Link to post
Share on other sites

Concept idea, have a keydown display EH for action ShowMap, then while it is open disbale onMouseDoubleClick (or whatever it is) then re-enable it once the map has been closed.

Share this post


Link to post
Share on other sites

Neat problem OP :)

Couldn't get any of the relevant EHs to work sadly (onDoubleClick/onMouseButtonDblClick/etc), or even the onLoad/onUnloads ...

So, here is a spawned thread that will block the marker dialog:

if (isServer || isDedicated) exitWith {};
[] spawn {
private ["_display"];
block_markers = TRUE;
disableSerialization;
while {block_markers} do {
	waitUntil {_display = uiNamespace getVariable ["RscDisplayInsertMarker", displayNull]; !isNull _display};
	_display closeDisplay 0;
};
};

Credit: Tonic.

There is a similar code block in his Spyglass anti-hack system (fn_menuCheck), this is just boiled down to simply detect the dialog and close it.

Share this post


Link to post
Share on other sites
Concept idea, have a keydown display EH for action ShowMap, then while it is open disbale onMouseDoubleClick (or whatever it is) then re-enable it once the map has been closed.

that is pretty nice,but could be buggy.

---------- Post added at 07:33 ---------- Previous post was at 07:25 ----------

What's the reason for that? You could remove side and global channels so players only can see their own markers.

i need channels for spare to speak because my community teamspeak server is not stable

---------- Post added at 07:37 ---------- Previous post was at 07:33 ----------

Neat problem OP :)

Couldn't get any of the relevant EHs to work sadly (onDoubleClick/onMouseButtonDblClick/etc), or even the onLoad/onUnloads ...

So, here is a spawned thread that will block the marker dialog:

if (isServer || isDedicated) exitWith {};
[] spawn {
private ["_display"];
block_markers = TRUE;
disableSerialization;
while {block_markers} do {
	waitUntil {_display = uiNamespace getVariable ["RscDisplayInsertMarker", displayNull]; !isNull _display};
	_display closeDisplay 0;
};
};

Credit: Tonic.

There is a similar code block in his Spyglass anti-hack system (fn_menuCheck), this is just boiled down to simply detect the dialog and close it.

hm.. ok i'll check and make a use of it later thank you

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×