DoctorX13

XSignCommands

Nov 15th, 2019 (edited)
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. //Script Created by Senior S
  2. //You are able to edit it as you pleasure
  3.  
  4. //Tranlation:
  5. perms_error = "You dont have permissions to use this!";
  6. m_heal = "You are healed!";
  7. y_god = "You now are in god!";
  8. n_god = "You desactive your god!";
  9.  
  10. event onPlayerGestured(player, gesture){
  11. if(gesture == "PunchLeft" or gesture == "PunchRight"){
  12. cc = player.look.getBarricade();
  13. if(isSet(cc)){
  14. if(cc.hasSign()){
  15. cz = cc.owner;
  16. cx = cc.getSign();
  17. if(cx.text == "[Heal]" and player.isAdmin){
  18. player.heal();
  19. player.message(m_heal);
  20. }
  21. else if(cx.text == "[Heal]" and player.isAdmin == false){
  22. player.message(perms_error);
  23. }
  24. if(cx.text == "[God]" and player.isAdmin){
  25. if(player.god == false){
  26. player.god = true;
  27. player.message(y_god);
  28. }
  29. else {
  30. player.god = false;
  31. player.message(n_god);
  32. }
  33. }
  34. else if(cx.text == "[God]" and player.isAdmin == false){
  35. player.message(perms_error);
  36. }
  37. if(cx.text == "[Day]" and player.isAdmin){
  38. server.execute("day");
  39. }
  40. else if(cx.text == "[Day]" and player.isAdmin == false){
  41. player.message(perms_error);
  42. }
  43. if(cx.text == "[Night]" and player.isAdmin){
  44. server.execute("night");
  45. }
  46. else if(cx.text == "[Night]" and player.isAdmin == false){
  47. player.message(perms_error);
  48. }
  49. if(cx.text == "[Skills]"){
  50. player.maxSkills();
  51. }
  52. if(cx.text == "[Clear]" and player.isAdmin){
  53. server.execute("ci " + player.name);
  54. }
  55. else if(cx.text == "[Clear]" and player.isAdmin == false){
  56. player.message(perms_error);
  57. }
  58. }
  59. }
  60. else if(isSet(cc) == false) {
  61. continue;
  62. }
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment