Advertisement
Guest User

fn_arrestDialog_Arrest

a guest
Oct 24th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. /*
  2.  
  3. Player clicked arrest/ok
  4.  
  5. */
  6.  
  7. private ["_time"];
  8.  
  9. if(playerSide != west) exitWith {};
  10. if(isNil "life_pInact_curTarget") exitWith {hint "Invalid destination."};
  11.  
  12. //Get minutes
  13. _time = ctrlText 1400;
  14.  
  15.  
  16. if(! ([_time] call fnc_isnumber)) exitWith
  17. {
  18. hint "You have to enter a number.";
  19. };
  20.  
  21. _time = parseNumber _time; //requested number
  22. _time = round _time;
  23.  
  24. if(_time < 5 || _time > 60) exitWith { hint "You can only go to jail between 5-60 minutes people!"; };
  25.  
  26. closeDialog 0;
  27. [life_pInact_curTarget, _time] call life_fnc_arrestAction;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement