Advertisement
AutismAlex

DoctorX

Dec 5th, 2019
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. method = 1;
  2.  
  3. event onPlayerGestured(player, gesture){
  4. if(method == 1){
  5. example = player.look.getBarricade();
  6. if(example == false){
  7. player.message("This is not a barricade");
  8. }
  9. else{
  10. player.message("This is a barricade");
  11. }
  12. }
  13. if(method == 2){
  14. example = player.look.getBarricade();
  15. if(example == null){
  16. player.message("This is not a barricade");
  17. }
  18. else{
  19. player.message("This is a barricade");
  20. }
  21. }
  22. }
  23. command method(){
  24. execute(){
  25. if(method == 1){
  26. method = 2;
  27. }
  28. else{
  29. method = 1;
  30. }
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement