3DNAN_!
Members-
Posts
65 -
Joined
-
Last visited
Everything posted by 3DNAN_!
-
السلام عليكم كنت من فتره طلبت كود جعل الزر يفتح لوحه بس لرتب معينه وعطوني الاساسات وحاولت كتير بس فشلت فالو حد يعطيني كود مجرب ارجو اغلاق هذا الموضوع والاكتفاء بالموضوع الاول نظرا الي فتح هذا الموضوع عن طريق خطا في المتصفح وقيام عمليه التكرار
-
السلام عليكم كنت من فتره طلبت كود جعل الزر يفتح لوحه بس لرتب معينه وعطوني الاساسات وحاولت كتير بس فشلت فالو حد يعطيني كود مجرب
-
[ Mta Ar Group | قروب المبرمجين العرب على الوتساب ]
3DNAN_! replied to Mr.CoR's topic in Arabic / العربية
01280861500 الرمز +20 -
احط الكود بتاع الفلوس كدا كما هو ولا اغير فيه حاجه ؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟
-
طيب عايز كود يحول الفلوس تبقا مثلا 10,000 وال 100 ألف 100,000 وهكذا
-
جربت الكود بتاعك ظهر مشكله في الكود بتاع السيرفر السطر ال 16 addEventHandler ( 'onResourceStart', resourceRoot, function ( ) executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aText_ ( aEdit, Serial ) ' ) end ) addEvent ( 'SelectText' , true ) addEventHandler ( 'SelectText', root, function (aEdit) local aSerial = getPlayerSerial ( root ) if aEdit then executeSQLQuery("INSERT INTO aText_ ( aEdit, Serial ) VALUES( ? , ? )", aEdit, aSerial ) triggerEvent ( 'aRefresh_' , root ) end end ) addEvent ( 'aRefresh_' , true ) addEventHandler ( 'aRefresh_' , root , function () ::هنا المشكلة::local aSQL_ = executeSQLQuery ( 'SELECT * FROM aText_ WHERE Serial=?' , getPlayerSerial ( root ) ) if #aSQL_ ~= 0 then triggerClientEvent ( root, 'aGridSetSelected' , root , aSQL_ ) end end ) addEvent ( 'DeleteText' , true ) addEventHandler ( 'DeleteText', root, function ( aEdit, plr ) executeSQLQuery ( 'DELETE FROM aText_ WHERE aEdit = ?' , aEdit ) triggerEvent ( 'aRefresh_' , root ) outputChatBox ( '* [ TextSystem ] #ffffff: #60ff60You Have Been Successfully Delete Text #c0c0c0[ #ffff00'..aEdit..' #c0c0c0] #ff0000! ', plr , 255 , 0 , 0 , true ) end ) وظهر مشكلة ان في حاجه متعرفه في الكلينت ومش متعرفه في السيرفر بس مذكرش اسم السطر
-
طيب بتاكد بس عايز كود غلق زر وجعله غير مرئي إلا لرتب معينه وابي كود اني لما اكتب في اديت بوكس واضغط زر ينضاف اسم حساب الراسل في عمود في الجريد لست
-
الكودين غلط حق النقل وحق السحب ونا يظهر شئ بالدي بق ما عدلت شئ سويت لتسخ للكود ولصق
-
لا لا الفكره اني لما احدد لاعب من الجريد لست ينقله عالم وهمي في مكان محدد
-
طيب دلوقتي انا عايز برضو كود لما اختار شخص من الجريد لست واضغط زر ينقله مكان وعالم اخر محددين ممكن الكود ؟؟
-
طيب ديه محاولتي في زر سحب السياره بس منجحتش Client ---------- addEventHandler ( " onClientGUIClick " , root , function ( ) if ( source == GUIEditor.button[2] ) then local sele = guiGridListGetSelectedItem ( gridList ) if ( sele ~= -1 ) then local texte = guiGridListGetItemText ( gridList, sele, 1 ) triggerServerEvent ( "Destory", localPlayer , getPlayerFromName ( texte ) ) else outputChatBox ( "* Please Choose Player To Destory his car !", 255, 0, 0, true ) end end end ) server --------- addEvent ( "Destory", true ) addEventHandler ( "Destory", root, function ( plrkilled ) outputChatBox ( "* [ Police ] *" , root , 255 , 0 , 0 , true ) destroyElement ( source ) end )
-
طيب يا شباب أبي كود لما اضغط علي زر ينقلني لمكان معين في عالم ( ديمنشن معين )
-
هيا شغاله بس ما تتغير يعني انا دخلت السيرفر مثلا وهو فيه احمد ومحمد لو احمد خرج يفضل موجود بالجريد لست ولو محمد غير اسمه يفضل محمد ولو يوسف دخل ما ينضاف
-
السلام عليكم ابي كود لما احدد شخص من الجريد لست واضغط زر تتسحب سيارته وابي كود لما احدد شخص من الجريد واضغط زر يراقبه وعايز حد يصلح ليا الكود اللي هطرحه هو كود إظهار اللاعبين بالجريد لست المشكلة فيه عدد اللاعبين يظل ثابت يعني لو لاعب دخل ما يضيفه لو لاعب خرج ما يمسحه ولو لاعب عدل اسمه ما يتعدل gridList = grid -- اسم القريد ليست حقك addEventHandler ( 'onClientResourceStart', resourceRoot, function ( ) Refresh ( ) end ) function Refresh ( ) guiGridListClear ( gridList ) for i, v in ipairs ( getElementsByType ( 'player' ) ) do local Row = guiGridListAddRow ( gridList ) guiGridListSetItemText ( gridList, Row, 1, tostring ( getPlayerName ( v ) ), false, false ) guiGridListSetItemColor ( gridList, Row, 1, 0, 255, 0 ) end end
-
لما عدلت الكود عمل أخطاء في النسخ والمسح الأكواد بعدل التعديل client ----------- GUIEditor = { gridlist = {}, window = {}, button = {}, edit = {} } GUIEditor.window[1] = guiCreateWindow(197, 136, 619, 387, "[ Test mod ]", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetAlpha(GUIEditor.window[1], 0.88) guiSetVisible(GUIEditor.window[1],false) GUIEditor.gridlist[1] = guiCreateGridList(9, 27, 600, 279, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.9) GUIEditor.edit[1] = guiCreateEdit(12, 312, 323, 26, "", false, GUIEditor.window[1]) GUIEditor.button[1] = guiCreateButton(339, 312, 96, 26, "Add", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFBA603") GUIEditor.button[2] = guiCreateButton(440, 312, 96, 26, "Delete", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFD0000") GUIEditor.button[3] = guiCreateButton(541, 312, 64, 26, "Copy", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FF13E91D") GUIEditor.button[4] = guiCreateButton(140, 346, 334, 29, "Close Panel", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[4], "default-bold-small") guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFF6E205") addEvent ( 'aGridSetSelected' , true ) addEventHandler ( 'aGridSetSelected' , root , function (Table) guiGridListClear ( GUIEditor.gridlist[1] ) for i , v in ipairs (Table) do local aRow_ = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1] , aRow_ , 1 , v [ 'aEdit' ] , false , false ) guiGridListSetItemColor ( GUIEditor.gridlist[1] , aRow_ , 1 , math.random(0,255),math.random(0,255),math.random(0,255) ) end end ) addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[4] ) then guiSetVisible ( GUIEditor.window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) elseif ( source == GUIEditor.button[1] ) then local aEdit = guiGetText ( GUIEditor.edit[1] ) if ( aEdit ~= '' and aEdit ~= ' ' ) then triggerServerEvent ( 'SelectText' , localPlayer , aEdit ) outputChatBox ( '* [ System ] #FFFFFF: #60ff60You Have Been Successfully Select Text #c0c0c0[ #ff0000'..aEdit..' #c0c0c0] #ff0000! ' , 255 , 0 , 0 , true ) guiSetEnabled ( GUIEditor.button[1], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[1], true ) else outputChatBox ( '* [ System ] : You Must Write The Text !' , 255 , 0 , 0 ) guiSetEnabled ( GUIEditor.button[1], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[1], true ) end elseif ( source == GUIEditor.button[3] ) then local sel = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( sel ~= -1 ) then local aText = guiGridListGetItemText ( GUIEditor.gridlist[1], sel, 2 ) setClipboard ( '* The Text : '..aText..'' ) outputChatBox ( '* [ System ] : #60ff60You Are Successfully Copy The Text #00ffff[ #ff6020'..aText..'#00ffff ] #ff0000!' , 255 , 0 , 0 , true ) guiSetEnabled ( GUIEditor.button[3] , false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[3] , true ) else outputChatBox ( '* [ System ] : You Must Select a Text To Copy it !' , 255 , 0 , 0 , true ) guiSetEnabled ( GUIEditor.button[3], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[3] , true ) end elseif ( source == GUIEditor.button[2] ) then local sel = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( sel ~= -1 ) then local aDelete = guiGridListGetItemText ( GUIEditor.gridlist[1], sel, 2 ) triggerServerEvent ( 'DeleteText' , localPlayer , aDelete, localPlayer ) guiGridListClear ( GUIEditor.gridlist[1] ) guiSetEnabled ( GUIEditor.button[2] , false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[2], true ) else outputChatBox ( '* [ System ] : You Must Select a Text To Delete it !' , 255 , 0 , 0 , true ) guiSetEnabled ( GUIEditor.button[2] , false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[2] , true ) end end end ) server ----------- addEventHandler ( 'onResourceStart', resourceRoot, function ( ) executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aText_ ( aEdit ) ' ) end ) addEvent ( 'SelectText' , true ) addEventHandler ( 'SelectText', root, function (aEdit) if aEdit then executeSQLQuery("INSERT INTO aText_ ( aEdit ) VALUES( ? )", aEdit ) triggerEvent ( 'aRefresh_' , root ) end end ) addEvent ( 'aRefresh_' , true ) addEventHandler ( 'aRefresh_' , root , function () local aSQL_ = executeSQLQuery ( 'SELECT * FROM aText_') if #aSQL_ ~= 0 then triggerClientEvent ( root, 'aGridSetSelected' , root , aSQL_ ) end end ) addEvent ( 'DeleteText' , true ) addEventHandler ( 'DeleteText', root, function ( aEdit, plr ) executeSQLQuery ( 'DELETE FROM aText_ WHERE aEdit = ?' , aEdit ) triggerEvent ( 'aRefresh_' , root ) outputChatBox ( '* [ System ] #ffffff: #60ff60You Have Been Successfully Delete Text #c0c0c0[ #ffff00'..aEdit..' #c0c0c0] #ff0000! ', plr , 255 , 0 , 0 , true ) end )
-
طيب عايز تعديل علي الكود عشان يبقا للكل يعني لما اكتب نص واحفظه يظهر للجميع مش ليا انا بس
-
السلام عليكم كيف أحوالكم الحين بطرح عليكم أكواد هيا مو لي ذي الأكواد بس أبي اتعلم منها واغير فكرتها شويه صغننين المود عباره عن لوحه وجريد لست واديت بوكس و3 ازار طبعا لما اكتب بالاديت بوكس واضغط علي زر تنضاف للجريد لست وتنحفظ والزر الاخر لو حددت النص ودوسته ينمسح والتالت هو لما احدد النص واضغطه ينسخ النص الحين اللي أبي اعرفه هل الأكواد اللتي سوف اقوم بطرحها تجعل النص الذي ادخله يظهر للجميع ولا يظهر للشخص الذي قام بإدخال النص ده اول طلب تاني طلب صاحب المود مصمم الجريد لست وحاطط عمودين واحده # والتانيه النص تحت # يظهر رقم وتحت التكست يظهر النص المدخل انا ابي اشيل # واشيل الرقم اللي يظهر اسفلها بحيث تبقا الجريد لست مكونه من النص فقط اللي ادخلته ذا الكود كود اللوحه ذات نفسها التصميم ---------------------------------- GUIEditor = { gridlist = {}, window = {}, button = {}, edit = {} } local screenW, screenH = guiGetScreenSize() GUIEditor.window[1] = guiCreateWindow((screenW - 479) / 2, (screenH - 353) / 2, 479, 353, "# [ حفظ الكتابات | Save Text's / By ; MR.StoRm ] #", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetVisible ( GUIEditor.window[1] , false ) GUIEditor.gridlist[1] = guiCreateGridList(9, 20, 460, 225, false, GUIEditor.window[1]) guiGridListAddColumn(GUIEditor.gridlist[1], "#", 0.5) guiGridListAddColumn(GUIEditor.gridlist[1], "#YourMessage..!", 5) GUIEditor.button[1] = guiCreateButton(10, 292, 143, 29, "# [ Copy Text ] !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFF4AF08") GUIEditor.button[2] = guiCreateButton(169, 292, 143, 29, "# [ Select The Text ] !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FF29FE00") GUIEditor.button[3] = guiCreateButton(327, 292, 142, 29, "# [ Delete The Text ] !", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFD0000") GUIEditor.edit[1] = guiCreateEdit(9, 255, 460, 26, "", false, GUIEditor.window[1]) GUIEditor.button[4] = guiCreateButton(413, 326, 56, 17, "Close", false, GUIEditor.window[1]) Client ---------- addEvent ( 'aGridSetSelected' , true ) addEventHandler ( 'aGridSetSelected' , root , function (Table) guiGridListClear ( GUIEditor.gridlist[1] ) for i , v in ipairs (Table) do local aRow_ = guiGridListAddRow ( GUIEditor.gridlist[1]) guiGridListSetItemText ( GUIEditor.gridlist[1] , aRow_ , 2 , v [ 'aEdit' ] , false , false ) guiGridListSetItemText ( GUIEditor.gridlist[1] , aRow_ , 1 , i .. '-' , false , false ) guiGridListSetItemColor ( GUIEditor.gridlist[1] , aRow_ , 2 , math.random(0,255),math.random(0,255),math.random(0,255) ) guiGridListSetItemColor ( GUIEditor.gridlist[1] , aRow_ , 1 , math.random(0,255),math.random(0,255),math.random(0,255) ) end end ) addEventHandler ( 'onClientGUIClick', root, function ( ) if ( source == GUIEditor.button[4] ) then playSoundFrontEnd ( 30 ) guiSetVisible ( GUIEditor.window[1] , false ) showCursor ( false ) guiSetInputEnabled ( false ) elseif ( source == GUIEditor.button[2] ) then local aEdit = guiGetText ( GUIEditor.edit[1] ) if ( aEdit ~= '' and aEdit ~= ' ' ) then triggerServerEvent ( 'SelectText' , localPlayer , aEdit ) outputChatBox ( '* [ TextSystem ] #FFFFFF: #60ff60You Have Been Successfully Select Text #c0c0c0[ #ff0000'..aEdit..' #c0c0c0] #ff0000! ' , 255 , 0 , 0 , true ) outputChatBox ( '* [ TextSystem ] #FFFFFF: #00ffffThe Text Will Be Saved By #20c0ffSQL #ff0000!' , 255 , 0 , 0 , true ) guiSetEnabled ( GUIEditor.button[2], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[2], true ) else outputChatBox ( '* [ TextSystem ] : You Must Write The Text !' , 255 , 0 , 0 ) playSoundFrontEnd ( 30 ) guiSetEnabled ( GUIEditor.button[2], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[2], true ) end elseif ( source == GUIEditor.button[1] ) then local sel = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( sel ~= -1 ) then local aText = guiGridListGetItemText ( GUIEditor.gridlist[1], sel, 2 ) setClipboard ( '* The Text : '..aText..'' ) outputChatBox ( '* [ TextSystem ] : #60ff60You Are Successfully Copy The Text #00ffff[ #ff6020'..aText..'#00ffff ] #ff0000!' , 255 , 0 , 0 , true ) playSoundFrontEnd ( 30 ) guiSetEnabled ( GUIEditor.button[1], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[1], true ) else outputChatBox ( '* [ TextSystem ] : You Must Select a Text To Copy it !' , 255 , 0 , 0 , true ) playSoundFrontEnd ( 30 ) guiSetEnabled ( GUIEditor.button[1], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[1], true ) end elseif ( source == GUIEditor.button[3] ) then local sel = guiGridListGetSelectedItem ( GUIEditor.gridlist[1] ) if ( sel ~= -1 ) then local aDelete = guiGridListGetItemText ( GUIEditor.gridlist[1], sel, 2 ) triggerServerEvent ( 'DeleteText' , localPlayer , aDelete, localPlayer ) guiGridListClear ( GUIEditor.gridlist[1] ) playSoundFrontEnd ( 30 ) guiSetEnabled ( GUIEditor.button[3], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[3], true ) else outputChatBox ( '* [ TextSystem ] : You Must Select a Text To Delete it !' , 255 , 0 , 0 , true ) playSoundFrontEnd ( 30 ) guiSetEnabled ( GUIEditor.button[3], false ) setTimer ( guiSetEnabled, 6000 , 1, GUIEditor.button[3], true ) end end end ) server --------- addEventHandler ( 'onResourceStart', resourceRoot, function ( ) executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aText_ ( aEdit, Serial ) ' ) end ) addEvent ( 'SelectText' , true ) addEventHandler ( 'SelectText', root, function (aEdit) local aSerial = getPlayerSerial ( source ) if aEdit then executeSQLQuery("INSERT INTO aText_ ( aEdit, Serial ) VALUES( ? , ? )", aEdit, aSerial ) triggerEvent ( 'aRefresh_' , source ) end end ) addEvent ( 'aRefresh_' , true ) addEventHandler ( 'aRefresh_' , root , function () local aSQL_ = executeSQLQuery ( 'SELECT * FROM aText_ WHERE Serial=?' , getPlayerSerial ( source ) ) if #aSQL_ ~= 0 then triggerClientEvent ( source, 'aGridSetSelected' , source , aSQL_ ) end end ) addEvent ( 'DeleteText' , true ) addEventHandler ( 'DeleteText', root, function ( aEdit, plr ) executeSQLQuery ( 'DELETE FROM aText_ WHERE aEdit = ?' , aEdit ) triggerEvent ( 'aRefresh_' , source ) outputChatBox ( '* [ TextSystem ] #ffffff: #60ff60You Have Been Successfully Delete Text #c0c0c0[ #ffff00'..aEdit..' #c0c0c0] #ff0000! ', plr , 255 , 0 , 0 , true ) end ) لو الأكواد تظهر النص اللي انا دخلته للجميع اذا تمام ما في مشكلة لاكن لو ما تظهر للجميع ابي تعدلون الكود انه يظهر للجميع النص وتاني شئ أبي تشيلون # وابي يظهر بالجريد لست النص عالطول من غير اي شئ وأبي كود لما اضغط علي زر تحقق اذا كان الرتبه اللي ضغطت كونسل او لا لو كونسل يفتح لها اللوحه لو مو كونسل ما يفتح لها
-
[ Heroes Server | Zombie | Deathmatch | Freeroam ] ابطال الرسمي
3DNAN_! replied to A7M8D's topic in Arabic / العربية
سيرفر رائع مودات رائعة وحصرية إدارة رائعة سيرفر كلــه رائع -
طيب ماشي الكود شغال تمام بس عايز لازم اطفي مودالتاجات ديه اول مشكله تاني مشكله ان لما اجي اكتب بالشات والشات مغلق ما يكتب فقطانا عايز لما حديكتب والشات مغلق ما يكتب ويقوله الشات مغلق
-
شباب يعني الحين الكود بيكون كده addEventHandler ( "onClientGUIClick" , root , if source == button then cancelEvent ( onClientChatMessage ) outputChatBox ( "تم إغلاق الشات" , 0 , 0 , 0 , true ) end ) removeEventHandler ( "onClientGUIClick" , root , if source == button then cancelEvent ( onClientChatMessage ) outputChatBox ( "تم فتح الشات" , 0 , 0 , 0 , true ) end ) انا عايز لما اغلق الشات يظهر للجميع انه تم اغلاق الشات ولو حد جا يتكلم يكتب الشات مغلق ونفس الزر يفتح الشات
-
السلام عليكم ابي كود لما ادوس علي زر يغلق الشات ولما ادوس مره اخري يفتح الشات ولو احد حاول يكتب والشات مغلق يقوله الشات مغلق
