Guest User

Untitled

a guest
Jan 22nd, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. nameStrings = {
  2. private ["_id","_name","_plr"];
  3. {
  4. _id = westPlayerStrings find _x;
  5. if !isNil _x then {
  6. _plr = call compile _x;
  7. if (!isNull _plr && isPlayer _plr) then {
  8. if alive _plr then {
  9. if (playerNames select _id == "Error: No unit") exitWith {};
  10. _name = name _plr;
  11. if (playerNames select _id != _name) then { playerNames set[_id, _name]; };
  12. };
  13. } else {
  14. if (playerNames select _id != "") then { playerNames set[_id, ""]; };
  15. };
  16. } else {
  17. //if (playerNames select _id != "") then { playerNames set[_id, ""]; };
  18. };
  19. } forEach westPlayerStrings;
  20. };
Add Comment
Please, Sign In to add comment