Frontliner

Simple Player Marker System

32 posts in this topic

Simple Player Marker System:

playermarker.thumb.jpg.03d5950d6538e18e3

 

Create a init.sqf, Place the following into your init:

[] execVM "PlayerMarker.sqf";

Create a file named: PlayerMarker.sqf, place the following code into your file:

if(hasInterface)then{
[] spawn {
		waitUntil{uiSleep 0.2;!isNil "ExileClientPlayerScore"};//wait for player to load
		_playerPos = createMarkerLocal ["PlayerPOS", position player];//create marker
		"PlayerPOS" setMarkerTextLocal "You";
		"PlayerPOS" setMarkerTypeLocal "hd_destroy";
		"PlayerPOS" setMarkerColorLocal "ColorRed";
		while{true}do{
			waitUntil {uiSleep 0.2;visibleMap};//update marker only while map is open
			"PlayerPOS" setMarkerPosLocal position player;
		};
	};
};

Save it and place them into your mp mission folder.

 

First of all: i did not created this script, Im just sharing it, If i knew the orginal creator i would have placed his name on top of this topic.

Second: These BE filters are ment for Epoch, And im to lazy to investigate wich filters i add'd to prevent kicking.

Third: I noticed there was a similar script release on the old exile forum.(not quite similar it had a green dot, Instead of a red cross)

 

A quick and easy way for adding the filters yourself. (Tha Nooby way, But it works! :P )

When gettings kicked:

05.04.2015 21:14:08: Frontliner (IP of your server.) (your guid or player guid) - #26 "player;player
forceAddUniform"U_O_PilotCoveralls";player addBackpack "B_Carryall_mcamo";player addHeadGear "H_Bandanna_mcamo";"

A second .txt file is created in your battleeye filter folder, In this case its my script.txt file.

In script.txt always count +2 on the kick number you recieve, In this case its #26, Add +2 so its line 28, Then add the following line to 28:

!="player;player forceAddUniform"U_O_PilotCoveralls";player addBackpack "B_Carryall_mcamo";player addHeadGear "H_Bandanna_mcamo";"

Note: Dont forget the !=

 

Im not pro in creating filters, There is a easy way for this, If you want to learn how to, Use google or Read:

 

 

 

 

 
 

Share this post


Link to post
Share on other sites
Advertisement

with this you see your group:

 

/*
playerMarker.sqf

*/
private["_markers","_members"];
_markers = [];
_members = [];

while {true} do {
    sleep 0.5;
    if(visibleMap) then {
        _members = units (group player);
        //Create markers
        {
            _marker = createMarkerLocal [format["%1_marker",_x],visiblePosition _x];
            _marker setMarkerColorLocal "ColorRed";
            _marker setMarkerTypeLocal "Mil_dot";
            _marker setMarkerTextLocal format["%1", _x getVariable["realname",name _x]];
        
            _markers pushBack [_marker,_x];
        } foreach _members;
            
        while {visibleMap} do {
            {
                private["_marker","_unit"];
                _marker = _x select 0;
                _unit = _x select 1;
                if(!isNil "_unit") then {
                    if(!isNull _unit) then {
                        _marker setMarkerPosLocal (visiblePosition _unit);
                    };
                };
            } foreach _markers;
            if(!visibleMap) exitWith {};
            sleep 0.02;
        };

        {deleteMarkerLocal (_x select 0);} foreach _markers;
        _markers = [];
        _members = [];
    };
};

  • Like 3

Share this post


Link to post
Share on other sites

Sorry i have to ask..

With the Script from ReMus, can i see my own player when i'm not in a group?

Do i need both scripts for my marker and the group marker or only the one from ReMus and see me and my Group on the map?

Thx.

€dit: I tested the Script from ReMus. It shows the own player and the players of the group! Works great! Thx!

Edited by xtr3m3
  • Like 1

Share this post


Link to post
Share on other sites

Thanks for posting this Frontline, it's a useful addition especially on bigger maps.

For those interested, you can change the style of the displayed information and colour as well;

"PlayerPOS" setMarkerColorLocal "ColorRed";

This is the colour of the marker and you can make this what you like within reason - I prefered green - so it changes to "ColorGreen"

"PlayerPOS" setMarkerTypeLocal "hd_destroy";

This is the type of marker used - I prefer a dot - so "hd_destroy" would be "dot"

Although the CFG marker information is mainly related to A2, most of it applies to A3 and can be found here.

 

Share this post


Link to post
Share on other sites

Sorry i have to ask..

With the Script from ReMus, can i see my own player when i'm not in a group?

Do i need both scripts for my marker and the group marker or only the one from ReMus and see me and my Group on the map?

Thx.

€dit: I tested the Script from ReMus. It shows the own player and the players of the group! Works great! Thx!

Hi, sorry I too have to ask, tried a few ways to add this but not getting any markers, any possibility that you could explain what you did, normally dont have any issues, but I can't get it working.

Share this post


Link to post
Share on other sites

Hi!

Create a init.sqf in your root of the mpmissions folder.

Paste this in the file:

[] execVM "custom\playermarker.sqf";

Then create a folder: custom in the root dir of the mpmissions folder.

There you create a file with the name: playermarker.sqf

Paste this in the file:

/*
playerMarker.sqf

*/
private["_markers","_members"];
_markers = [];
_members = [];

while {true} do {
    sleep 0.5;
    if(visibleMap) then {
        _members = units (group player);
        //Create markers
        {
            _marker = createMarkerLocal [format["%1_marker",_x],visiblePosition _x];
            _marker setMarkerColorLocal "ColorGreen";
            _marker setMarkerTypeLocal "Mil_dot";
            _marker setMarkerTextLocal format["%1", _x getVariable["realname",name _x]];
        
            _markers pushBack [_marker,_x];
        } foreach _members;
            
        while {visibleMap} do {
            {
                private["_marker","_unit"];
                _marker = _x select 0;
                _unit = _x select 1;
                if(!isNil "_unit") then {
                    if(!isNull _unit) then {
                        _marker setMarkerPosLocal (visiblePosition _unit);
                    };
                };
            } foreach _markers;
            if(!visibleMap) exitWith {};
            sleep 0.02;
        };

        {deleteMarkerLocal (_x select 0);} foreach _markers;
        _markers = [];
        _members = [];
    };
};

Thats all i did. Repack the mpmissions file and start the server. Do you use, BE or/and Infistar, maybe you must add some filters.

Edited by xtr3m3
  • Like 3

Share this post


Link to post
Share on other sites

Many thanks xtr3m3, that is basically what I had except i did not have it in a custom folder, but it works perfect now, Maybe I had a one of those moments lol.

 

Again much appreciated

  • Like 1

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.