Screamer

Admin marker position

5 posts in this topic

Hi

I'm trying to write script showing admin (me) marker for all players on map.

For some reason _test =  getPos player;  return my cords

but when I'm trying to use in createMarker then nothing happened :(

private["_test"];
_test =  getPos player;
_markerS = createMarker ["_markerS", _test];
_markerS setMarkerColor "ColorRed";
_markerS setMarkerType "mil_destroy";
_markerS setMarkerText 'Admin Convoy';

Where I have error ???

Please help :)

Share this post


Link to post
Share on other sites
Advertisement

ok I sorted out

not sure if this is nice or not but working ;)

_markerS = createMarker ["_markerS", [5000,5000]];
_markerS setMarkerColor "ColorRed";
_markerS setMarkerType "mil_destroy";
_markerS setMarkerText "Admin Convoy";

[] spawn {
while{not isnull Player} do {"_markerS" setmarkerpos getpos Player; sleep 5;};
};

 

please close thread :)

Share this post


Link to post
Share on other sites
Advertisement
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.