Jump to content

I need help with this.


Recommended Posts

Posted

Hello. I need help with this. I want to do that, when it's the player first Login in the server, he spawns in Grove ST. I only know I need to use this:

setElementPosition 

but how to know if it's his first Login?

Posted

That's impossible, why not using onPlayerLogin

Any player will logged he will

addEventHandler("onPlayerLogin", root, 
function() 
spawnPlayer(source, x, y, z) 
end 
) 
  

Replace: x, y, z with the grove position.

Posted

To see if is his/her first login, you'll have to store this data somewhere, you can use account data, which will be easy for you.

Event:

onPlayerLogin

Functions:

getAccountData 
setAccountData 
spawnPlayer 

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