Janela Posted February 12, 2021 Share Posted February 12, 2021 I want to create a system that could load another player Link to comment
Administrators Tut Posted February 12, 2021 Administrators Share Posted February 12, 2021 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 comment
Hydra Posted February 13, 2021 Share Posted February 13, 2021 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 comment
Janela Posted February 13, 2021 Author Share Posted February 13, 2021 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 comment
Hydra Posted February 13, 2021 Share Posted February 13, 2021 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 comment
Janela Posted February 13, 2021 Author Share Posted February 13, 2021 Just now, Hydra said: inglês, por favor 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) Link to comment
Hydra Posted February 13, 2021 Share Posted February 13, 2021 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 comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now