Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "..\..\script_macros.hpp"
- /*
- File: fn_adminkick.sqf
- Description:
- Kicks a client
- */
- if(FETCH_CONST(life_adminlevel) < 2) exitWith {closeDialog 0;};
- private["_unit","_message"];
- _unit = lbData[9902,lbCurSel (9902)];
- _unit = call compile format["%1", _unit];
- _message = ctrlText 9903;
- if(isNil "_unit") exitWith {};
- if(isNull _unit) exitWith {};
- [[0,"STR_ANOTF_KICK",true,[_unit getVariable["realname",name _unit],profileName,_message]],"life_fnc_broadcast",true,false] call life_fnc_MP;
- [[player,_message],"life_fnc_kick",_unit,false] spawn life_fnc_MP;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement