Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- nameStrings = {
- private ["_id","_name","_plr"];
- {
- _id = westPlayerStrings find _x;
- if !isNil _x then {
- _plr = call compile _x;
- if (!isNull _plr && isPlayer _plr) then {
- if alive _plr then {
- if (playerNames select _id == "Error: No unit") exitWith {};
- _name = name _plr;
- if (playerNames select _id != _name) then { playerNames set[_id, _name]; };
- };
- } else {
- if (playerNames select _id != "") then { playerNames set[_id, ""]; };
- };
- } else {
- //if (playerNames select _id != "") then { playerNames set[_id, ""]; };
- };
- } forEach westPlayerStrings;
- };
Add Comment
Please, Sign In to add comment