./BlackBird# Posted December 19, 2012 Share Posted December 19, 2012 Parameters account thePreviousAccount, account theCurrentAccount, bool autoLogin thePreviousAccount: The account the player was logged into before theCurrentAccount: The account the player logged into just now autoLogin: Whether this login was a result of an autologin Link to comment
|Mr|-Talal07-| Posted December 19, 2012 Share Posted December 19, 2012 جرب ذا addEventHandler("onPlayerLogin",root, function (_,acc) local SkinData = getAccountData(acc,"Skin") if ( SkinData ) then setElementModel(source,SkinData) else setAccountData(acc,"Skin",0) setElementModel(source,0) end end ) addEventHandler("onPlayerQuit",root, function () local acc = getPlayerAccount(source) if ( not isGuestAccount(acc) ) then local Skin = getElementModel(source) setAccountData(acc,"Skin",Skin) end end ) addEventHandler("onPlayerSpawn",root, function () local acc = getPlayerAccount(source) if ( not isGuestAccount(acc) ) then local Skin = getAccountData(acc,"Skin") setTimer(setElementModel,1000,1,source,Skin) end end ) طيب الفنكشن واحط بين القوسين يعني انا اعرف الاساسيات بس هاذي دايم ما اعرفها ليه سويتها ككذا ؟ function (_,acc) هذا ارقمنت يجي مع الافنت Event : onPlayerLogin كذا هي مو بكيفي طيب اشتغل الكود ولا ما اشتغل Link to comment
Tete omar Posted December 19, 2012 Share Posted December 19, 2012 بين القوسين يمديك تحط أي شي بس يكون مع تنسيق الحدث مثلاً عندك ايفنت onPlayerLogin account thePreviousAccount, account theCurrentAccount, bool autoLogin يمديك تسوي كذا function(pre,acc,auto) pre = الحساب السابق [ اذا كان اللاعب مسجل بحساب وطلع منه وسجل بحسآب آخر ] ء acc = الحساب الحآلي [ الحساب اللي دوب هذا اللاعب مسجل به ] ء auto = هو ال اوتو لوقن , يعني اللدخول إلى الحساب الاوتوماتيكي Link to comment
Bo7meeeD Posted December 19, 2012 Author Share Posted December 19, 2012 100% مشكوؤوؤر شباب Link to comment
|Mr|-Talal07-| Posted December 19, 2012 Share Posted December 19, 2012 100%مشكوؤوؤر شباب العفوو 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