Jump to content

nxFairlywell

Members
  • Posts

    1,849
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by nxFairlywell

  1. طيب صححه و يقدر يحط التايمر مع الفنكشن الي طرحته له اول والساورس يكون معرف <3
  2. وش علط هو حرف ناقص وصلحته
  3. حياك الله حبيبي setTimer( function( ) removeEventHandler('newEvent', root, checkGroup) triggerClientEvent('onClick', source) end, 60000*60*20, 1, true ) ضيفها لملف السيرفر زي ماضفت الطلب الاول يعني اضافه وليس تعديل =)
  4. اممم عندك ..Name ماهي معرفه Name = ??? لازم تعرفه او تستبدلها بـ ..getPlayerName(source) EDIT# : جرب كذا addEvent("newEvent",true) function checkGroup( ) ACCOUNT = getAccountName(getPlayerAccount(source)) Name = getPlayerName(source) if not ( isObjectInACLGroup("user."..ACCOUNT, aclGetGroup("ex") ) ) then triggerClientEvent('onClick', source) else outputChatBox("** انت مخالف لايمكنك ان تترقى "..Name,source,math.random(0,255),math.random(0,255),math.random(0,255)) end end addEventHandler("newEvent", root, checkGroup)
  5. مشوار + يبي لك تعدل على لوحة الادمنيه
  6. استبدل هذا الفنكشن بَـ اللي عندك من اول او الي طرحته لي استبدله باللي تحت .. xMainFunctions_ = function ( ) local row, col = guiGridListGetSelectedItem ( GiveAdmin.gridlist[1] ) local Group = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,3 )); local Price = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,4 )); local Name = tostring ( guiGridListGetItemText(GiveAdmin.gridlist[1],row,2 )); if ( row and col and row ~= -1 and col ~= -1 ) then triggerServerEvent('newEvent', localPlayer) addEvent('onClick',true) addEventHandler('onClick', root, function ( ) triggerServerEvent("Accept:the:request",localPlayer,Group,Price,Name) end ) ; else outputChatBox("* الرجاء اختيار رتبةة !",math.random(0,255),math.random(0,255),math.random(0,255)) end end addEventHandler("onClientGUIClick",GiveAdmin.button[1],xMainFunctions_,false); xBindFunction_ = function () guiSetVisible(GiveAdmin.Window[1],not guiGetVisible(GiveAdmin.Window[1])); showCursor(guiGetVisible(GiveAdmin.Window[1])); end bindKey(Key,"down",xBindFunction_); ضيف هذا لملف السيرفر بدون ماتعدل ملف السيرفر يعني اضافة بس addEvent("newEvent",true) function checkGroup( ) account = getAccountName(getPlayerAccount(source)) if not ( isObjectInACLGroup("user."..account, aclGetGroup("Admin-ex") ) ) then triggerClientEvent('onClick', source) end end addEventHandler("newEvent", root, checkGroup)
  7. اطرح الكود يوم يضغط على الزر ويرقيه
  8. والله ما اظن بس الاستضافه ماتتحمل اكبر من 9 ميقا حسب علمي ودائماً استخدم الفايل زيلا وله شروحات باليوتيوب اذا تبي تكلم عناد لاتكلمه هنا نصيحه لانك بتتعب وماراح يخش المنتدى لأن له فتره برا المنتدى , هذا ايميله حق دعم ديلوكس هوسـت [email protected]
  9. وعليكم السلام ورحمة الله وبركاته , اضغط هنا
  10. طيب اذا غيرت الحدث onPlayerJoin يعني يوم يخش اللاعب يحفظ اسماء الي بالسيرفر في تيبل
  11. الله يعطيك العافيه بداية حلوهـ غيرك يبدأ بـَ لوحة قوانين وآصللء ولاتوقف وعقبال نشوفك من كبآر آلمبرمجين العرب ,
  12. وانت بخـــــــــير وصححه وسلآآمهه ياعيال نامو الحين بكره فيه تقطيع رؤوس اما تنام ليلة العيد ، انا لو انام ماصحى للظهر يارب ترقد الساعه 5:45
  13. وانت بخـــــــــير وصححه وسلآآمهه ياعيال نامو الحين بكره فيه تقطيع رؤوس
  14. [quote name=™!>VàLéNTiNô لكل من ساعدنى + شكر خاص لجنرال يرجى الاغلاق من المشرفين العفو ^_^"
  15. يعني تجي بَ ذي الطريقه ولآ ؟ addEventHandler('onResourceStart', resourceRoot, function( ) newSQL = executeSQLQuery ( "CREATE TABLE IF NOT EXISTS playersname ( column ) " ) for _, name in ipairs ( getElementsByType(' player ') ) do insertToColumn = executeSQLQuery ( "INSERT INTO `test`(`column`) VALUES( ? )", getPlayerName ( name ) ) local data = executeSQLQuery ( "SELECT * FROM playername WHERE column = ?", name ) setTimer( function( ) outputChatBox(tostring(data)) end , 1000, 1, true ) end end )
  16. آلكود آلي نستخدمه useful شغآل ميه ميه معي -,- حتى انا بس صاحب الموضوع مو حاط السورس حق الكود
  17. ألفنكشن مو من اللعبه نفسها من هذا Useful Function يعني افتح الصفحه ذي https://wiki.multitheftauto.com/wiki/DxDrawGifImage تحصل كلمة Code وتحته كود انسخه وحطه بملف السكربت وبعدين ضبط الفنكشن مثلا كذا window = guiCreateWindow( 0,0,1366,768 ) button = guiCreateButton(0,0,500,200) --- لأازم تحط الكود الي تحت انسخه وحطه لآآآآآزم --- function dxDrawGifImage ( x, y, w, h, path, iStart, iType, effectSpeed ) local gifElement = createElement ( "dx-gif" ) if ( gifElement ) then setElementData ( gifElement, "gifData", { x = x, y = y, w = w, h = h, imgPath = path, startID = iStart, imgID = iStart, imgType = iType, speed = effectSpeed, tick = getTickCount ( ) }, false ) return gifElement else return false end end addEventHandler ( "onClientRender", root, function ( ) local currentTick = getTickCount ( ) for index, gif in ipairs ( getElementsByType ( "dx-gif" ) ) do local gifData = getElementData ( gif, "gifData" ) if ( gifData ) then if ( currentTick - gifData.tick >= gifData.speed ) then gifData.tick = currentTick gifData.imgID = ( gifData.imgID + 1 ) if ( fileExists ( gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) ) then gifData.imgID = gifData.imgID setElementData ( gif, "gifData", gifData, false ) else gifData.imgID = gifData.startID setElementData ( gif, "gifData", gifData, false ) end end dxDrawImage ( gifData.x, gifData.y, gifData.w, gifData.h, gifData.imgPath .."".. gifData.imgID ..".".. gifData.imgType ) end end end ) ------- بعد هذا السطر تسوي الي تبيه عادي -------- addEventHandler("onClientGUIClick", root, function( ) if ( source == button ) then gif = dxDrawGifImage ( 769, 175, 193, 145, "nyancat", 1, "png", 120 ) end end) هذا فقط مثال فيه كود فوق اسم الفنكشن حقه dxDrawGifImage لازم تحطه لأنه مو معرف من اللعبه والي حاطه .. شخص مادري منهو ^^
  18. انت الحين تبي تعطي اللاعب تيم nil يعني بدون تيم طيب سويه نفس الطريقة الي قلتلك واستبدل هذا setPlayerTeam( playerName, nil ) بـ هذا setPlayerTeam ( getPlayerFromName(playerName), nil )
  19. وعليكم السلآم , انصحك بإستضافة لآين هوست مجربها والحمدلله لوحة تحكم حلوة وعندهم حماية و تقدر تسوي عدة حسابات مثلا خويك تبيه يخش الاستضافه بحساب ثاني وتحط له خصائص زي يطفي السيرفر او يشغله وغير هذا اسعارهم مناسبه و سلموني السيرفر خلال 5 او 8 دقائق من ارسلت الفلوس ودعم متميز انصحك اذا تبي سيرفر مافيه لاق وحماية ولوحة تحكم ودعم فني 100% ء www.wmisc.sa
  20. ارجع الصفحه السابقه اخر رد حقك تحصل في الكود الي كتبته هذا السطر local playerName = guiGridListGetItemText ( grid1, guiGridListGetSelectedItem ( grid1 ), 1 ) انت بعد هذا السطر مسوي ترايقر triggerServerEvent حط داخل الترايقر كذا مثلا triggerServerEvent("triggerName", localPlayer, playerName) وحط داخل الفنكشن الي بالسيرفر هذا المتغير function ( playerName ) بعدين حط كذا setPlayerName ( playerName, "NAME" )
  21. local data = executeSQLQuery ( "SELECT * FROM PlayerMoney WHERE AccountName = ?" ........... وش وظيفة هذي ?" بآخر السطر الي فوق
  22. اهلين جنرال ,, مالها اي فايده هنا tostring استخادمك للداله لأن بالاساس الاديت راح يعطيك سترنق , string guiGetText ( element guiElement ) Returns a string containing the requested element's text, or false if the gui element passed to the function is invalid. آسف كان فيه خطأ بسيط , عدلته . لا بس اقلك يعني يقدر يستخدمها ويقدر يوخرها الي يبي بس انا اكثر شي احطها عشان اتأكد انه سترنق
  23. معقوله صار لك اكثر مني بالبرمجه منت عارف سترنق tostring يعني عندك مثلا رقم 4 local four = 4 outputChatBox(tostring(four)) كلنا نعرف انه النص بالشات يجي سترنق مو رقم اذن يحول لك الرقم ويحطه بين علامتين "" "4"
×
×
  • Create New...