Darihon

Bank Robbery v3 [WIP]

Aug 22nd, 2014
356
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 2.18 KB | None | 0 0
  1. private[];
  2. /*
  3. Bank Robbery script version 3;
  4. Made by Darihon
  5. This version includes:
  6. * New Configuration Options
  7. * New Features
  8. * (Bug) fixes
  9. */
  10.  
  11. if (isServer) exitwith {
  12. diag_log "Bank Robbery Script: Shouldn't be installed in isServer! Could make problems. Follow the instructions.";
  13. };
  14.  
  15. _playerName = name player;
  16.  
  17. // For Bank Configuration, see the bank.sqf file.
  18. // For AI Configuration, see AI.sqf file.
  19.  
  20. // Configuration Options
  21. _forceLock = true; // Locks player at current position (to avoid player walking away from the bank). False / true;
  22. // Value Options
  23. _outputLoot1 = ["ItemBriefcase100oz"];
  24. _outputLoot2 = ["ItemSilverbar"];
  25. _outputLoot3 = ["ItemGoldBar10oz",2];
  26. _outputLoot4 = ["ItemGoldBar",5];
  27. _outputLoot5 = ["ItemSilverBar10oz",7];
  28. // End Configuration Options
  29.  
  30. // Declaring
  31. _randomOutputLoot = [_outputLoot1,_outputLoot2,_outputLoot3,_outputLoot4,_outputLoot5] call BIS_fnc_SelectRandom;
  32. // End Declaring
  33.  
  34. // Functions
  35. lock_player = {
  36. player switchmove "CtsDoktor_Vojak_hulakani1"; // Allows player to move their mouse, only.
  37. };
  38. unlock_player = {
  39. player switchmove "";
  40. };
  41.  
  42. // Script Starting
  43.  
  44.  
  45. diag_log format ["Bank Robbery script: Player: %1 is robbing the bank!", _playerName]; // Types this line in the RPT log.
  46.  
  47. cutText [format["Get a safe place. You'll get locked at your current position within 10 seconds to prevent glitches."], "PLAIN DOWN"];
  48. sleep 10;
  49. if (_forceLock) then {
  50. call lock_player;
  51. };
  52. cutText [format["You are robbing the bank, the police has been warned. It takes 5 minutes before the bank robbery is successful."], "PLAIN DOWN"];
  53. sleep 20;
  54. cutText [format["The police is on his way."], "PLAIN DOWN"];
  55. sleep 40;
  56. cutText [format["4 more minutes. Police is half way."], "PLAIN DOWN"];
  57. sleep 60;
  58. cutText [format["3 more minutes. 30 seconds for the police to arrive."], "PLAIN DOWN"];
  59. sleep 30;
  60. cutText [format["The police has arrived. Defend yourself..."], "PLAIN DOWN"];
  61. // execVM "rob/AI.sqf";
  62. sleep 30;
  63. cutText [format["2 more minutes. How is everything going?"], "PLAIN DOWN"];
  64. sleep 60;
  65. cutText [format["1 more minute. Get ready for the cash."], "PLAIN DOWN"];
  66. sleep 60;
  67. if (_forceLock) then {
  68. call unlock_player;
  69. };
Add Comment
Please, Sign In to add comment