Advertisement
Mooshim

Brick Hill Scripts

Sep 9th, 2017
1,439
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. Brick Hill Scripts
  2.  
  3. // /spy <user> - Makes their camera follow that player
  4. s=define("serverCmdSpy");s.script="p=findClientByName(arg[0]);if instance_exists(p) {other.camObj=p;centerPrint(p,'Someone is watching you...',4);}";
  5.  
  6. // /pm <user> <message> - Messages a user
  7. new_command("pm",'to=findClientByName(arg[0]);if(instance_exists(to)){messageClient(to,"\c8PM \c0from \c8"+other.name+"\c7: "+arg[1]+" "+arg[2]+" "+arg[3]+" "+arg[4]+" "+arg[5]+" "+arg[6]+" "+arg[7]+" "+arg[8]+" "+arg[9]);}');
  8.  
  9. // /tp - Teleports user to their mouse location
  10. new_command("tp",'playerTranslate(other.id,other.LookingAtXPos,other.LookingAtYPos,other.LookingAtZPos);');
  11.  
  12. // /stalk <user> - Makes their camera follow that player
  13. new_command("stalk",'follow=findClientByName(arg[0]);if(instance_exists(follow)) {other.camType="orbit";other.camObj=follow.net_id;}');
  14.  
  15. // Basic countdown loop
  16. time = 60;
  17. script = '
  18. centerPrintAll("You have "+string(time)+" seconds left!",1);
  19. time -= 1;
  20. if time <= 0 {
  21. with obj_client {
  22. playerRespawn(id);
  23. }
  24. time = 60;
  25. messageAll("A new round has started!");
  26. messageAll("You have one minute to run around on the baseplate.");
  27. }
  28. schedule(1000,script);
  29. ';
  30. execute_string(script);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement