Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.66 KB | None | 0 0
  1. #include <macro.h>
  2. /*
  3.     File: fn_adminFreeze.sqf
  4.     Author: ColinM9991
  5.  
  6.     Description: Freezes selected player
  7. */
  8. if(__GETC__(life_adminlevel) < 3) exitWith {closeDialog 0; hint localize "STR_ANOTF_ErrorLevel";};
  9.  
  10. private["_unit"];
  11. _unit = lbData[2902,lbCurSel (2902)];
  12. _unit = call compile format["%1", _unit];
  13. if(isNil "_unit") exitWith {};
  14. if(isNull _unit) exitWith {};
  15. if(_unit == player) exitWith {hint localize "STR_ANOTF_Error";};
  16. if(__GETC__(life_adminlevel) == 3) then {[[0,format["%1 hat einen Spieler eingefroren",profileName]],"life_fnc_broadcast",nil,false] spawn life_fnc_MP;};
  17. [[player],"life_fnc_freezePlayer",_unit,false] spawn life_fnc_MP;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement