Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private[];
- /*
- Bank Robbery script version 3;
- Made by Darihon
- This version includes:
- * New Configuration Options
- * New Features
- * (Bug) fixes
- */
- if (isServer) exitwith {
- diag_log "Bank Robbery Script: Shouldn't be installed in isServer! Could make problems. Follow the instructions.";
- };
- _playerName = name player;
- // For Bank Configuration, see the bank.sqf file.
- // For AI Configuration, see AI.sqf file.
- // Configuration Options
- _forceLock = true; // Locks player at current position (to avoid player walking away from the bank). False / true;
- // Value Options
- _outputLoot1 = ["ItemBriefcase100oz"];
- _outputLoot2 = ["ItemSilverbar"];
- _outputLoot3 = ["ItemGoldBar10oz",2];
- _outputLoot4 = ["ItemGoldBar",5];
- _outputLoot5 = ["ItemSilverBar10oz",7];
- // End Configuration Options
- // Declaring
- _randomOutputLoot = [_outputLoot1,_outputLoot2,_outputLoot3,_outputLoot4,_outputLoot5] call BIS_fnc_SelectRandom;
- // End Declaring
- // Functions
- lock_player = {
- player switchmove "CtsDoktor_Vojak_hulakani1"; // Allows player to move their mouse, only.
- };
- unlock_player = {
- player switchmove "";
- };
- // Script Starting
- diag_log format ["Bank Robbery script: Player: %1 is robbing the bank!", _playerName]; // Types this line in the RPT log.
- cutText [format["Get a safe place. You'll get locked at your current position within 10 seconds to prevent glitches."], "PLAIN DOWN"];
- sleep 10;
- if (_forceLock) then {
- call lock_player;
- };
- cutText [format["You are robbing the bank, the police has been warned. It takes 5 minutes before the bank robbery is successful."], "PLAIN DOWN"];
- sleep 20;
- cutText [format["The police is on his way."], "PLAIN DOWN"];
- sleep 40;
- cutText [format["4 more minutes. Police is half way."], "PLAIN DOWN"];
- sleep 60;
- cutText [format["3 more minutes. 30 seconds for the police to arrive."], "PLAIN DOWN"];
- sleep 30;
- cutText [format["The police has arrived. Defend yourself..."], "PLAIN DOWN"];
- // execVM "rob/AI.sqf";
- sleep 30;
- cutText [format["2 more minutes. How is everything going?"], "PLAIN DOWN"];
- sleep 60;
- cutText [format["1 more minute. Get ready for the cash."], "PLAIN DOWN"];
- sleep 60;
- if (_forceLock) then {
- call unlock_player;
- };
Add Comment
Please, Sign In to add comment