I tried this by myself, but I couldn't write it, it seems to be easy tho... :-\
Here is the deal :
There is a script that shows the mapcoords in a hint,chat or radio message . Find it
HEREWhat I want is that those mapcoords automatically are displayed each 30 sec or so but only if the leader of your group moves into a new sector.
So the first time the script runs, the coords should be shown because you need something to compare.
I was thinking about putting these coords into an array like _coords1
, wait 30sec, check the coords again and put them into another array like _coords2, compare each element of the two arrays and when the are the same don't display thez coords on screen.
So only when the coords are different.
Each element in the arrays are strings.
eg : ["BF","15"]
I think there is problem with comparing the strings with eachother...
Some ideas?