mars Posted August 29, 2009 Share Posted August 29, 2009 hey guys ive got a litle question, i'm trying to make a position saver. but its kinda hard. can some1 give me a start please?^^, or something like a site where is standing how very junior in scripting ^^'' thx Link to comment
Gamesnert Posted August 29, 2009 Share Posted August 29, 2009 https://community.multitheftauto.com/index.php?p= ... ils&id=124 You might want to take that resource as a whole. Link to comment
mars Posted August 30, 2009 Author Share Posted August 30, 2009 hmm can any1 check if this is allright? the onPlayerJoin, i think its wrong. function positie ( source ) local acc=getPlayerAccount(source); setAccountData(acc,"posX",x); setAccountData(acc,"posY",y); setAccountData(acc,"posZ",z); end addEventHandler ("onPlayerJoin",getRootElement(),positie) thx. Link to comment
robhol Posted August 30, 2009 Share Posted August 30, 2009 hmm can any1 check if this is allright? the onPlayerJoin, i think its wrong. function positie ( source ) local acc=getPlayerAccount(source); setAccountData(acc,"posX",x); setAccountData(acc,"posY",y); setAccountData(acc,"posZ",z); end addEventHandler ("onPlayerJoin",getRootElement(),positie) thx. Remove the source argument from the function - you don't need to define it. Link to comment
mars Posted August 30, 2009 Author Share Posted August 30, 2009 okay thx ill give it a try. 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