Jump to content

#TeKa

Members
  • Posts

    199
  • Joined

  • Last visited

Everything posted by #TeKa

  1. مو لحالي اخوي ساعد في نص الاكواد
  2. طيب يعني احط الترايفر ده فين او انت افعلهالي مراح اعطيك الكود جاهز لازم تتعب وتشتغل =============== الحين نفترض ان عندك اثنين ادت بوكس الاول يكتب الاعب فيه الاسم القديم والثاني يكتب الاسم الجديد اذا عباهم الاعب وظغط الزر تسوي 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
  3. طيب يعني احط الترايفر ده فين او انت افعلهالي
  4. وش عدلت اصلا ؟ اخذت السورس كود وحطيته وبدون تسوي الفنكشن ؟ اش في طيب طيب يعني هكذا تشتغل ؟
  5. طيب حاولت اني اصحح السيرفر طلع 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
  6. السلام عليكم ابي اصحيح مود تغير اسم الاكوانت و الباسورد ارجوكم ساعدوني 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 الف
  7. مش قصدي يجيلو في الشات ياعم addEventHandler("onPlayerLogin",getRootElement(), function () acc = getPlayerAccount(source) name = getAccountName (acc) setPlayerName (source,name) outputChatBox(name.." entered the game!",getRootElement(),255,0,0) end هو ده صح
  8. السلام عليكم امس سويت موضوع عن نفس الموضوع بس ما فهمت شييء ابي الكود كامل زاي addEvent ("onPlayerLogin",root زاي كدا يعني يكون الكود كامل ابي اي حد يجي يسجل يجي بي اسم حسابو يعني هو يسمي نفسو من ال Seeting Elgoker مثلا ابيه اولا لما يسجل ينغير هذا الاسم الي اسم حسابو اتمنا ان تفهومنييي المره هذا
  9. السلام عليكم انا سويت لوحة تسجيل بس ابي الي يسجل بي حسابو من جوه يجي يدخل السيرفر و يدوس Login يدخل بي اسم حسابو مو اسمو الي برااا الي بيغيرو من ال Setting ابي يدخل السيرفر بي اسم حسابو ابي فنكنش كامل اتمنا ان تكونو فهمتوني
  10. السلام عليكم اليوم جالي مود روعه و فكره جديده مود الموصلات بين البيلد كل بلد يوجد به حاولي 3 موصلات تقدر تتنقل منها ع اي مكان و الميزة عند تنقلق اي مكان يظهر لك صورة ع الشاشه انت تقدر تغيرها بس ما تقدر تغير الحقوق السبب انها مشفره لحفظ الحقوق حقتي الصورة شوفو الي مكتوب عليه ده بي اسم سيرفري اسمو GamerRoleing [Roleplay] للحياة الوقعيه لو تبي تزورو زور الرابط : http://up.top4top.net/downloadf-943kd31-zip.html اتمنا ان يعجبكم تحياتي Fahdalaa=The&Smile
  11. #TeKa

    سوال

    تفضل client side addEventHandler("onClientGUIClick",root, function ( ) if ( source == اسم البيوتن الي تدوس عليه يعمل سلاب ) then triggerServerEvent("SlepPlayer", localPlayer , localPlayer ) end end ) serverside addEvent("SlepPlayer",true) addEventHandler("SlepPlayer",root, function ( thePlayer ) nameget = getAdminName ( thePlayer ) if ( isPlayerInACL ( thePlayer , 'Admin","Console') ) then ضيف كل الرتب الي انت تبيه ينضاف اسمها triggerClientEvent ( thePlayer , 'SlepPlayer' , theplayer ) outputChatBox (getAdminName( source) .." الكلام الي تبيه ينضاف "..nameget , root , 255,255,255,true ) end ) ;
  12. #TeKa

    سوال

    ياعم ما تفهم يقلق الادمن يجيب اسم الادمن مش اللاعب
  13. اهنيك عليها ولله بتوفيق لك يا بطل
  14. #TeKa

    فنكش

    السلام عليكم ابي فنكش اخفاء ال Object اول لما يحط ع الماركر
  15. شوف يمكن انت تخذها بدون اسطر و حاول تعمل /debugscript 3 و شوف وش يطلعلك و ارسلو هون و انشاء الله راح اساعدك
  16. شوف اللوحه كلها صحيحه بس السيرفر خربان بصلحها لك Server Side addEvent("refresh",true) addEventHandler("refresh",root,function () for k,v in ipairs (getElementsByType("player")) do if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(v)),aclGetGroup("Support")) ) then triggerClientEvent("online",source,getPlayerName(v)) end end end) addEvent("support",true) addEventHandler("support",root,function () if ( isObjectInACLGroup("user." .. getAccountName(getPlayerAccount(source)),aclGetGroup("Support")) ) then triggerClientEvent("sendmessage",) else triggerClientEvent("sendmessage2",source) end end) client side function re() guiGridListClear(supportonline) triggerServerEvent("refresh",localPlayer) end addEventHandler("onClientGUIClick",root, function() if (source ==اسم البيوتن الي تضغط عليه يظهر لك لوحة القوانين) then guiSetVisible(ruless, not guiGetVisible(ruless) ) showCursor( guiGetVisible(اسم لوحة القوانين) ) end end) addEventHandler("onClientGUIClick",root, function() if (source == اسم البيوتن حق القفل)then guiSetVisible(ruless,false) showCursor(false) end end) bindKey("F5","down", function() guiSetVisible(supportsystem, not guiGetVisible(اسم اللوحه) ) showCursor( guiGetVisible(اسم اللوحه) ) re() end) addEvent("online",true) addEventHandler("online", root, function (name) local g = guiGridListAddRow(supportonline) guiGridListSetItemText(supportonline,g, 1,""..name.."", false, false) end) addEventHandler("onClientGUIClick",button1,function () if guiGetText(edit1) ~= '' then triggerServerEvent("support",localPlayer,guiGetText(edit1)) end end, false) addEvent("sendmessage",true) addEventHandler("sendmessage",root, function() local gg = guiGridListAddRow(supportchat) guiGridListSetItemText(supportchat,gg, 1,getPlayerName(localPlayer).." : "..guiGetText(edit1), false, false) if ( guiCheckBoxGetSelected( checkbox1 ) == true ) then outputChatBox("[الاسم الي تبيه يرسل به الاسبورت]"..getPlayerName(localPlayer).." : "..guiGetText(edit1),255,255,0) end end) addEvent("sendmessage2",true) addEventHandler("sendmessage2",root, function() local gg = guiGridListAddRow(supportchat) guiGridListSetItemText(supportchat,gg, 1,getPlayerName(localPlayer).." : "..guiGetText(edit1), false, false) if ( guiCheckBoxGetSelected( checkbox1 ) == true ) then outputChatBox("[الاسم الي تبيه يرسل به الاسبورت]"..getPlayerName(localPlayer).." : "..guiGetText(edit1),255,255,0) end end) اتمنا اني افادتك بس اللوحه كان فيها اخطاء كثيره يعتبر انا الي صنعت نص اللوحه
  17. يسلمو اي اخطاء بلمود تواصل معي خاص او عبر الفيس بوك https://www.facebook.com/fahdalmor3b1 مود روعة كفو واصل
  18. السلام عليكم اليوم حبيت اني اسوي لوحة فكره جدده و هي انك تخذ السيارات المجانيه و في نفس الوقت تقدر تسحب اي سيارات الي انت تشتريها من المعرض طبعا انا عرض صوره انشاء المود راح يعجبك طبعا اتمنا منكم ان يعجكم المود الرابط التحميل : http://up.top4top.net/downloadf-91ahqx1-zip.html اسف ما قدرت احط صوره بسبب النت ضعيف بس ارجوكم لا تغيرو الحقوق ألمود مش مشفر لعيونكم
  19. ؟؟ 30 دقيقة ؟ انا لما اسوي مود اخد به ساعه ونص + المود حق تابل ومنشور خخخخخخخخخخخخخخخخخخخخخخ مين الي تابل انا موت لحد لما سويت الاكواد و فعلت يسحب الفلوس و يحفظ الفلو في البنك يا اخوي خذ اكواداو و صلحها و جرب شغلو و شوف شكلووووووو خخخخخخخخخخخخخ تقلي حق تابل
  20. ؟ account data او sql و ليه ماتعملوش بأستخدام يكون احسن و تقل الاخطاء مينفعش لني مقدرش اعمل account data لني لسا مبتداء البرمجه
  21. السلام عليكم اليوم حاولت اني اسوي بنك بس ما يشتغل و ما اعرف ايش المشكله ممكن حل انا مسوي الماركرات في ملف Banks.xml فا انا راح احطو مع الكلينت و السيرفر اول شييء: Client Side addEventHandler ("onClientResourceStart",getResourceRootElement(getThisResource()), fuction () -- bank bankWindow = guiCreateWindow(201,104,290,287,"-- BANK NAME --",false) guiSetVisible (bankWindow,false) bankWindowDisplay = guiCreateEdit(0.0483,0.115,0.8897,0.108,"",true,bankWindow) guiEditSetReadOnly(bankWindowDisplay,true) bankWindow1 = guiCreateButton(0.0793,0.2404,0.1759,0.1638,"1",true,bankWindow) bankWindow2 = guiCreateButton(0.3,0.2404,0.1759,0.1638,"2",true,bankWindow) bankWindow3 = guiCreateButton(0.5241,0.2404,0.1759,0.1638,"3",true,bankWindow) bankWindow4 = guiCreateButton(0.0793,0.4425,0.1759,0.1638,"4",true,bankWindow) bankWindow5 = guiCreateButton(0.3,0.4425,0.1759,0.1638,"5",true,bankWindow) bankWindow6 = guiCreateButton(0.5241,0.4425,0.1759,0.1638,"6",true,bankWindow) bankWindow7 = guiCreateButton(0.0793,0.6481,0.1759,0.1638,"7",true,bankWindow) bankWindow8 = guiCreateButton(0.3034,0.6481,0.1759,0.1638,"8",true,bankWindow) bankWindow9 = guiCreateButton(0.5241,0.6481,0.1759,0.1638,"9",true,bankWindow) bankWindowClose = guiCreateButton(0.0793,0.8328,0.8448,0.0906,"Close",true,bankWindow) bankWindowStore = guiCreateButton(0.7448,0.2404,0.1759,0.1638,"Store",true,bankWindow) bankWindowWithdraw = guiCreateButton(0.7448,0.4425,0.1759,0.1638,"Withdraw",true,bankWindow) bankWindow0 = guiCreateButton(0.7448,0.6481,0.1759,0.1638,"0",true,bankWindow) enableWideScreen (getLocalPlayer()) elseif (source == bankWindow1) then addIntoBankEditDisplay ("1") elseif (source == bankWindow2) then addIntoBankEditDisplay ("2") elseif (source == bankWindow3) then addIntoBankEditDisplay ("3") elseif (source == bankWindow4) then addIntoBankEditDisplay ("4") elseif (source == bankWindow5) then addIntoBankEditDisplay ("5") elseif (source == bankWindow6) then addIntoBankEditDisplay ("6") elseif (source == bankWindow7) then addIntoBankEditDisplay ("7") elseif (source == bankWindow8) then addIntoBankEditDisplay ("8") elseif (source == bankWindow9) then addIntoBankEditDisplay ("9") elseif (source == bankWindow0) then addIntoBankEditDisplay ("0") elseif (source == bankWindowClose) then guiSetVisible (bankWindow,false) guiSetText (bankWindowDisplay,"") showCursor (false,false) elseif (source == bankWindowStore) then triggerServerEvent ("bankStoreMoney",getLocalPlayer(),tonumber(guiGetText(bankWindowDisplay))) elseif (source == bankWindowWithdraw) then triggerServerEvent ("bankWithdrawMoney",getLocalPlayer(),tonumber(guiGetText(bankWindowDisplay))) end end) ________________ Server Side addEventHandler("onResourceStart",getResourceRootElement(getThisResource()), function () bankr = xmlLoadFile("banks.xml"); addEventHandler("onResourceStop",getResourceRootElement(getThisResource()), function () xmlUnloadFile(bankr); end); -- BANK addEventHandler ("onResourceStart",getResourceRootElement(getThisResource()), function () local allBanks = xmlNodeGetChildren (bankr) for i,v in ipairs (allBanks) do local x = xmlNodeGetAttribute (v,"x") local y = xmlNodeGetAttribute (v,"y") local z = xmlNodeGetAttribute (v,"z") local bankname = xmlNodeGetValue (v) createBlip (x,y,z,52) local atmmarker = createMarker (x,y,z-1,"cylinder",2,0,255,0,100) local atm = createObject (2942,x,y+0.75,z-0.25) setElementData (atmmarker,"bank",bankname) end addEvent ("bankStoreMoney",true) addEventHandler ("bankStoreMoney",getRootElement(), function(amount) local playerMoney = getPlayerMoney (source) if (playerMoney < amount) then outputChatBox ("You Don't Have any Money in The Bank!!", source, 0, 255, 0, false) else local currentBank = xmlNodeGetAttribute (characterRoot,"bank") local newBank = tonumber (currentBank) + amount setPlayerMoney (source,getPlayerMoney (source) -amount) local bank = xmlNodeGetAttribute (characterRoot,"bank") triggerClientEvent (source,"lolmodRefreshBankInfoMenu",source,getPlayerMoney (source),bank) xmlSaveFile (root) end end end ) addEvent ("bankWithdrawMoney",true) addEventHandler ("bankWithdrawMoney",getRootElement(), function(amount) local charactername = getPlayerNametagText (source) local accountName = getAccountName(getPlayerAccount(source)) local characterindex = getCharacterIndexByCharacterName (accountName,charactername) if (characterindex) then local playerRoot = xmlFindChild (root,"player",findPlayerIndexByName (tostring(accountName))) local characterRoot = xmlNodeGetChildren (playerRoot,tonumber(characterindex)-1) if (characterRoot) then local currentBank = xmlNodeGetAttribute (characterRoot,"bank") if not (currentBank) then local currentBank = nil local currentBank = 0 end if (tonumber(currentBank) >= tonumber(amount)) then local newBank = tonumber (currentBank) - amount givePlayerMoney (source,amount) xmlNodeSetAttribute (characterRoot,"bank",newBank) outputChatBox ("You Money is Wathdraw!!", source, 0, 255, 0, false) local bank = xmlNodeGetAttribute (characterRoot,"bank") xmlSaveFile (root) else outputChatBox ("You Dont have any mone in the bank Him!!", source, 0, 255, 0, false) local cash = xmlNodeGetAttribute (characterRoot,"cash") local bank = xmlNodeGetAttribute (characterRoot,"bank") xmlSaveFile (root) end end end end) _______________________ Bank.xml "-2036.83" y="140.41" z="28.83">Trainstation ATM "-2675.41" y="634.08" z="14.45">SF Hospital ATM "-1955.3544287109" y="307.355223" z="35.461">Carshop ATM "2619.69" y="2344.76" z="10.8">vRock ATM "2589.14" y="1897.5" z="11">JobZone ATM اعتقد ان البنك ما فيه شييء صعب اصلا لني سويتو بي 30 دقيقه بظبط بس ما يشتغل ما اعرف وش الحل ارجوكم الرد سريع
×
×
  • Create New...