Stranger Posted July 27, 2013 Share Posted July 27, 2013 (edited) السلام عليكم يا شباب الحين هذا الكود يتأكد من الحسابات اذا هي صح يغير الشخصيه اذا مات وش الخطأ فيه ؟ Accounts = { "Manster", } addEventHandler ( "onPlayerWasted", root, function ( _, Account ) for k,v in ipairs ( Account ) do if getAccountName ( Accounts ) == v then setTimer ( setPedSkin, 560,1, source, 217 ) end end end ) Edited July 27, 2013 by Guest Link to comment
|Mr|-Talal07-| Posted July 27, 2013 Share Posted July 27, 2013 الحين تبيه اذا مات و رجع يكون الشخصيه غير على حسب الحساب ؟ Link to comment
Stranger Posted July 27, 2013 Author Share Posted July 27, 2013 الحين تبيه اذا مات و رجع يكون الشخصيه غير على حسب الحساب ؟ يب Link to comment
فاّرس Posted July 27, 2013 Share Posted July 27, 2013 (edited) -- ما انتبهت انك تبيها اذا سوى سباون ذذ + كيف من وين ارقومنت Account ? Edited July 27, 2013 by Guest Link to comment
|Mr|-Talal07-| Posted July 27, 2013 Share Posted July 27, 2013 Accounts = { "Manster", } function isPlayerInTable(player) local acc = getPlayerAccount(player) for i,ac in ipairs(Accounts) do if acc == ac then return true end end return false end addEventHandler("onPlayerSpawn",root, function () if isPlayerInTable(source) then setTimer(setElementModel,500,1,source,217) end end ) Link to comment
Stranger Posted July 27, 2013 Author Share Posted July 27, 2013 Accounts = { {"Manster"} } addEventHandler ( "onPlayerWasted", root, function () for k,v in ipairs (Accounts) do if getAccountName (source) == v then setTimer (setElementModel,1000,0,ID) end end end ) ID = اي دي الشخصيه, خطأ Link to comment
|Mr|-Talal07-| Posted July 27, 2013 Share Posted July 27, 2013 Accounts = { "Manster", } function isPlayerInTable(player) local acc = getPlayerAccount(player) for i,ac in ipairs(Accounts) do if acc == ac then return true end end return false end addEventHandler("onPlayerSpawn",root, function () if isPlayerInTable(source) then setTimer(setElementModel,500,1,source,217) end end ) و ذاا ؟ Link to comment
Stranger Posted July 27, 2013 Author Share Posted July 27, 2013 Accounts = { "Manster", } function isPlayerInTable(player) local acc = getPlayerAccount(player) for i,ac in ipairs(Accounts) do if acc == ac then return true end end return false end addEventHandler("onPlayerSpawn",root, function () if isPlayerInTable(source) then setTimer(setElementModel,500,1,source,217) end end ) خطأ بعد Link to comment
فاّرس Posted July 27, 2013 Share Posted July 27, 2013 (edited) Accounts = { ['Manster'] = true } addEventHandler ( "onPlayerSpawn", root, function () local acc = getPlayerAccount(source) if acc and not isGuestAccount(acc) then if Accounts[getAccountName(acc)] then setTimer (setElementModel,500,1,source,217) end end end ) Edited July 27, 2013 by Guest Link to comment
Stranger Posted July 27, 2013 Author Share Posted July 27, 2013 Accounts = { ['Manster'] = true } addEventHandler ( "onPlayerSpawn", root, function () local acc = getPlayerAccount(source) if acc then if Accounts[getAccountName(acc)] then setTimer (setElementModel,500,1,source,217) end end end ) نفس المشكله Link to comment
فاّرس Posted July 27, 2013 Share Posted July 27, 2013 متأكد ان اسم حسابك Manster ? لأنه شغال عندي ذذ لازم تموت وتسوي سباون عشان الوظيفه تشتغل ذذ Link to comment
|Mr|-Talal07-| Posted July 27, 2013 Share Posted July 27, 2013 احنا جايين نصحح له ولا هو يصحح لنا والله اني حاس انه ما جربه Link to comment
hassan.k.s.a Posted July 28, 2013 Share Posted July 28, 2013 Accounts = { "Manster", } function isPlayerInTable(player) local acc = getPlayerAccount(player) for i,ac in ipairs(Accounts) do if acc == ac then return true end end return false end addEventHandler("onPlayerSpawn",root, function () if isPlayerInTable(source) then setTimer(setElementModel,500,1,source,217) end end ) عندك كم خطآ التصحيح + جرب ذا الكود يا صاحب الموضوع : Accounts = { "Manster", } function isPlayerInTable(player) local acc = getPlayerAccount(player) if ( acc ) and not isGuestAccount(acc) then local accName = getAccountName(acc) for i,ac in ipairs(Accounts) do if ac == accName then return true end end end return false end addEventHandler("onPlayerSpawn",root, function () if isPlayerInTable(source) then setTimer(setElementModel,500,1,source,217) end end ) Link to comment
Stranger Posted July 28, 2013 Author Share Posted July 28, 2013 احنا جايين نصحح له ولا هو يصحح لناوالله اني حاس انه ما جربه كيف اقولك خطأ إذا ماجربته ؟ وش استفيد اكذب عليك لا مو انا الي اصحح لكم انا اذا اعرفه ماحطيت الموضوع Link to comment
Stranger Posted July 28, 2013 Author Share Posted July 28, 2013 التصحيح + جرب ذا الكود يا صاحب الموضوع : Accounts = { "Manster", } function isPlayerInTable(player) local acc = getPlayerAccount(player) if ( acc ) and not isGuestAccount(acc) then local accName = getAccountName(acc) for i,ac in ipairs(Accounts) do if ac == accName then return true end end end return false end addEventHandler("onPlayerSpawn",root, function () if isPlayerInTable(source) then setTimer(setElementModel,500,1,source,217) end end ) زي ماقالك حسان يا طلال عندك اخطاء + كود حسان شغال مشكوور شباب مشكور حسان Link to comment
|Mr|-Talal07-| Posted July 29, 2013 Share Posted July 29, 2013 اسف والله ما كنت مرركز معاكك اول و معليش اذا غلطت عليكك 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