Sign in to follow this  
231

Warp player to

Recommended Posts

I want to bring all players on the server with command

 

Share this post


Link to post

In my opinion you should read the guidelines before posting. I cant understand anything please tell more.

Edited by Ayush Rathore

Share this post


Link to post
function getAllPlayer(player, cmd)
  local mx, my, mz = getElementPosition(player)
  for i,v in ipairs(getElementsByType("player")) do 
    local rand = math.random(1, 5)
    setElementPosition(v, mx+rand, my+rand, mz)
  end
end 
addCommandHandler("getallplayer", getAllPlayer)

 

Share this post


Link to post
On 06/04/2019 at 12:06, Ayush Rathore said:

In my opinion you should read the guidelines before posting. I cant understand anything please tell more.

Oh, you thief... 😮

It's my signature xd

  • Haha 1

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.