xeon17 Posted May 10, 2014 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. A unique GangWar gamemode waiting for you!Click here for more information.
JR10 Posted May 10, 2014 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. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Mr_Moose Posted May 10, 2014 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. MTA Community | GitHub | 99Stack Forum
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