Simple Do To All Commands

Null45

Knowledgeable
#1
cmd create tpall Force everyone to Teleport to you | /tpall
cmd add tpall %online% = onlineplayers()
cmd add tpall %c% = 0
cmd add tpall %pl% = %online%[%c%]
cmd add tpall asop /tp %pl% %p%
cmd add tpall if %c% = size(%online%) then exit
cmd add tpall let %c% = %c% + 1
cmd add tpall goto 3

cmd create killall Kills everyone on the server | /killall
cmd add killall %online% = onlineplayers()
cmd add killall %c% = 0
cmd add killall %pl% = %online%[%c%]
cmd add killall treat %pl% 0
cmd add killall if %c% = size(%online%) then exit
cmd add killall let %c% = %c% + 1
cmd add tpall goto 3

[SPOILER="Give All"
Moderators Note: The below command is broken. If you scroll down or click here, you can see a updated version that works.

]cmd create giveall Gives everyone a specific item | /giveall <item>
cmd add giveall let %item% = array(%args%[1])
cmd add giveall let %online% = onlineplayers()
cmd add giveall let %c% = 0
cmd add giveall let %pl% = %online%[%c%]
cmd add giveall let %inv% = playerinventory(%pl%) + %item%
cmd add giveall carry %pl% %inv%
cmd add giveall if %c% = size(%online%) then exit
cmd add giveall let %c% = %c% + 1
cmd add giveall goto 4[/SPOILER]


I hope you use it!

Any errors or problems?feel free to post here!
 
Last edited by a moderator:
#4
hey null do you remember me from blox jump im in a hole new server now and i need your help soon becuase im making a gamemode name beacon wars if you can help me code in there that will be greatly appreciated our server
ip: blazehubpe.pocket.pe
port: 50506

hey null do you remember me from blox jump im in a hole new server now and i need your help soon becuase im making a gamemode name beacon wars if you can help me code in there that will be greatly appreciated our server
ip: blazehubpe.pocket.pe
port: 50506
will you help
 
#6
cmd create tpall Force everyone to Teleport to you | /tpall
cmd add tpall %online% = onlineplayers()
cmd add tpall %c% = 0
cmd add tpall %pl% = %online%[%c%]
cmd add tpall asop /tp %pl% %p%
cmd add tpall if %c% = size(%online%) then exit
cmd add tpall let %c% = %c% + 1
cmd add tpall goto 3

cmd create killall Kills everyone on the server | /killall
cmd add killall %online% = onlineplayers()
cmd add killall %c% = 0
cmd add killall %pl% = %online%[%c%]
cmd add killall treat %pl% 0
cmd add killall if %c% = size(%online%) then exit
cmd add killall let %c% = %c% + 1
cmd add tpall goto 3

cmd create giveall Gives everyone a specific item | /giveall <item>
cmd add giveall let %item% = %args%[1]
cmd add giveall let %online% = onlineplayers()
cmd add giveall let %c% = 0
cmd add giveall let %pl% = %online%[%c%]
cmd add giveall let %inv% = playerinventory(%pl%) + %item%
cmd add giveall carry %pl% %inv%
cmd add giveall if %c% = size(%online%) then exit
cmd add giveall let %c% = %c% + 1
cmd add giveall goto 4


I hope you use it!

Any errors or problems?feel free to post here!
give all actually clears inventories
 

thedeibo

HBIDamian - Head Community Moderator
Staff member
Department Head
Community Team
#7
give all actually clears inventories
My fix for that:
Code:
cmd create giveall Gives everyone a specific item | /giveall <item>
/cmd add giveall onerror goto 11
/cmd add giveall let %item% = array(%args%[1])
/cmd add giveall let %online% = onlineplayers()
/cmd add giveall let %c% = 0
/cmd add giveall let %pl% = %online%[%c%]
/cmd add giveall let %inv% = playerinventory(%pl%) + %item%
/cmd add giveall carry %pl% %inv%
/cmd add giveall if %c% = size(%online%) then exit
/cmd add giveall let %c% = %c% + 1
/cmd add giveall goto 4
/cmd add giveall exit