Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. #By-Dyan
  2.  
  3. event onPlayerJoined(player){
  4. broadcast(player.name + " has joined the server!");
  5. }
  6.  
  7. event onPlayerQuit(player){
  8. broadcast(player.name + " has left the server!");
  9. }
  10.  
  11. event onInterval(400){
  12. wait.seconds(0, broadcast("Server items clearing in 20 Seconds!"));
  13. wait.seconds(10, broadcast("Server items clearing in 10 Seconds!"));
  14. wait.seconds(5, broadcast("Server items clearing in 5 Seconds!"));
  15. wait.seconds(20, server.execute("clear i"));
  16. }
  17.  
  18. event onInterval(1000){
  19. wait.seconds(5, broadcast("Server Vehicles clearing in 10 Seconds!"));
  20. wait.seconds(8, vehicle.destroy());
  21. }
  22.  
  23. command checkvehicle() {
  24. permission = "checkvehicle";
  25. execute(){
  26. vehicle = player.look.getVehicle();
  27. if(vehicle != null){
  28. player.message(str.format("Vehicle ID is: {0} Owner is: {1}", vehicle.id, vehicle.owner));
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement