Guest User

Mad Commands tpa / tpahere

a guest
Aug 15th, 2020
49
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cmd delete tpasend2
  2. cmd create tpasend2 code by PlanetJaniboy25
  3. cmd add tpasend2 if varset(%args%[1]) = %false% then message %p% §cErrror §r> §7you need to choose an player
  4. cmd add tpasend2 if varset(%args%[1]) = %false% then exit
  5. cmd add tpasend2 let %player% = %args%[1]
  6. cmd add tpasend2 if %player% = %p% then message %p% §cError §r> §7you can not send yourself a tp request
  7. cmd add tpasend2 if %player% = %p% then exit
  8. cmd add tpasend2 let %status% = playerstatus(%player%)
  9. cmd add tpasend2 let %statusp% = playerstatus(%p%)
  10. cmd add tpasend2 if %statusp%["op"] = %true% then goto 9
  11. cmd add tpasend2 if %status%["op"] = %true% then message %p% §cError §r> §7you can not send a tp request to an operator
  12. cmd add tpasend2 if %status%["op"] = %true% then exit
  13. cmd add tpasend2 load %tpadeny%
  14. cmd add tpasend2 if varset(%tpadeny%[%player%]) = %true% then message %p% §cError §r> §7this player have turned the tp requests off
  15. cmd add tpasend2 if varset(%tpadeny%[%player%]) = %true% then exit
  16. cmd add tpasend2 load %tpanfrage%
  17. cmd add tpasend2 let %tpanfrage%[%player%] = %p%
  18. cmd add tpasend2 save %tpanfrage%
  19. cmd add tpasend2 load %timetpanfragep%
  20. cmd add tpasend2 if varset(%timetpanfragep%[%p%]) = %false% then goto 50
  21. cmd add tpasend2 let %tptime% = %timetpanfragep%[%p%] + 30
  22. cmd add tpasend2 if %time% < %tptime% then message %p% §cError §r> §7you need to wait 30 seconds
  23. cmd add tpasend2 if %time% < %tptime% then exit
  24. cmd edit tpasend2 50 load %timetpanfrage%
  25. cmd add tpasend2 let %timetpanfrage%[%player%] = %time%
  26. cmd add tpasend2 save %timetpanfrage%
  27. cmd add tpasend2 load %timetpanfragep%
  28. cmd add tpasend2 let %timetpanfragep%[%p%] = %time%
  29. cmd add tpasend2 save %timetpanfragep%
  30. cmd add tpasend2 message %player% §dTPA §r> §6%p% §bhave send you a tpa§7. You can accept it with /tpaccept
  31. cmd add tpasend2 message %p% §dTPA §r> §bsuccessfully sent §6%player% §ban tp request
  32.  
  33. cmd delete tpaheresend2
  34. cmd create tpaheresend2 code by PlanetJaniboy25
  35. cmd add tpaheresend2 if varset(%args%[1]) = %false% then message %p% §cError §r> §7du need to choose a player
  36. cmd add tpaheresend2 if varset(%args%[1]) = %false% then exit
  37. cmd add tpaheresend2 let %player% = %args%[1]
  38. cmd add tpaheresend2 if %player% = %p% then message %p% §cError §r> §7you can not send yourself a tp request
  39. cmd add tpaheresend2 if %player% = %p% then exit
  40. cmd add tpaheresend2 let %status% = playerstatus(%player%)
  41. cmd add tpaheresend2 let %statusp% = playerstatus(%p%)
  42. cmd add tpaheresend2 if %statusp%["op"] = %true% then goto 9
  43. cmd add tpaheresend2 if %status%["op"] = %true% then message %p% §cError §r> §7you can not send a tp request to an operator
  44. cmd add tpaheresend2 if %status%["op"] = %true% then exit
  45. cmd add tpaheresend2 load %tpadeny%
  46. cmd add tpaheresend2 if varset(%tpadeny%[%player%]) = %true% then message %p% §cError §r> §7this player has turned off his tp requests
  47. cmd add tpaheresend2 if varset(%tpadeny%[%player%]) = %true% then exit
  48. cmd add tpaheresend2 load %tpahnfrage%
  49. cmd add tpaheresend2 let %tpahnfrage%[%player%] = %p%
  50. cmd add tpaheresend2 save %tpahnfrage%
  51. cmd add tpaheresend2 load %timetpahnfragep%
  52. cmd add tpaheresend2 if varset(%timetpahnfragep%[%p%]) = %false% then goto 50
  53. cmd add tpaheresend2 let %tptime% = %timetpahnfragep%[%p%] + 30
  54. cmd add tpaheresend2 if %time% < %tptime% then message %p% §cError §r> §7you need to wait 30 seconds
  55. cmd add tpaheresend2 if %time% < %tptime% then exit
  56. cmd edit tpaheresend2 50 load %timetpahnfrage%
  57. cmd add tpaheresend2 let %timetpahnfrage%[%player%] = %time%
  58. cmd add tpaheresend2 save %timetpahnfrage%
  59. cmd add tpaheresend2 load %timetpahnfragep%
  60. cmd add tpaheresend2 let %timetpahnfragep%[%p%] = %time%
  61. cmd add tpaheresend2 save %timetpahnfragep%
  62. cmd add tpaheresend2 message %player% §dTPA §r> §6%p% §bhave send you a tphere request§7. You can accept it with /tpaccept
  63. cmd add tpaheresend2 message %p% §dTPA §r> §bsuccessfully sent §6%player% §ba tp request
  64.  
  65. cmd delete tpaccept
  66. cmd create tpaccept accept an tp request / code by PlanetJaniboy25
  67. cmd add tpaccept let %allowed% = array(\"world\", \"plot\", \"cave\", \"desert\", \"standard\", \"plots2\", \"snow\")
  68. cmd add tpaccept if %level% notin %allowed% then message %p% §cFehler §r> §cyou can not accept a tpa right now
  69. cmd add tpaccept if %level% notin %allowed% then exit
  70. cmd add tpaccept load %tpanfrage%
  71. cmd add tpaccept load %tpahnfrage%
  72. cmd add tpaccept if varset(%tpahnfrage%[%p%]) = %true% then goto 500
  73. cmd add tpaccept if varset(%tpanfrage%[%p%]) = %false% then message %p% §cError §r> §7you do not have any tp requests
  74. cmd add tpaccept if varset(%tpanfrage%[%p%]) = %false% then exit
  75. cmd add tpaccept load %timetpanfrage%
  76. cmd add tpaccept if varset(%timetpanfrage%[%p%]) = %false% then goto 50
  77. cmd add tpaccept let %tptime% = %timetpanfrage%[%p%] + 60
  78. cmd add tpaccept if %time% > %tptime% then message %p% §cError §r> §7you do not have any tp requests
  79. cmd add tpaccept if %time% > %tptime% then exit
  80. cmd edit tpaccept 50 load %tpanfrage%
  81. cmd add tpaccept if varset(%tpanfrage%[%p%]) = %false% then message %p% §cError §r> §7you do not have any tp requests
  82. cmd add tpaccept if varset(%tpanfrage%[%p%]) = %false% then exit
  83. cmd add tpaccept let %tpaplayer% = %tpanfrage%[%p%]
  84. cmd add tpaccept let %statusk% = playerstatus(%tpaplayer%)
  85. cmd add tpaccept let %ll% = %statusk%["level"]
  86. cmd add tpaccept let %allowed% = array(\"world\", \"plot\", \"cave\", \"desert\", \"standard\", \"plots2\", \"snow\")
  87. cmd add tpaccept if %ll% notin %allowed% then message %p% §cError §r> §cyou can not accept any tp request right now
  88. cmd add tpaccept if %ll% notin %allowed% then exit
  89. cmd add tpaccept if %tpaplayer% notin onlineplayers() then message %p% §cError §r> §7this player is not online anymore
  90. cmd add tpaccept if %tpaplayer% notin onlineplayers() then exit
  91. cmd add tpaccept let %checkarea% = areaname(%level%, %x%, %y%, %z%)
  92. cmd add tpaccept if varset(%checkarea%) = %false% then goto 100
  93. cmd add tpaccept let %inarea% = areainfo(%checkarea%)
  94. cmd add tpaccept let %flags% = %inarea%[\"flags\"]
  95. cmd add tpaccept if %flags%["tp"] = %false% then message %p% §cError §r> §7you can not accept any tp request right now
  96. cmd add tpaccept if %flags%["tp"] = %false% then exit
  97. cmd edit tpaccept 100 move %tpaplayer% %level% %x% %y% %z%
  98. cmd add tpaccept message %tpaplayer% §dTPA §r> §bsuccessfully teleported to §6%p%
  99. cmd add tpaccept message %p% §dTPA §r> §6%tpaplayer% §bwas successfully teleported to you
  100. cmd add tpaccept load %tpanfrage%
  101. cmd add tpaccept let %tpanfrage%[%p%] =
  102. cmd add tpaccept save %tpanfrage%
  103. cmd edit tpaccept 499 exit
  104. cmd add tpaccept load %tpahnfrage%
  105. cmd add tpaccept load %timetpahnfrage%
  106. cmd add tpaccept if varset(%timetpahnfrage%[%p%]) = %false% then goto 550
  107. cmd add tpaccept let %tptime% = %timetpahnfrage%[%p%] + 60
  108. cmd add tpaccept if %time% > %tptime% then message %p% §cError §r> §7you do not have any tp requests
  109. cmd add tpaccept if %time% > %tptime% then exit
  110. cmd edit tpaccept 550 load %tpahnfrage%
  111. cmd add tpaccept let %tpaplayer% = %tpahnfrage%[%p%]
  112. cmd add tpaccept let %statusk% = playerstatus(%tpaplayer%)
  113. cmd add tpaccept let %ll% = %statusk%["level"]
  114. cmd add tpaccept let %allowed% = array(\"world\", \"plot\", \"cave\", \"desert\", \"standard\", \"plots2\", \"snow\")
  115. cmd add tpaccept if %ll% notin %allowed% then message %p% §cError §r> §7you can not accept any tp requests now
  116. cmd add tpaccept if %ll% notin %allowed% then exit
  117. cmd add tpaccept if %tpaplayer% notin onlineplayers() then message %p% §cError §r> §7this player is not online anymore
  118. cmd add tpaccept if %tpaplayer% notin onlineplayers() then exit
  119. cmd add tpaccept let %status% = playerstatus(%tpaplayer%)
  120. cmd add tpaccept let %ll% = %status%["level"]
  121. cmd add tpaccept let %xx% = %status%["x"]
  122. cmd add tpaccept let %yy% = %status%["y"]
  123. cmd add tpaccept let %zz% = %status%["z"]
  124. cmd add tpaccept let %checkarea% = areaname(%ll%, %xx%, %yy%, %zz%)
  125. cmd add tpaccept if varset(%checkarea%) = %false% then goto 600
  126. cmd add tpaccept let %inarea% = areainfo(%checkarea%)
  127. cmd add tpaccept let %flags% = %inarea%[\"flags\"]
  128. cmd add tpaccept if %flags%["tp"] = %false% then message %p% §cFehler §r> §7you can not go to the player right now
  129. cmd add tpaccept if %flags%["tp"] = %false% then exit
  130. cmd edit tpaccept 600 move %p% %ll% %xx% %yy% %zz%
  131. cmd add tpaccept message %p% §dTPA §r> §bsuccessfully teleported to §6%tpaplayer%
  132. cmd add tpaccept message %tpaplayer% §dTPA §r> §6%p% §bwas teleported to you
  133. cmd add tpaccept load %tpahnfrage%
  134. cmd add tpaccept let %tpahnfrage%[%p%] =
  135. cmd add tpaccept save %tpahnfrage%
  136.  
  137.  
  138. cmd delete tpdeny
  139. cmd create tpdeny (de)aktivere TP-Anfragen
  140. cmd add tpdeny load %tpadeny%
  141. cmd add tpdeny if varset(%tpadeny%[%p%]) = %true% then goto 50
  142. cmd add tpdeny let %tpadeny%[%p%] = %true%
  143. cmd add tpdeny save %tpadeny%
  144. cmd add tpdeny message %p% §dTPA §r> §bsuccessfully turned §7tp requests §coff
  145. cmd edit tpdeny 49 exit
  146. cmd add tpdeny load %tpadeny%
  147. cmd add tpdeny let %tpadeny%[%p%] =
  148. cmd add tpdeny save %tpadeny%
  149. cmd add tpdeny message %p% §dTPA §r> §bsuccessfully turned §7tp requests §aon
  150.  
  151. cmd delete tpa
  152. cmd create tpa send a tp request to a player
  153. cmd edit tpa 4 %all% = onlineplayers()
  154. cmd edit tpa 31 let %form%[\"type\"] = \"custom_form\"
  155. cmd edit tpa 32 let %form%[\"title\"] = \"Send a tp request to a player\"
  156. cmd edit tpa 35 let %item1%[\"type\"] = \"dropdown\"
  157. cmd edit tpa 36 let %item1%[\"text\"] = \"Players\"
  158. cmd edit tpa 37 let %item1%[\"options\"] = %all%
  159. cmd edit tpa 53 let %content%[] = %item1%
  160. cmd edit tpa 58 let %form%[\"content\"] = %content%
  161. cmd edit tpa 60 let %response% = dialog(%p%, %form%)
  162. cmd edit tpa 61 if %response% = %false% then exit
  163. cmd edit tpa 62 %index% = %response%[0]
  164. cmd edit tpa 63 %name% = %all%[%index%]
  165. cmd edit tpa 66 if varset(%name%) then goto 100
  166. cmd edit tpa 67 exit
  167. cmd edit tpa 100 asop /cmd run tpasend2 %name%
  168.  
  169. cmd delete tpahere
  170. cmd create tpahere send a tphere request
  171. cmd edit tpahere 4 %all% = onlineplayers()
  172. cmd edit tpahere 31 let %form%[\"type\"] = \"custom_form\"
  173. cmd edit tpahere 32 let %form%[\"title\"] = \"Send a tphere request to a player\"
  174. cmd edit tpahere 35 let %item1%[\"type\"] = \"dropdown\"
  175. cmd edit tpahere 36 let %item1%[\"text\"] = \"Players\"
  176. cmd edit tpahere 37 let %item1%[\"options\"] = %all%
  177. cmd edit tpahere 53 let %content%[] = %item1%
  178. cmd edit tpahere 58 let %form%[\"content\"] = %content%
  179. cmd edit tpahere 60 let %response% = dialog(%p%, %form%)
  180. cmd edit tpahere 61 if %response% = %false% then exit
  181. cmd edit tpahere 62 %index% = %response%[0]
  182. cmd edit tpahere 63 %name% = %all%[%index%]
  183. cmd edit tpahere 66 if varset(%name%) then goto 100
  184. cmd edit tpahere 67 exit
  185. cmd edit tpahere 100 asop /cmd run tpaheresend2 %name%
RAW Paste Data