mr.sony

Members
  • Content count

    76
  • Joined

  • Last visited

Community Reputation

5 Neutral

3 Followers

About mr.sony

  • Rank
    Transformer

Details

  • Location
    khartom
  1. *مسـاعدة : أحتاج كود

    تشكرووو جميعاااا ظبط معي
  2. *مسـاعدة : أحتاج كود

    اه جربتهم والله بس ماظبطو تسلم حب على المساعدة
  3. السلام عليكم ورحمة الله وبركاته (لوحة) dx عندي مشكلة في مود قوانين هي تفتح من ماركر والمشكلة لما يلمس واحد الماركر تظهر للكل وعايز احل المشكلة دي ... صورة أكواد --_________________________________________________________________ --_________________________________________________________________ -- Dx Window for Server Rules by MKH -- You can more anywhere you want -- Keep copyrights and enjoy --_________________________________________________________________ --_________________________________________________________________-1952.00964,433.00137,-1.20000 local bR, bG, bB = 233, 144, 16 -- Window Bar Color! \n* local alpha = 229 -- Window Bar Alpha local tR, tG, tB = 255, 255, 255 -- Title Color local serverRules = "❍【 حياكـم الله فـي مدينـة الإنتـاج الإعلامـي】❍ \n ___________________________________________________ \n \n ❖] التخريب = سلاب 100 والتكرار = كيك [❖ \n ❖] طلب الرتبة = ميوت 5 دقائق [❖ \n ❖] الشتم إو السب = ميوت 5 دقائق [❖ \n ❖] النشر = ميوت 16 ساعة [❖ \n ❖] الترقية على حسب أدائك في التصوير [❖ \n ❖] محاولة التهكير = باند مؤبد [❖ \n ___________________________________________________ \n \n \n \n By: MƬA ƑἷLMЄَƳ" local sX, sY = guiGetScreenSize () local pX, pY = sX/1280, sY/720 local pickups = { {1479.54736,-1650.41150,14.14844, 3, 1239, 0}, } local markers = { {1479.54736,-1650.41150,14.14844, "cylinder", 0.5, 255, 0, 0, 0}, } -------------------------------------------------------------------- for i, v in ipairs ( pickups ) do pickup = createPickup ( unpack ( v ) ) end for i, k in ipairs ( markers ) do marker = createMarker ( unpack ( k ) ) end function dxGui3ama () dxDrawRectangle(pX*327, pY*106, pX*713, pY*44, tocolor(bR, bG, bB, alpha), true) dxDrawRectangle(pX*337, pY*150, pX*693, pY*411, tocolor(0, 0, 0, 150), true) dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640 + 1, pY*113 + 1, pX*709 + 1, pY*140 + 1, tocolor(0, 0, 0, 255), 2.00, "default", "center", "top", true, false, true, true, false) dxDrawText("❖ 『قوانيـن العـامة للسيرفـر』❖", pX*640, pY*113, pX*709, pY*140, tocolor(tR, tG, tB, 255), 2.00, "default", "center", "top", true, false, true, true, false) dxDrawText(serverRules, pX*347, pY*160, pX*1020, pY*551, tocolor(255, 255, 255, 255), 2.00, "default-bold", "center", "top", false, false, true, false, false) end function onMarkerHIT () addEventHandler("onClientRender", root, dxGui3ama) end addEventHandler("onClientMarkerHit", marker, onMarkerHIT) function onMarkerLeave () removeEventHandler("onClientRender", root, dxGui3ama) end addEventHandler("onClientMarkerLeave", marker, onMarkerLeave) fileDelete('client.lua')
  4. يسلموووا إنت دايما تعرض لنا المودات النادرة والرائعة _واصل بدون فواصل #
  5. يسلموووااا أنا كنت أبحث عن هذا المود من زمن تسلم تسلم ...
  6. ف اي سطر احطه ؟ لاني جربت حطيته في اخر الاكواد خرب المود
  7. حلووووووو مرة مرة مرة يسلمووو بطل والله ممكن اقترح اضافة مهمة للمود %ممكن تخلي اللاعب ما يقدر يسحب رتبة حساب معين ويكون كفووووو 100
  8. اوك بروح لدروس البرمجة وان شاء الله بصحله يسلمــوااا
  9. function clickTimer( element, timer ) guiSetEnabled( element, false ) setTimer( guiSetEnabled, timer * 1000, 1, element, true ) end; function sendNewMessage( player ) if ( isTimer( sendTimer ) ) then return end if ( chat_Windows[player] and isElement( chat_Windows[player].window ) ) then local message = guiGetText( chat_Windows[player].editBox ) for _, badWord in ipairs( badWordsTable ) do if ( string.find( message, badWord[1] ) ) then guiSetProperty( chat_Windows[player].editBox, 'NormalTextColour', 'FFFF0000' ) guiSetText( chat_Windows[player].editBox, 'السب والشتم سيعرضك للمخالفات !' ) guiSetEnabled( chat_Windows[player].editBox, false ) guiEditSetReadOnly( chat_Windows[player].editBox, true ) setTimer( function( ) guiSetText( chat_Windows[player].editBox, '' ) guiSetEnabled( chat_Windows[player].editBox, true ) guiEditSetReadOnly( chat_Windows[player].editBox, false ) guiSetProperty( chat_Windows[player].editBox, 'NormalTextColour', 'FF000000' ) end, 3000, 1 ) sendTimer = setTimer( function( ) killTimer( sendTimer ) end, 2500, 1 ) return end end if ( string.len( message ) > 0 ) then local oldMessages = guiGetText( chat_Windows[player].memo ) local newString = oldMessages..getPlayerName( Cplayer ):gsub( '#%x%x%x%x%x%x', '' )..' : '..message..'\n' guiSetText( chat_Windows[player].memo, newString ) guiSetText( chat_Windows[player].editBox, '' ) guiMemoSetCaretIndex( chat_Windows[player].memo, string.len( oldMessages ) ) triggerServerEvent( 'onServerSendMessage', Cplayer, player, message ) sendTimer = setTimer( function( ) killTimer( sendTimer ) end, 2500, 1 ) end end end; function destroyChattingWindow( player ) if ( chat_Windows[player] and isElement( chat_Windows[player].window ) ) then destroyElement( chat_Windows[player].window ) chat_Windows[player] = nil end end; function removePlayer( player ) local name = getPlayerName( player ) for i = 0, guiGridListGetRowCount( GUIEditor.gridlist[1] ) do if ( guiGridListGetItemText( GUIEditor.gridlist[1], i, 1 ) == name ) then guiGridListRemoveRow( GUIEditor.gridlist[1], i ) end end end; function privateChatClicks( ) if ( getElementType( source ) ~= 'gui-button' ) then return end local parent = getElementParent( source ) if ( parent == false or not parent ) then return end local player = getPlayerFromName( guiGetText( parent ) ) if ( player == false or not player ) then return end if ( source == chat_Windows[player].SendButton ) then sendNewMessage( player ) local Tick = getTickCount() if tick and tick + tonumber(1000) > Tick then return outputChatBox('انتظر قليلا ثم حاول مرة أخرى',255,0,0) else tick = getTickCount() end elseif ( source == chat_Windows[player].Xclose ) then destroyChattingWindow( player ) elseif ( source == chat_Windows[player].Emoji ) then if ( isTimer( emojiTimer ) ) then return end local oldMessages = guiGetText( chat_Windows[player].memo ) local newString = oldMessages..getPlayerName( Cplayer ):gsub( '#%x%x%x%x%x%x', '' )..' : '..'^ᴥ^'..'\n' guiSetText( chat_Windows[player].memo, newString ) guiMemoSetCaretIndex( chat_Windows[player].memo, string.len( oldMessages ) ) triggerServerEvent( 'onServerSendMessage', Cplayer, player, '^ᴥ^' ) guiSetEnabled( chat_Windows[player].Emoji, false ) emojiTimer = setTimer( function( ) if ( chat_Windows[player] and isElement( chat_Windows[player].Emoji ) ) then guiSetEnabled( chat_Windows[player].Emoji, true ) end killTimer( emojiTimer ) end, 2500, 1 ) end end; addEventHandler( 'onClientGUIClick', root, privateChatClicks ); addEventHandler( 'onClientGUIClick', root, function( ) if ( source == GUIEditor.button[1] ) then clickTimer( GUIEditor.button[1], 3 ) local Sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( Sel == -1 ) then outputChatBox( '#ff0000خطــأ,الرجاء تحديد اللاعب المراد بدأ المحادثة معه', 255, 255, 255, true ) return end local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], Sel, 1 ) ) if ( player == Cplayer ) then outputChatBox( '#FF0000خطـأ,لا يمكنك التحدث مع نفسكـ', 255, 255, 255, true ) return end local serial = getElementData( player, 'chatSystem;playerSerial' ) triggerServerEvent( 'onServerCheckIfBlocked', Cplayer, serial ) elseif ( source == GUIEditor.button[4] ) then clickTimer( GUIEditor.button[4], 5 ) if ( guiGetText( GUIEditor.button[4] ) == 'إغلاق الدردشة' ) then guiSetEnabled( GUIEditor.button[1], false ) guiSetEnabled( GUIEditor.button[3], false ) guiSetEnabled( GUIEditor.button[2], false ) guiSetEnabled( GUIEditor.gridlist[1], false ) guiSetEnabled( GUIEditor.combobox[1], false ) guiSetEnabled( GUIEditor.edit[1], false ) guiSetEnabled( GUIEditor.checkbox[1], false ) guiSetText( GUIEditor.button[4], 'تشغيل الدردشة' ) setElementData( Cplayer, 'chatStatus', 'Offline' ) triggerServerEvent( 'onServerChangeStatus', Cplayer, 'Offline' ) for cNumber, _ in pairs( chat_Windows ) do if ( chat_Windows[cNumber] and isElement( chat_Windows[cNumber].window ) ) then destroyElement( chat_Windows[cNumber].window ) chat_Windows[cNumber] = nil end end else guiSetEnabled( GUIEditor.button[1], true ) guiSetEnabled( GUIEditor.button[3], true ) guiSetEnabled( GUIEditor.gridlist[1], true ) guiSetEnabled( GUIEditor.combobox[1], true ) guiSetEnabled( GUIEditor.edit[1], true ) guiSetEnabled( GUIEditor.checkbox[1], true ) guiSetText( GUIEditor.button[4], 'إغلاق الدردشة' ) setElementData( Cplayer, 'chatStatus', 'Online' ) triggerServerEvent( 'onServerChangeStatus', Cplayer, 'Online' ) end elseif ( source == GUIEditor.button[5] ) then guiSetVisible( GUIEditor.window[1], false ) showCursor( false ) guiSetInputEnabled( false ) for cNumber, _ in pairs( chat_Windows ) do guiSetVisible( chat_Windows[cNumber].window, false ) end elseif ( source == GUIEditor.gridlist[1] ) then local Sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( Sel == -1 ) then guiSetEnabled( GUIEditor.button[2], false ) guiSetText( GUIEditor.button[2], '【حظـر】' ) else guiSetEnabled( GUIEditor.button[2], true ) local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], Sel, 1 ) ) local serial = getElementData( player, 'chatSystem;playerSerial' ) if ( serial and string.len( serial ) == 32 ) then triggerServerEvent( 'onServerCheckBlockStatus', Cplayer, serial ) end end elseif ( source == GUIEditor.button[2] ) then clickTimer( GUIEditor.button[2], 3 ) local Sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( Sel == -1 ) then return end local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], Sel, 1 ) ) local serial = getElementData( player, 'chatSystem;playerSerial' ) if ( guiGetText( GUIEditor.button[2] ) == 'تم الحظر' ) then triggerServerEvent( 'onServerBlockPlayer', Cplayer, serial, player ) else triggerServerEvent( 'onServerUnblockPlayer', Cplayer, serial ) end elseif ( source == GUIEditor.button[3] ) then clickTimer( GUIEditor.button[3], 10 ) local Sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( Sel == -1 ) then outputChatBox( '#FF0000•خطـأ يرجى تحديد اللاعب المراد نكزه', 255, 255, 255, true ) return end local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], Sel, 1 ) ) local serial = getElementData( player, 'chatSystem;playerSerial' ) triggerServerEvent( 'onServerSendPoke', Cplayer, player, serial ) elseif ( source == GUIEditor.combobox[1] ) then local Sel = guiComboBoxGetSelected( GUIEditor.combobox[1] ) if ( Sel == -1 ) then return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end elseif ( source == GUIEditor.checkbox[1] ) then if ( guiCheckBoxGetSelected( GUIEditor.checkbox[1] ) == true ) then setElementData( Cplayer, 'donotDisturb', 'Enabled' ) triggerServerEvent( 'onServerChangeStatus', Cplayer, 'Online' ) else setElementData( Cplayer, 'donotDisturb', nil ) triggerServerEvent( 'onServerChangeStatus', Cplayer, 'Online' ) end end end ); local txtValue = 0 function showWriteMessage( player, name ) if ( isTimer( writeTimer ) ) then return end guiSetText( chat_Windows[player].Label, '* ['..name..'] is typing') guiSetVisible( chat_Windows[player].Label, true ) writeTimer = setTimer( function( ) if ( txtValue >= 3 ) then guiSetText( chat_Windows[player].Label, '* ['..name..'] is typing' ) txtValue = 0 end guiSetText( chat_Windows[player].Label, guiGetText( chat_Windows[player].Label )..'.' ) txtValue = txtValue + 1 end, 500, 0 ) end; addEvent( 'onClientShowWrite', true ); addEventHandler( 'onClientShowWrite', root, showWriteMessage ) function hideWriteMessage( player ) if ( isTimer( writeTimer ) ) then killTimer( writeTimer ) end guiSetText( chat_Windows[player].Label, '* [N/A] is typing ...') guiSetVisible( chat_Windows[player].Label, false ) end; addEvent( 'onClientHideWrite', true ); addEventHandler( 'onClientHideWrite', root, hideWriteMessage ) addEventHandler( 'onClientGUIChanged', root, function( ) local parent = getElementParent( source ) if ( not parent ) then return end local player = getPlayerFromName( guiGetText( parent ) ) if ( not player ) then return end if ( source == chat_Windows[player].editBox ) then if ( guiGetText( chat_Windows[player].editBox ) ~= '' ) then triggerServerEvent( 'onServerCheckShow', Cplayer, player, getPlayerName( Cplayer ) ) local messageStringText = guiGetText( chat_Windows[player].editBox ) checkIfTextChanged( player, messageStringText ) else triggerServerEvent( 'onServerCheckHide', Cplayer, player ) end end end ); function checkIfTextChanged( player, text ) setTimer( function( ) if ( guiGetText( chat_Windows[player].editBox ) == text ) then triggerServerEvent( 'onServerCheckHide', Cplayer, player ) end end, 1000, 1 ) end; addEvent( 'onClientPokePlayer', true ); addEventHandler( 'onClientPokePlayer', root, function( pokedBy ) if ( getElementData( Cplayer, 'donotDisturb' ) ~= 'Enabled' ) then playSound( 'Wakeup.mp3' ) outputChatBox( '#FFFF00• لوحة الدردشة :#FFFFFF اللاعب: [ '..pokedBy..' ] - قام بنكزكـ !', 255, 255, 255, true ) end end ); addEvent( 'onClientChangeButton', true ); addEventHandler( 'onClientChangeButton', root, function( Text ) guiSetText( GUIEditor.button[2], Text ) end ); function buildChattingWith( ) local row, column = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( row == -1 or column == -1 ) then return end local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], row, column ) ) if ( getElementData( player, 'chatStatus' ) ~= 'Online' ) then outputChatBox( '#FF0000• خطـأ :#FFFFFF عذرا لايمكنك مراسلة اللاعب إنه غير متصل .. !', 255, 255, 255, true ) return end if ( not chat_Windows[player] ) then BuildChatting( player ) guiBringToFront( chat_Windows[player].window ) end end; addEvent( 'buildChattingWith', true ); addEventHandler( 'buildChattingWith', root, buildChattingWith ) function privateChatDoubleClicks( ) if ( source == GUIEditor.gridlist[1] ) then local Sel = guiGridListGetSelectedItem( GUIEditor.gridlist[1] ) if ( Sel == -1 ) then return end local player = getPlayerFromName( guiGridListGetItemText( GUIEditor.gridlist[1], Sel, 1 ) ) if ( player == Cplayer ) then outputChatBox( '#FF0000•خطـأ لايمكنكـ مراسلة نفسكـ', 255, 255, 255, true ) return end local serial = getElementData( player, 'chatSystem;playerSerial' ) triggerServerEvent( 'onServerCheckIfBlocked', Cplayer, serial ) end end; addEventHandler( 'onClientGUIDoubleClick', root, privateChatDoubleClicks ); addEvent( 'onClientReceiveMessage', true ); addEventHandler( 'onClientReceiveMessage', root, function( player, message ) if ( not chat_Windows[player] ) then BuildChatting( player ) end local oldMessages = guiGetText( chat_Windows[player].memo ) local newString = oldMessages..getPlayerName( player ):gsub( '#%x%x%x%x%x%x', '' )..' : '..message..'\n' guiSetText( chat_Windows[player].memo, newString ) guiMemoSetCaretIndex( chat_Windows[player].memo, string.len( oldMessages ) ) if ( guiGetVisible( GUIEditor.window[1] ) == false ) then if ( getElementData( Cplayer, 'donotDisturb' ) ~= 'Enabled' ) then outputChatBox( '#FFFF00• لوحة الرسائل :#FFFFFF اللاعب : [ '..getPlayerName( player )..' ] - أرسل إليك رسالة !', 255, 255, 255, true ) playSound( 'Message.mp3' ) end end end ); function addPlayer( player ) local data = getElementData( player, 'chatStatus' ) or 'Online' local name = getPlayerName( player ) local r, g, b = getPlayerNametagColor( player ) local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, data, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, r, g, b ) if ( data == 'Online' ) then guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 0, 200, 0 ) else guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 200, 0, 0 ) end end; function addOnlinePlayer( player ) local data = getElementData( player, 'chatStatus' ) or 'Online' if ( data == 'Online' ) then local name = getPlayerName( player ) local r, g, b = getPlayerNametagColor( player ) local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, data, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, r, g, b ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 0, 200, 0 ) end end; function addOfflinePlayer( player ) local data = getElementData( player, 'chatStatus' ) or 'Offline' if ( data == 'Offline' ) then local name = getPlayerName( player ) local r, g, b = getPlayerNametagColor( player ) local row = guiGridListAddRow( GUIEditor.gridlist[1] ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 1, name, false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], row, 2, data, false, false ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 1, r, g, b ) guiGridListSetItemColor( GUIEditor.gridlist[1], row, 2, 200, 0, 0 ) end end; addEvent( 'onClientUpdateStatus', true ); addEventHandler( 'onClientUpdateStatus', root, function( player, status ) if ( status == 'Online' ) then removePlayer( player ) local Sel = guiComboBoxGetSelected( GUIEditor.combobox[1] ) if ( Sel == -1 ) then addPlayer( player ) return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end else destroyChattingWindow( player ) removePlayer( player ) local Sel = guiComboBoxGetSelected( GUIEditor.combobox[1] ) if ( Sel == -1 ) then addPlayer( player ) return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end end end ); addEvent( 'onClientDestroyChats', true ); addEventHandler( 'onClientDestroyChats', root, function( player ) destroyChattingWindow( player ) end ); function player_Join( player ) if ( player ~= Cplayer ) then local Sel = guiComboBoxGetSelected( GUIEditor.combobox[1] ) if ( Sel == -1 ) then addPlayer( player ) return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end end end; addEvent( 'onClientAddPlayer', true ); addEventHandler( 'onClientAddPlayer', root, player_Join ) function player_Quit( player ) removePlayer( player ) destroyChattingWindow( player ) end; addEvent( 'onClientRemovePlayer', true ); addEventHandler( 'onClientRemovePlayer', root, player_Quit ) function player_ChangedName( player, name ) for i = 0, guiGridListGetRowCount( GUIEditor.gridlist[1] ) do if ( guiGridListGetItemText( GUIEditor.gridlist[1], i, 1 ) == name ) then guiGridListRemoveRow( GUIEditor.gridlist[1], i ) end end destroyChattingWindow( player ) setTimer( function( ) local Sel = guiComboBoxGetSelected( GUIEditor.combobox[1] ) if ( Sel == -1 ) then addPlayer( player ) return end if ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Online' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Online' ) then addOnlinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Offline' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do if ( getElementData( player, 'chatStatus' ) == 'Offline' ) then addOfflinePlayer( player ) end end elseif ( guiComboBoxGetItemText( GUIEditor.combobox[1], Sel ) == 'Both (All)' ) then guiGridListClear( GUIEditor.gridlist[1] ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end end, 1500, 1 ) end; addEvent( 'onClientRemovePlayer_ChangedName', true ); addEventHandler( 'onClientRemovePlayer_ChangedName', root, player_ChangedName ) function sendMessage( eleEdit ) local parent = getElementParent( source ) if ( parent == false or not parent ) then return end local player = getPlayerFromName( guiGetText( parent ) ) if ( player == false or not player ) then return end if ( eleEdit == chat_Windows[player].editBox ) then sendNewMessage( player ) end end; addEventHandler( 'onClientGUIAccepted', root, sendMessage ); addEventHandler( 'onClientResourceStart', resourceRoot, function( ) triggerServerEvent( 'onServerSetPlayerSerial', Cplayer ) setTimer( function( ) for _, player in ipairs( getElementsByType( 'player' ) ) do addPlayer( player ) end end, 1000, 1 ) end );
  10. السلام عليكم ورحمة الله وبركاته عندي مشكلة صغيرة في مود الرسائل الخاصة انو لو اللاعب لو غير اسمو او دخل بعدك السيرفر اسموا مابيطلع في الرسائل الخاصة اصحابي قاللولي في كود حق رفريش للستة حقت اللاعبين في المود لما يدخل واحد او يغير اسمو وانا جيت اسئل عنه واحل المشكلة دي _______________________________________________________________________________________________ ___________________[ صورة ]___________________ _______________________________________________________________________________________________ *مود الرسائل الخاصة حق مستر قراند وانا غيرت شكل اللوحة*
  11. %يسلمووووووووو شغال 100
  12. addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == savecj ) then triggerServerEvent ( "savecj", localPlayer ) end end) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == backcj ) then triggerServerEvent ( "backcj", localPlayer ) end end)
  13. حطيت الكود في ملف سيرفر بس صار ما يستعيد الملابس ولا يحفظ لما اضغط مايصير شي هذي صورة للدي بق
  14. السلام عليكم ورحمة الله :عندي مشكلة صغيرة في لوحة حفظ الملابس المود شغال كويس بس لما يدخل اللاعب السيرفر يضع له شخصية سي جي بطرح لكم ملف سيرفر وكلنت : ملف سيرفر function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) and ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} end end addEventHandler("onPlayerQuit", getRootElement(), saveClothes) function setClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) setElementModel(source,0) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end outputChatBox("", source, 0, 255, 0) textures = {} models = {} end end addEventHandler("onPlayerLogin", getRootElement(), setClothes) function loadClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then local textureString = getAccountData(account, "Clothessaver:Texture") local modelString = getAccountData(account, "Clothessaver:Model") local textures = split(textureString, 44) local models = split(modelString, 44) setElementModel(source,0) for i=0, 17, 1 do if ( textures[i+1] ~= " " ) then addPedClothes(source, textures[i+1], models[i+1], i) end end outputChatBox("* تم إستعادة ملابسك المحفوظة *", source, 0, 255, 0) textures = {} models = {} else outputChatBox("* يرجى تسجيل الدخول أولا *", source, 255, 0, 0) end end addEvent( "backcj", true ) addEventHandler( "backcj", root, loadClothes ) function saveClothes() local account = getPlayerAccount(source) if ( not isGuestAccount(account) ) then if ( getElementModel(source) == 0 ) then local texture = {} local model = {} for i=0, 17, 1 do local clothesTexture, clothesModel = getPedClothes(source, i) if ( clothesTexture ~= false ) then table.insert(texture, clothesTexture) table.insert(model, clothesModel) else table.insert(texture, " ") table.insert(model, " ") end end local allTextures = table.concat(texture, ",") local allModels = table.concat(model, ",") outputDebugString("Clothessaver: Saved clothes") setAccountData(account, "Clothessaver:Texture", allTextures) setAccountData(account, "Clothessaver:Model", allModels) texture = {} model = {} else outputChatBox("* يرجى وضع شخصية رقم 0 لحفظ الملابس *", source, 255, 0, 0) end else outputChatBox("* يرجى تسجيل الدخول أولا *", source, 255, 0, 0) end end addEvent( "savecj", true ) addEventHandler( "savecj", root, saveClothes ) : ملف كلنتت GUIEditor = { button = {}, window = {}, staticimage = {}, label = {} } cj = guiCreateWindow(481, 289, 404, 191, "❖ 『لوحـة حفـظ المـلابـس』❖", false) guiWindowSetSizable(cj, false) guiSetAlpha(cj, 1.00) guiSetProperty(cj, "CaptionColour", "FF00FFDE") savecj = guiCreateButton(76, 32, 250, 53, "❍【 حفـظ ملابسـي 】❍", false, cj) guiSetProperty(savecj, "NormalTextColour", "FF23FF00") backcj = guiCreateButton(76, 95, 250, 53, "❍【 إستعـادة مـلابسـي المحفوظـة 】❍", false, cj) guiSetProperty(backcj, "NormalTextColour", "FFFEDD00") Close_cj = guiCreateButton(363, 158, 28, 21, "✘", false, cj) guiSetProperty(Close_cj, "NormalTextColour", "FFFF0000") cjlabel = guiCreateLabel(16, 163, 92, 18, "By: MƬA ƑἷLMЄَƳ", false, cj) guiSetAlpha(cj, 1.00) guiSetAlpha(savecj, 1.00) guiSetAlpha(backcj, 1.00) guiSetVisible(cj, false) addCommandHandler("حفظ الملابس",function ( ) guiSetVisible(cj,not guiGetVisible(cj)) showCursor(guiGetVisible(cj)) guiMoveRightToCenter(cj) end) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==Close_cj) then --يتحقق من اسم الزر guiSetVisible(cj,false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس guiSetInputEnabled(false) end end) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == savecj ) then triggerServerEvent ( "savecj", localPlayer ) end end) addEventHandler ( "onClientGUIClick", root, function ( ) if ( source == backcj ) then triggerServerEvent ( "backcj", localPlayer ) end end) TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+20,y,false) end end
  15. شغلتو وظهرت اللوحة بس مابينسخ اسم الحساب وهذا الدي بق الي ظهر عندي شكرا لك...تعبتك معي