Advertisement
MaxenceTP

Untitled

Feb 26th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.59 KB | None | 0 0
  1. /*
  2. Author: Maxence Lyon
  3. Altis DEV: https://altisdev.com/user/maxence-lyon
  4. Teamspeak 3: ts.the-programmer.com
  5. Web site: www.the-programmer.com
  6. Steam: ยซ Une Vache Sur CS โ€“ Maxence ยป, please leave a message on my profile who says the exact reason before adding me.
  7.  
  8. Terms of use:
  9. - This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
  10. - If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
  11. - Out of respect for the author please do not delete this information.
  12.  
  13. License number:
  14. Server's name:
  15. Owner's name:
  16. */
  17. _licenses = param [0,[],[[]]];
  18. if (_licenses isEqualTo []) exitWith {};
  19.  
  20. _text = "";
  21.  
  22. {
  23. if (_text isEqualTo "") then {
  24. _text = localize (getText (missionConfigFile >> "Licenses" >> _x >> "displayName"));
  25. } else {
  26. _text = _text + ", " + localize (getText (missionConfigFile >> "Licenses" >> _x >> "displayName"));
  27. };
  28. } forEach _licenses;
  29.  
  30. _action = [
  31. format ["Voulez-vous vraiment retirer les licences suivantes : %1",_text],
  32. "Retirer ses licences",
  33. "Confirmer",
  34. "Annuler"
  35. ] call BIS_fnc_guiMessage;
  36.  
  37. if !(_action) exitWith {};
  38.  
  39. {
  40. _var = getText (missionConfigFile >> "Licenses" >> _x >> "variable");
  41. _side = getText (missionConfigFile >> "Licenses" >> _x >> "side");
  42.  
  43. missionNamespace setVariable [format ["license_%1_%2",_x,_var],false];
  44. } forEach _licenses;
  45.  
  46. [2] call SOCK_fnc_updatePartial;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement