Advertisement
Guest User

Untitled

a guest
Jun 4th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.64 KB | None | 0 0
  1. private["_display","_curTarget","_Btn1","_Btn2","_Btn3","_Btn4","_Btn5","_Btn6","_Btn7","_Btn8","_Btn9"];
  2. createDialog "revokeLicense_Menu";
  3. disableSerialization;
  4. _curTarget = param [0,objNull,[objNull]];
  5. if(isNull _curTarget) exitWith {hint "Mauvaise cible !"; closeDialog 0;};
  6. if(!isPlayer _curTarget && side _curTarget == civilian) exitWith {hint "Ne peut pas faire ca !"; closeDialog 0;};
  7. _display = findDisplay 41000;
  8. _Btn1 = _display displayCtrl 41002;
  9. _Btn2 = _display displayCtrl 41003;
  10. _Btn3 = _display displayCtrl 41004;
  11. _Btn4 = _display displayCtrl 41005;
  12. _Btn5 = _display DisplayCtrl 41006;
  13. _Btn6 = _display DisplayCtrl 41007;
  14. _Btn7 = _display DisplayCtrl 41008;
  15. _Btn8 = _display DisplayCtrl 41009;
  16. _Btn9 = _display DisplayCtrl 41010;
  17.  
  18. _Btn1 buttonSetAction "[12] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  19. _Btn2 buttonSetAction "[4] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  20. _Btn3 buttonSetAction "[6] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  21. _Btn4 buttonSetAction "[7] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  22. _Btn5 buttonSetAction "[5] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  23. _Btn6 buttonSetAction "[9] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  24. _Btn7 buttonSetAction "[8] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  25. _Btn8 buttonSetAction "[11] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
  26. _Btn9 buttonSetAction "[10] remoteExecCall [""life_fnc_removeLicenses"",_curTarget]; closeDialog 0;";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement