Jump to content

spawn login


MontiVante

Recommended Posts

Hi, I'm asking for help for a script that I think is good, something I want to do with the script is to be able to spawn, for players it's not a spawnpoint, not that. EXAMPLE: I want it when a player logs in in a place of appearance and when he dies appears in the hospital, because the spawn is not spawnpoint xD help please the script does not want me to serve.

function Logiin (thePlayer)
 setElementPosition ( thePlayer, X, Y, Z )
end
addEventHandler ("onPlayerLogin", getRootElement (), Logiin)

 

Link to comment

Use This

function Logiin (thePlayer)
 spawnPlayer ( thePlayer, X,Y,Z )
  --spawnPlayer ( thePlayer, X,Y,Z,rotation,IDSkin,Interior,Dimension,Team ) Possible arguments
end
addEventHandler ("onPlayerLogin", getRootElement (), Logiin)

If it doesn't work there's another resource giving conflict

Link to comment
12 hours ago, Ahmed Ly said:

thePlayer?
remove thePlayer at line 2 and 3 and write source

 

Bro, it's like I said the other day, the Script doesn't want to know what you wrote there in the first argument will always be the same as the font, has people who uses "thePlayer" other use "source" I usually use "jog" abbreviation for "jogador", no matter what ta there , always see the event arguments

Link to comment
13 hours ago, W4LK1NG said:

Bro, it's like I said the other day, the Script doesn't want to know what you wrote there in the first argument will always be the same as the font, has people who uses "thePlayer" other use "source" I usually use "jog" abbreviation for "jogador", no matter what ta there , always see the event arguments

p_655c66s01.png

 

 

Link to comment

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...