Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.71 KB | None | 0 0
  1. // /*realname Setter*/---------------------------------------------------------------------------------------------------------
  2.  
  3. private _tagunit = (group player) getVariable ["gang_tag",""];
  4. private _realName = call {
  5.   if (playerSide isEqualTo west) exitWith {format ["[Polizei] %1", profileName];};
  6.   if (playerSide isEqualTo independent) exitWith {format ["[Rettungsdienst] %1", profileName];};
  7.   if ((playerSide isEqualTo civilian) && (count _tagunit > 0)) exitWith {format["[%1] %2",_tagunit,profileName];};
  8.   profileName;
  9. };
  10.  
  11. player setVariable ["pname", _realName, true];
  12.  
  13. // ------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement