SHARE
TWEET

uScript - RobRaidArrest

TrapProphet Jun 19th, 2019 109 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. robbing = array();
  2. raiding = array();
  3. arresting = array();
  4.  
  5. command rob(arg){
  6.     permission = "rob";
  7.     execute(){
  8.         if(isSet(arg) == false){
  9.           player.message("Proper Usage: /rob (player)", "red");
  10.         }
  11.         else{
  12.           victim = toPlayer(arg);
  13.           if(isPlayer(victim)){
  14.             broadcast(player.name + " Is Now Robbing " + victim.name + "!", "red");
  15.             robbing.add(player.id);
  16.           }
  17.           else{
  18.             player.message("Could Not Find That Player!", "red");
  19.           }
  20.         }
  21.     }
  22. }
  23.  
  24. command robover(){
  25.     permission = "robover";
  26.     execute(){
  27.       if(robbing.contains(player.id)){
  28.         broadcast(player.name + "'s Robbery Is Now Over!", "red");
  29.         robbing.remove(player.id);
  30.       }
  31.       else{
  32.         player.message("You Are Not In An Active Robbery!", "red");
  33.       }
  34.  
  35.     }
  36. }
  37.  
  38. command raid(arg){
  39.     permission = "raid";
  40.     execute(){
  41.       if(isSet(arg) == false){
  42.         player.message("Proper Usage: /raid (location)", "red");
  43.       }
  44.       else{
  45.         broadcast(player.name + " Is Now Raiding " + arg  + "!", "red");
  46.         raiding.add(player.id);
  47.       }
  48.     }
  49. }
  50.  
  51. command raidover(){
  52.     permission = "raidover";
  53.     execute(){
  54.       if(raiding.contains(player.id)){
  55.         broadcast(player.name + "'s Raid Is Now Over!", "red");
  56.       }
  57.       else{
  58.         player.message("You Are Not In An Active Raid!", "red");
  59.       }
  60.     }
  61. }
  62.  
  63. command arrest(arg){
  64.     permission = "arrest";
  65.     execute(){
  66.         if(isSet(arg) == false){
  67.           player.message("Proper Usage: /arrest (player)", "red");
  68.         }
  69.         else{
  70.           victim = toPlayer(arg);
  71.           if(isPlayer(victim)){
  72.             broadcast(player.name + " Is Now Arresting " + victim.name + "!", "blue");
  73.             arresting.add(player.id);
  74.           }
  75.           else{
  76.             player.message("Could Not Find That Player!", "red");
  77.           }
  78.         }
  79.     }
  80. }
  81.  
  82. command arrestover(){
  83.     permission = "arrestover";
  84.     execute(){
  85.       if(arresting.contains(player.id)){
  86.         broadcast(player.name + "'s Arrest Is Now Over!", "blue");
  87.         arresting.remove(player.id);
  88.       }
  89.       else{
  90.         player.message("You Are Not In An Active Arrest!", "red");
  91.       }
  92.  
  93.     }
  94. }
  95.  
  96. command robassist(arg){
  97.     permission = "robassist";
  98.     execute(){
  99.         if(isSet(arg) == false){
  100.           player.message("Proper Usage: /robassist (player)", "red");
  101.         }
  102.         else{
  103.           robber = toPlayer(arg);
  104.           if(isPlayer(robber) and robbing.contains(robber.id)){
  105.             broadcast(player.name + " Is Now Assisting In " + robber.name + "'s Robbery!", "red");
  106.             robbing.add(player.id);
  107.           }
  108.           else{
  109.             player.message("Could Not Find That Player!", "red");
  110.           }
  111.         }
  112.     }
  113. }
  114.  
  115. command raidassist(arg){
  116.     permission = "raidassist";
  117.     execute(){
  118.         if(isSet(arg) == false){
  119.           player.message("Proper Usage: /raidassist (player)", "red");
  120.         }
  121.         else{
  122.           raider = toPlayer(arg);
  123.           if(isPlayer(raider) and raiding.contains(raider.id)){
  124.             broadcast(player.name + " Is Now Assisting In " + raider.name + "'s Raid!", "red");
  125.             raiding.add(player.id);
  126.           }
  127.           else{
  128.             player.message("Could Not Find That Player!", "red");
  129.           }
  130.         }
  131.     }
  132. }
  133.  
  134. command arrestassist(arg){
  135.     permission = "arrestassist";
  136.     execute(){
  137.         if(isSet(arg) == false){
  138.           player.message("Proper Usage: /arrestassist (player)", "red");
  139.         }
  140.         else{
  141.           arrester = toPlayer(arg);
  142.           if(isPlayer(arrester) and arresting.contains(arrester.id)){
  143.             broadcast(player.name + " Is Now Assisting In " + arrester.name + "'s Arrest!", "blue");
  144.             arresting.add(player.id);
  145.           }
  146.           else{
  147.             player.message("Could Not Find That Player!", "red");
  148.           }
  149.         }
  150.     }
  151. }
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