SHARE
TWEET

Try 1

Darihon Jul 11th, 2014 211 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private ["_silver","_silver10oz","_gold","_gold10oz","_briefcase","_random","_random2"];
  2.  
  3. _AI = "scripts\rob\AI.sqf";
  4. // Checks if script is active, thanks Halvhjearne <3
  5. if(isNil "script_in_progress")then{
  6.     script_in_progress = false;
  7. };
  8.  
  9. if(script_in_progress)exitwith{
  10.     systemChat "This script is only useable once (untill restart)!";
  11. };
  12. script_in_progress = true;
  13. // End Checks if Script is active
  14.  
  15.  
  16. cutText [format["You are about to rob the bank, your have 30 percent chance to get loot."], "PLAIN DOWN"];
  17. sleep 5;
  18.  
  19. // Currency //
  20. _silver = "ItemSilverBar";
  21. _silver10oz = "ItemSilverBar10oz";
  22. _gold = "ItemGoldBar";
  23. _gold10oz = "ItemGoldBar10oz";
  24. _briefcase = "ItemBriefcase100oz";
  25.  
  26. // Makes sure that the game checks for the 30 percent.
  27. _random = floor(random 11); //0-10
  28. if (_random <= 3) then {
  29.     cutText [format["You are robbing the bank, the Guards has been warned. \n It takes 5 minutes before the bank robbery is succesfull."], "PLAIN DOWN"];
  30.     sleep 5;
  31.     [nil,nil,rTitleText,"The bank is getting robbed!", "PLAIN",10] call RE;
  32.     sleep 55;
  33.     cutText [format["4 minutes left..."], "PLAIN DOWN"];
  34.     sleep 20;
  35.     cutText [format["The Guards have discovered you! Protect yourself!", "PLAIN DOWN"];
  36.     execVM _AI;
  37.     sleep 40;
  38.     cutText [format["3 minutes left..."], "PLAIN DOWN"];
  39.     sleep 20;
  40.     cutText [format["I'm nervous, need a Cigarette!"], "PLAIN DOWN"];
  41.     sleep 40;
  42.     cutText [format["2 minutes left..."], "PLAIN DOWN"];
  43.     sleep 20;
  44.     cutText [format["Oh Crap i shit into my Pants!"], "PLAIN DOWN"];
  45.     sleep 40;
  46.     cutText [format["1 minute left..."], "PLAIN DOWN"];
  47.     sleep 20;
  48.     cutText [format["Grab your Balls and be get out here!"], "PLAIN DOWN"];
  49.     sleep 40;
  50.     player playActionNow "Medic";
  51.     sleep 8;
  52.     [nil,nil,rTitleText,"The bank has been robbed succesfully!", "PLAIN",10] call RE;
  53.     _random2 = floor(random 6);
  54.     // Makes an another random section, which chooses the loot randomly.
  55.         if (_random2 == 0) then {
  56.             cutText [format["The vault was emptied recently, no big loot, except some silver."], "PLAIN DOWN"];
  57.             player addMagazine _silver10oz;
  58.             player addMagazine _silver10oz;
  59.             player addMagazine _silver;
  60.             systemChat "The robber got: 2x Silver10oz and 1x Silver";
  61.         };
  62.         if (_random2 == 1) then {
  63.             cutText [format["Some gold, not much."], "PLAIN DOWN"];
  64.             player addMagazine _gold;
  65.             player addMagazine _gold;
  66.             systemChat "The robber got: 2x gold";
  67.         };    
  68.         if (_random2 == 2) then {
  69.             cutText [format["Nice job!"], "PLAIN DOWN"];
  70.             player addMagazine _gold10oz;
  71.             player addMagazine _gold10oz;
  72.             player addMagazine _gold10oz;
  73.             player addMagazine _gold10oz;
  74.             player addMagazine _gold10oz;
  75.             systemChat "The robber got: 5x gold10oz";
  76.         };
  77.         if (_random2 == 3) then {
  78.             cutText [format["Some gold, not much."], "PLAIN DOWN"];
  79.             player addMagazine _gold;
  80.             player addMagazine _gold;
  81.             player addMagazine _gold10oz;
  82.             systemChat "The robber got: 2x gold and 1x Gold10oz";
  83.         };        
  84.         if (_random2 == 4) then {
  85.             cutText [format["The vault was emptied recently, no big loot, except some silver."], "PLAIN DOWN"];
  86.             player addMagazine _silver10oz;
  87.             player addMagazine _silver10oz;
  88.             player addMagazine _silver;
  89.             systemChat "The robber got: 2x Silver10oz and 1x Silver";
  90.         };
  91.         if (_random2 == 5) then {
  92.             cutText [format["Jack.. Jack.. Pot!!"], "PLAIN DOWN"];
  93.             player addMagazine _briefcase;
  94.             player addMagazine _briefcase;
  95.             systemChat "Ting ting ting... The jackpot has been stolen! Bye bye 2 briefcases";
  96.         };    
  97.         // Output if above is not activated.
  98.             } else {
  99.                 cutText [format["Bank robbery failed.."], "PLAIN DOWN"];
  100.                 systemChat "Bank robbery failed!";
  101.             };
  102. sleep 3600;
  103. script_in_progress = false;
  104. /* Remove the // to enable the script to able to be used again.
  105. By "sleep seconds:" i.e: sleep 60; (able to use script after 60 seconds again).
  106. */
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top