Advertisement
Guest User

Untitled

a guest
Oct 28th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #include "..\..\script_macros.hpp"
  2. /*
  3. File: fn_adminkick.sqf
  4.  
  5. Description:
  6. Kicks a client
  7. */
  8. if(FETCH_CONST(life_adminlevel) < 2) exitWith {closeDialog 0;};
  9.  
  10. private["_unit","_message"];
  11. _unit = lbData[9902,lbCurSel (9902)];
  12. _unit = call compile format["%1", _unit];
  13. _message = ctrlText 9903;
  14.  
  15. if(isNil "_unit") exitWith {};
  16. if(isNull _unit) exitWith {};
  17.  
  18. [[0,"STR_ANOTF_KICK",true,[_unit getVariable["realname",name _unit],profileName,_message]],"life_fnc_broadcast",true,false] call life_fnc_MP;
  19. [[player,_message],"life_fnc_kick",_unit,false] spawn life_fnc_MP;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement