xeon17 Posted May 10, 2014 Share Posted May 10, 2014 Is there a event like ''onAccountCreate'' , because i want create a script witch spawn players on 1 place & give them weapons , when they create a account. Link to comment
JR10 Posted May 10, 2014 Share Posted May 10, 2014 There's no onAccountCreate. To create an account for a player you have to first create the account, using addAccount then logIn to log the player in. You'll have to modify the code where the account is created for the player to spawn him and give him the weapons. Link to comment
Mr_Moose Posted May 10, 2014 Share Posted May 10, 2014 You can create it manually by using: triggerEvent. That would look something like this: account addAccount ( string name, string pass ) triggerEvent ( "onAccountCreate", root ) This however, is only useful if you planning to do anything in another resource during account creation, otherwise do as JR10 said. 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