GamerDeMTA Posted July 28, 2013 Share Posted July 28, 2013 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? Link to comment
GamerDeMTA Posted July 28, 2013 Author Share Posted July 28, 2013 I mean for check if it's his first login Link to comment
iMr.3a[Z]eF Posted July 28, 2013 Share Posted July 28, 2013 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. Link to comment
GamerDeMTA Posted July 28, 2013 Author Share Posted July 28, 2013 It isn't impossible I saw it in some servers, when its your first login you spawn in somewhere Anyways thanks for the help Link to comment
iMr.3a[Z]eF Posted July 28, 2013 Share Posted July 28, 2013 So, why not use a script from the community? Link to comment
GamerDeMTA Posted July 28, 2013 Author Share Posted July 28, 2013 I saw it in a server not community Link to comment
Castillo Posted July 28, 2013 Share Posted July 28, 2013 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 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