Jump to content

Help Player player


Janela

Recommended Posts

  • Administrators

Hi @Janela

Your thread has been moved out of the Scripting Tutorials, into the Scripting section. I suggest you elaborate a little more on your question.

Link to post
14 hours ago, Janela said:

I want to create a system that could load another player

Can you be more explicit please with your question? Because it is not understood what you mean and we cannot help you

Link to post
Just now, Hydra said:

Você pode ser mais explícito, por favor, com sua pergunta? Porque não é entendido o que você quer dizer e não podemos ajudá-lo

tipo um player carregar outro player na costa 

Agora mesmo, Hydra disse:

Você pode ser mais explícito, por favor, com sua pergunta? Porque não é entendido o que você quer dizer e não podemos ajudá-lo

tipo um  jogador carregar outro jogador na costa (tipo eu pegar voce e levar para tal lugar na minha costa )

Link to post
3 minutes ago, Janela said:

tipo um player carregar outro player na costa 

tipo um  jogador carregar outro jogador na costa (tipo eu pegar voce e levar para tal lugar na minha costa )

English please

Link to post
Just now, Janela said:

how a player carries another player on the coast (like me picking you up and taking you to a place like this on my coast)

 

function testAttach(commandName, thePlayer, theVictim)
  local theAttachedVictim = getPlayerFromName(theVictim)
  if theAttachedVictim then
  attachElements(theAttachedVictim, thePlayer, 0, 0, 5)
    else
    end
  end
addCommandHandler("grabPlayer", testAttach)

function testDetach(commandName, thePlayer, theVictim)
  local theAttachedVictim = getPlayerFromName(theVictim)
  if isElementAttached(theAttachedVictim) then
    detachElements(theAttachedVictim, thePlayer)
    else
    outputChatBox("The player is not attached", thePlayer, 255, 255, 255, true)
    end
  end
addCommandHandler("detachPlayer", testDetach)

--// Syntax /grabPlayer theVictim
--// Syntax /detachPlayer theVictim

Not sure if will work because I didn't tested the function

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
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...