#TeKa Posted April 5, 2016 Share Posted April 5, 2016 السلام عليكم ابي اصحيح مود تغير اسم الاكوانت و الباسورد ارجوكم ساعدوني client side nameagencymarker = createMarker (-1951.71,641.86,45.6,"cylinder",2,255,0,0,180,getRootElement()) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(263,58,283,329,"لوحة تغير الاسم",false) guiSetVisible (GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(11,28,199,56,"اذا انت!\nرجاء قراءة القوانين قبل التغير لمعرفة القوانين!",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",true) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(214,25,59,64,"اخذ القوانين",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(10,259,262,27,"اقراء القوانين اسرع!",false,GUIEditor_Window[1]) guiSetProperty (GUIEditor_Button[2],"Disabled","True") GUIEditor_Label[2] = guiCreateLabel(12,97,250,18,"الباسورد القديم",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Edit[1] = guiCreateEdit(10,114,257,23,"",false,GUIEditor_Window[1]) guiEditSetMasked(GUIEditor_Edit[1],true) GUIEditor_Label[3] = guiCreateLabel(12,138,250,18,"الاسم الجديد",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Label[4] = guiCreateLabel(12,177,250,18,"باسورد الجديد",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Edit[2] = guiCreateEdit(10,155,257,23,"",false,GUIEditor_Window[1]) GUIEditor_Edit[3] = guiCreateEdit(10,195,257,23,"",false,GUIEditor_Window[1]) guiEditSetMasked(GUIEditor_Edit[3],true) GUIEditor_Label[5] = guiCreateLabel(12,217,250,18,"تغير فورا",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Edit[4] = guiCreateEdit(10,235,257,23,"",false,GUIEditor_Window[1]) guiEditSetMasked(GUIEditor_Edit[4],true) GUIEditor_Button[4] = guiCreateButton(10,289,263,27,"قفل",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(211,157,389,307,"لوحة القوانين|Rules",false) guiSetVisible (GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Label[6] = guiCreateLabel(12,29,363,217,"Welcome to the name agency!\nAt this place, you can do changes to your roleplay account. This embassy isn't part of the game, but is a helpful tool to transfer your account to another name.\n\nAt this agency you can change your in-game name.\nOnce you've changed your name, you can't log in anymore with this account (!)\nThe account you want to use, should not be registered already. If it already is, it's not possible to transfer the data.\n\nBe aware what you are doing, before you start using the name agency. Write down all data you have entered here.\nChanging your name costs 50k$, you can do it once a week.",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",true) GUIEditor_Button[5] = guiCreateButton(12,250,362,44,"i get the Rules and i want Changes",false,GUIEditor_Window[2]) addEventHandler ("onClientMarkerHit",getResourceRootElement(), function(hitElement,dimension) if source == nameagencymarker then if dimension and hitElement and isElement (hitElement) and hitElement == localPlayer and not isPedInVehicle (hitElement) then guiSetVisible (GUIEditor_Window[1],true) showCursor (true,true) guiSetInputMode ("no_binds_when_editing") end end end) addEventHandler ("onClientGUIClick",getResourceRootElement(), function(button,state,absX,absY) if button == "left" then if source == GUIEditor_Button[1] then guiSetVisible (GUIEditor_Window[2],true) guiBringToFront (GUIEditor_Window[2]) elseif source == GUIEditor_Button[2] then if guiGetText (GUIEditor_Button[2]) == "Change name" then local pass = guiGetText (GUIEditor_Edit[1]) local name = guiGetText (GUIEditor_Edit[2]) local newpass = guiGetText (GUIEditor_Edit[3]) local newpassrep = guiGetText (GUIEditor_Edit[4]) if not (name and pass and newpass and newpassrep) then outputChatBox ("Fill in all fields, please.",255,0,0,false) return end if name:len() == 0 or pass:len() == 0 or newpass:len() == 0 or newpassrep:len() == 0 then outputChatBox ("Fill in all fields, please.",255,0,0,false) return end if newpass ~= newpassrep then outputChatBox ("The passwords aren't the same!",255,0,0,false) return end if string.len(newpass) < 5 then outputChatBox ("The new password should have at least 5 characters!",255,0,0,false) return end triggerServerEvent ("nameChangeName",localPlayer,name,pass,newpass) end elseif source == GUIEditor_Button[4] then guiSetVisible (GUIEditor_Window[1],false) guiSetVisible (GUIEditor_Window[2],false) showCursor (false,false) guiSetProperty (GUIEditor_Button[2],"Disabled","True") guiSetText (GUIEditor_Button[2],"Read the info first!") elseif source == GUIEditor_Button[5] then guiSetVisible (GUIEditor_Window[2],false) guiSetProperty (GUIEditor_Button[2],"Disabled","False") guiSetText (GUIEditor_Button[2],"Change name") end end end) server side addEventHandler ("nameChangeName"),root addEvent ("nameChangeName"),root fucition (player) local Change = ChangePlayerAccountname (localplayer,source) else outputChatBox ("You are change name succfly",112,554,445,false) kick = KickPlayer (localplayer,source) addEventHandler ( 'onPlayerChange',getRootElement ( ), function ( ) cancelEvent ( ) kickPlayer ( source, "You change name come agian and set your name account new and password new " ); end; end ); اكيد هيكون في اخطاء كثيره لني اكتبها من الجوال و سويتو و اشتغل و بعدين جاي اضيف ال Server side مو اشتغل ساعدونييي و ابي عندما يغير ينسحب منو 50 الف Link to comment
#Mr.Rajo~,< Posted April 5, 2016 Share Posted April 5, 2016 (edited) سطر ثلاثه سيرفر fuction ChangePlayerAccountname ? kick = KickPlayer (localplayer,source) ? Edited April 5, 2016 by Guest Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 سطر ثلاثه سيرفر fuction يعني ما فيها اخطاء ؟ Link to comment
#Mr.Rajo~,< Posted April 5, 2016 Share Posted April 5, 2016 سطر ثلاثه سيرفر fuction يعني ما فيها اخطاء ؟ هروسه محترمه :] https://wiki.multitheftauto.com/wiki/SetAccountName استخدم هذا + لاتنسى تاخذ السورس كود Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 ملف السيرفر كله غلط طيب صححو لي Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 طيب حاولت اني اصحح السيرفر طلع addEventHandler ("changePlayername",root addEvent ("changePlayername",root setAccountName = function ( plr, old, new ) if old and new then local oldAccount, newAccount, newPass = getAccount ( old ), getAccount ( new ), "mta"..math.random(10000,100000) if oldAccount and not newAccount then if addAccount ( new, newPass ) then local newAccount = getAccount ( new ) local player = getAccountPlayer ( oldAccount ) for index, value in pairs ( getAllAccountData ( oldAccount ) ) do setAccountData ( newAccount, index, value ) end for index, value in ipairs ( aclGroupList ( ) ) do if isObjectInACLGroup ( "user."..old, value ) then aclGroupAddObject ( value, "user."..new ) aclGroupRemoveObject ( value, "user."..old ) end end if player then logOut ( player ) logIn ( player, newAccount, newPass ) if plr == player then outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) else outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end else outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end setTimer ( removeAccount, 100, 1, oldAccount ) return true end end end return false end Link to comment
#Mr.Rajo~,< Posted April 5, 2016 Share Posted April 5, 2016 طيب حاولت اني اصحح السيرفر طلع addEventHandler ("changePlayername",root addEvent ("changePlayername",root setAccountName = function ( plr, old, new ) if old and new then local oldAccount, newAccount, newPass = getAccount ( old ), getAccount ( new ), "mta"..math.random(10000,100000) if oldAccount and not newAccount then if addAccount ( new, newPass ) then local newAccount = getAccount ( new ) local player = getAccountPlayer ( oldAccount ) for index, value in pairs ( getAllAccountData ( oldAccount ) ) do setAccountData ( newAccount, index, value ) end for index, value in ipairs ( aclGroupList ( ) ) do if isObjectInACLGroup ( "user."..old, value ) then aclGroupAddObject ( value, "user."..new ) aclGroupRemoveObject ( value, "user."..old ) end end if player then logOut ( player ) logIn ( player, newAccount, newPass ) if plr == player then outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) else outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end else outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end setTimer ( removeAccount, 100, 1, oldAccount ) return true end end end return false end وش عدلت اصلا ؟ اخذت السورس كود وحطيته وبدون تسوي الفنكشن ؟ اش في Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 طيب حاولت اني اصحح السيرفر طلع addEventHandler ("changePlayername",root addEvent ("changePlayername",root setAccountName = function ( plr, old, new ) if old and new then local oldAccount, newAccount, newPass = getAccount ( old ), getAccount ( new ), "mta"..math.random(10000,100000) if oldAccount and not newAccount then if addAccount ( new, newPass ) then local newAccount = getAccount ( new ) local player = getAccountPlayer ( oldAccount ) for index, value in pairs ( getAllAccountData ( oldAccount ) ) do setAccountData ( newAccount, index, value ) end for index, value in ipairs ( aclGroupList ( ) ) do if isObjectInACLGroup ( "user."..old, value ) then aclGroupAddObject ( value, "user."..new ) aclGroupRemoveObject ( value, "user."..old ) end end if player then logOut ( player ) logIn ( player, newAccount, newPass ) if plr == player then outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) else outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end else outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end setTimer ( removeAccount, 100, 1, oldAccount ) return true end end end return false end وش عدلت اصلا ؟ اخذت السورس كود وحطيته وبدون تسوي الفنكشن ؟ اش في طيب طيب يعني هكذا تشتغل ؟ Link to comment
#Mr.Rajo~,< Posted April 5, 2016 Share Posted April 5, 2016 طبعا لا يلزمك حساب الاعب القديم والجديد وترسله مع الترايقر كمتغير + تقتبله بالترايقر وتحط المتغرين اللي ارسلته داخل الفنكشن bool setAccountName ( element player, string oldAccount, string newAccount ) طبعا السورس كود حطه فوق الترايقر او تحته Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 طبعا لا يلزمك حساب الاعب القديم والجديد وترسله مع الترايقر كمتغير + تقتبله بالترايقر وتحط المتغرين اللي ارسلته داخل الفنكشن bool setAccountName ( element player, string oldAccount, string newAccount ) طبعا السورس كود حطه فوق الترايقر او تحته طيب يعني احط الترايفر ده فين او انت افعلهالي Link to comment
#|_oskar_|# Posted April 5, 2016 Share Posted April 5, 2016 عشان تغير الباسوورد استخدم setAccountPassword Link to comment
#Mr.Rajo~,< Posted April 5, 2016 Share Posted April 5, 2016 طبعا لا يلزمك حساب الاعب القديم والجديد وترسله مع الترايقر كمتغير + تقتبله بالترايقر وتحط المتغرين اللي ارسلته داخل الفنكشن bool setAccountName ( element player, string oldAccount, string newAccount ) طبعا السورس كود حطه فوق الترايقر او تحته طيب يعني احط الترايفر ده فين او انت افعلهالي مراح اعطيك الكود جاهز لازم تتعب وتشتغل =============== الحين نفترض ان عندك اثنين ادت بوكس الاول يكتب الاعب فيه الاسم القديم والثاني يكتب الاسم الجديد اذا عباهم الاعب وظغط الزر تسوي OldAcc = guiGetText(...) NewAcc = guiGetText(...) triggerServerEvent ("nameChangeName",localPlayer,OldAcc,NewAcc) Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 عشان تغير الباسوورد استخدمsetAccountPassword تقدر انت تسويها Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 طبعا لا يلزمك حساب الاعب القديم والجديد وترسله مع الترايقر كمتغير + تقتبله بالترايقر وتحط المتغرين اللي ارسلته داخل الفنكشن bool setAccountName ( element player, string oldAccount, string newAccount ) طبعا السورس كود حطه فوق الترايقر او تحته طيب يعني احط الترايفر ده فين او انت افعلهالي مراح اعطيك الكود جاهز لازم تتعب وتشتغل =============== الحين نفترض ان عندك اثنين ادت بوكس الاول يكتب الاعب فيه الاسم القديم والثاني يكتب الاسم الجديد اذا عباهم الاعب وظغط الزر تسوي OldAcc = guiGetText(...) NewAcc = guiGetText(...) triggerServerEvent ("nameChangeName",localPlayer,OldAcc,NewAcc) قصدك كدا client side nameagencymarker = createMarker (-1951.71,641.86,45.6,"cylinder",2,255,0,0,180,getRootElement()) GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Label = {} GUIEditor_Edit = {} GUIEditor_Window[1] = guiCreateWindow(263,58,283,329,"لوحة تغير الاسم",false) guiSetVisible (GUIEditor_Window[1],false) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Label[1] = guiCreateLabel(11,28,199,56,"اذا انت!\nرجاء قراءة القوانين قبل التغير لمعرفة القوانين!",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[1],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[1],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[1],"left",true) guiSetFont(GUIEditor_Label[1],"default-bold-small") GUIEditor_Button[1] = guiCreateButton(214,25,59,64,"اخذ القوانين",false,GUIEditor_Window[1]) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(10,259,262,27,"اقراء القوانين اسرع!",false,GUIEditor_Window[1]) guiSetProperty (GUIEditor_Button[2],"Disabled","True") GUIEditor_Label[2] = guiCreateLabel(12,97,250,18,"الباسورد القديم",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[2],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[2],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[2],"left",false) GUIEditor_Edit[1] = guiCreateEdit(10,114,257,23,"",false,GUIEditor_Window[1]) guiEditSetMasked(GUIEditor_Edit[1],true) GUIEditor_Label[3] = guiCreateLabel(12,138,250,18,"الاسم الجديد",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[3],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[3],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[3],"left",false) GUIEditor_Label[4] = guiCreateLabel(12,177,250,18,"باسورد الجديد",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[4],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[4],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[4],"left",false) GUIEditor_Edit[2] = guiCreateEdit(10,155,257,23,"",false,GUIEditor_Window[1]) GUIEditor_Edit[3] = guiCreateEdit(10,195,257,23,"",false,GUIEditor_Window[1]) guiEditSetMasked(GUIEditor_Edit[3],true) GUIEditor_Label[5] = guiCreateLabel(12,217,250,18,"تغير فورا",false,GUIEditor_Window[1]) guiLabelSetColor(GUIEditor_Label[5],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[5],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[5],"left",false) GUIEditor_Edit[4] = guiCreateEdit(10,235,257,23,"",false,GUIEditor_Window[1]) guiEditSetMasked(GUIEditor_Edit[4],true) GUIEditor_Button[4] = guiCreateButton(10,289,263,27,"قفل",false,GUIEditor_Window[1]) GUIEditor_Window[2] = guiCreateWindow(211,157,389,307,"لوحة القوانين|Rules",false) guiSetVisible (GUIEditor_Window[2],false) guiWindowSetSizable(GUIEditor_Window[2],false) GUIEditor_Label[6] = guiCreateLabel(12,29,363,217,"Welcome to the name agency!\nAt this place, you can do changes to your roleplay account. This embassy isn't part of the game, but is a helpful tool to transfer your account to another name.\n\nAt this agency you can change your in-game name.\nOnce you've changed your name, you can't log in anymore with this account (!)\nThe account you want to use, should not be registered already. If it already is, it's not possible to transfer the data.\n\nBe aware what you are doing, before you start using the name agency. Write down all data you have entered here.\nChanging your name costs 50k$, you can do it once a week.",false,GUIEditor_Window[2]) guiLabelSetColor(GUIEditor_Label[6],255,255,255) guiLabelSetVerticalAlign(GUIEditor_Label[6],"top") guiLabelSetHorizontalAlign(GUIEditor_Label[6],"left",true) GUIEditor_Button[5] = guiCreateButton(12,250,362,44,"i get the Rules and i want Changes",false,GUIEditor_Window[2]) addEventHandler ("onClientMarkerHit",getResourceRootElement(), function(hitElement,dimension) if source == nameagencymarker then if dimension and hitElement and isElement (hitElement) and hitElement == localPlayer and not isPedInVehicle (hitElement) then guiSetVisible (GUIEditor_Window[1],true) showCursor (true,true) guiSetInputMode ("no_binds_when_editing") end end end) addEventHandler ("onClientGUIClick",getResourceRootElement(), function(button,state,absX,absY) if button == "left" then if source == GUIEditor_Button[1] then guiSetVisible (GUIEditor_Window[2],true) guiBringToFront (GUIEditor_Window[2]) elseif source == GUIEditor_Button[2] then if guiGetText (GUIEditor_Button[2]) == "Change name" then local pass = guiGetText (GUIEditor_Edit[1]) local name = guiGetText (GUIEditor_Edit[2]) local newpass = guiGetText (GUIEditor_Edit[3]) local newpassrep = guiGetText (GUIEditor_Edit[4]) if not (name and pass and newpass and newpassrep) then outputChatBox ("Fill in all fields, please.",255,0,0,false) return end if name:len() == 0 or pass:len() == 0 or newpass:len() == 0 or newpassrep:len() == 0 then outputChatBox ("Fill in all fields, please.",255,0,0,false) return end if newpass ~= newpassrep then outputChatBox ("The passwords aren't the same!",255,0,0,false) return end if string.len(newpass) < 5 then outputChatBox ("The new password should have at least 5 characters!",255,0,0,false) return end OldAcc = guiGetText(...) NewAcc = guiGetText(...) triggerServerEvent ("nameChangeName",localPlayer,OldAcc,NewAcc) end elseif source == GUIEditor_Button[4] then guiSetVisible (GUIEditor_Window[1],false) guiSetVisible (GUIEditor_Window[2],false) showCursor (false,false) guiSetProperty (GUIEditor_Button[2],"Disabled","True") guiSetText (GUIEditor_Button[2],"Read the info first!") elseif source == GUIEditor_Button[5] then guiSetVisible (GUIEditor_Window[2],false) guiSetProperty (GUIEditor_Button[2],"Disabled","False") guiSetText (GUIEditor_Button[2],"Change name") end end end) server side addEventHandler ("nameChangeName"),root addEvent ("nameChangeName"),root setAccountName = function ( plr, old, new ) if old and new then local oldAccount, newAccount, newPass = getAccount ( old ), getAccount ( new ), "mta"..math.random(10000,100000) if oldAccount and not newAccount then if addAccount ( new, newPass ) then local newAccount = getAccount ( new ) local player = getAccountPlayer ( oldAccount ) for index, value in pairs ( getAllAccountData ( oldAccount ) ) do setAccountData ( newAccount, index, value ) end for index, value in ipairs ( aclGroupList ( ) ) do if isObjectInACLGroup ( "user."..old, value ) then aclGroupAddObject ( value, "user."..new ) aclGroupRemoveObject ( value, "user."..old ) end end if player then logOut ( player ) logIn ( player, newAccount, newPass ) if plr == player then outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) else outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end else outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end setTimer ( removeAccount, 100, 1, oldAccount ) return true end end end return false end end Link to comment
#Mr.Rajo~,< Posted April 5, 2016 Share Posted April 5, 2016 متأكد سكربت المواصلات انت سويته ؟ Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 متأكد سكربت المواصلات انت سويته ؟ مو لحالي اخوي ساعد في نص الاكواد Link to comment
#TeKa Posted April 5, 2016 Author Share Posted April 5, 2016 شوف هكذا addEventHandler ("nameChangeName"),root addEvent ("nameChangeName"),root setAccountName = function ( plr, old, new ) if old and new then local oldAccount, newAccount, newPass = getAccount ( old ), getAccount ( new ), "mta"..math.random(10000,100000) if oldAccount and not newAccount then if addAccount ( new, newPass ) then local newAccount = getAccount ( new ) local player = getAccountPlayer ( oldAccount ) for index, value in pairs ( getAllAccountData ( oldAccount ) ) do setAccountData ( newAccount, index, value ) end for index, value in ipairs ( aclGroupList ( ) ) do if isObjectInACLGroup ( "user."..old, value ) then aclGroupAddObject ( value, "user."..new ) aclGroupRemoveObject ( value, "user."..old ) end end if player then logOut ( player ) logIn ( player, newAccount, newPass ) if plr == player then outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) else outputChatBox ( "* Your new account and password: [ "..new.." ] [ "..newPass.." ].", player, 255, 255, 0, true ) outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end else outputChatBox ( "* New account and password: [ "..new.." ] [ "..newPass.." ].", plr, 255, 255, 0, true ) end setTimer ( removeAccount, 100, 1, oldAccount ) return true end end end return false end end addEventHandler ( "onClientGUIClick", root, function () if source == GUIEditor_Button[5] then function ( player, _, old, new ) setAccountName ( player, old, new ) end ) Link to comment
N3xT Posted April 5, 2016 Share Posted April 5, 2016 كل اللي مسويه غلط ، وأكواد ملخبطة وحويس ^ Link to comment
#|_oskar_|# Posted April 5, 2016 Share Posted April 5, 2016 لقيت لك مود يغير الباسوور https://community.multitheftauto.com/in ... ls&id=9224 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