I tried putting together a script to execute when players uses either action menu or Right-click option on a map or something similar (you get the idea), that counts players in a X meters radius and hint them the amount.
However, I would like to make it only usable once every 5 minutes (or any other time lapse) and I do not know how to do it...
Once this is done I will release it on the Server mods corner even though it's nothing big ;) just for some new features some people loved on my server (instead of keeping track of the players in your area over the debug monitor).
Any help/recommendation/modification suggestion is welcome!
Here is the first version of the code I put together fast yesterday:
/* Player count in area script by FragZ You can make this script execute over action menu or with right-click option in the extra_rc.hpp You can also execute it over a trigger to make a pvp zone that counts participants! */ //Change 1300 to whatever distance you want the script to check for alive players _playercount = (({isPlayer _x} count (getPos vehicle player nearEntities [['AllVehicles'], 1300]))-1); uisleep 3; if (_playercount == 0) then { cutText ["You are currently the only human in your area.", "PLAIN DOWN"]; }; if (_playercount = 1) then { cutText ["There is one other human in your area.", "PLAIN DOWN"]; }; if (_playercount > 1) then { cutText ["There are %1 in your area!", "PLAIN DOWN"]; };
NOTE: I might have got some syntax errors I was pretty wasted writing this xD