mr.sony

Members
  • Content Count

    81
  • Joined

Community Reputation

10 Decent

3 Followers

About mr.sony

  • Rank
    Transformer

Details

  • Location
    khartom

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. ليش بس والله محتاجها ضروري وانا في بلدي مافي عندنا بطايق كردت كارد وماعندي حساب مصرفي... لو كان عندي م كان طلبت... عايز سيرفر لمدة محددة بس
  2. السلام عليكم ورحمة الله وبركاته😍 شباب محتاج سيرفر😫 MTA SA ضروري جدا لمدة محددة بس😊 كان عندي سيرفر وبصور فيه مقاطع وبمنتج افلام وارفعهم على قناتي مع اصحابي. بس اعتزلت فترة ورجعت لقيت الموقع الي بسوي منه استضافة مجانية مقفول. حاولت وسويت سيرفر ل 3 يوم بس مابكفي والله😓, صورت معظم المقاطع للفلم الجديد الي رح اسويه بس باقيلي شوية واخلصه. محتاج سيرفر لمدة شهر او اقل بس عشان اكمل المقطع هذا😍,... ياريت تنظرو لطلبي هذا بعين الاعتبار, واسف على هذا الازعاج😍... الي حابب يشوف افلامي من قناتي هذا الرابط😁 https://www.youtube.com/channel/UCysAMzPfDn5VNAeSia6EUpw?view_as=subscriber وشكراا...
  3. اها,,,, هههههه مدري كيف نسيته شكرا ي شباب يسلمو ي حب ايش الفرق بينهم
  4. السلام عليكم ورحمة الله باك بعد طول غياب رمضان كريم عليكم سويت لوحة إختيار الشخصيات لسيرفري, بعد انتهيت لما اضغط على زر إختيار الشخصية يطلعلي هذا الكود في الدي بق سكربت 3 , وما تتغير الشخصية... ممكن مساعدة !! _____________________________________ أكواد ملف الكلنت ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ local Key = "i" --هنا زر الفتح fr = { button = {} } F = { button = {} } FPanel = guiCreateWindow(454, 204, 459, 361, "❖『 لوحة شـخصيـات التصويـر 』❖", false) guiWindowSetSizable(FPanel, false) guiSetProperty(FPanel, "CaptionColour", "FF00FEEA") guiSetVisible(FPanel,false) ------------------------------------------------------------------------------------------------ FTxt1 = guiCreateLabel(11, 33, 441, 19, "=================================================", false, FPanel) guiLabelSetColor(FTxt1, 71, 254, 0) FTxt2 = guiCreateLabel(10, 252, 441, 19, "=================================================", false, FPanel) guiLabelSetColor(FTxt2, 71, 254, 0) F.button1 = guiCreateButton(25, 62, 161, 50, "❍【 ديناصـورات 】❍", false, FPanel) guiSetProperty(F.button1, "NormalTextColour", "FFFEFB00") F.button2 = guiCreateButton(269, 62, 161, 50, "❍【 مستكشفيـن 】❍", false, FPanel) guiSetProperty(F.button2, "NormalTextColour", "FFFB00FE") F.button3 = guiCreateButton(141, 171, 161, 50, "❍【 شرطـة 】❍", false, FPanel) guiSetProperty(F.button3, "NormalTextColour", "FF00FBFE") FClose = guiCreateButton(427, 332, 23, 19, "✘", false, FPanel) guiSetProperty(FClose, "NormalTextColour", "FFFE0000") By = guiCreateLabel(22, 335, 93, 16, "By: MƬA ƑἷLMЄَƳ", false, FPanel) Ftxt3 = guiCreateLabel(94, 289, 273, 17, "* قم بإختيار شخصية واحدة لحفظ مكانتك في التصوير *", false, FPanel) guiLabelSetColor(Ftxt3, 254, 245, 0) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onClientResourceStart", resourceRoot, function() guiSetVisible(FPanel,false) showCursor(false) end ) bindKey(Key,"down", --عند الضغط على الزر المحدد function() guiSetVisible(FPanel,not guiGetVisible(FPanel))--اظهار اللوحة showCursor(guiGetVisible(FPanel)) --اظهار الماوس end) addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==FClose) then --يتحقق من اسم الزر guiSetVisible(FPanel,false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس elseif source == F.button1 then guiSetVisible(Window1, true) guiBringToFront(Window1) elseif source == F.button2 then guiSetVisible(Window2, true) guiBringToFront(Window2) elseif source == F.button3 then guiSetVisible(Window3, true) guiBringToFront(Window3) end end) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ GUIEditor = { button = {} } Window1 = guiCreateWindow(184, 195, 999, 379, "❖『 دايناصـورات 』❖", false) guiWindowSetSizable(Window1, false) guiSetProperty(Window1, "CaptionColour", "FF00FEDD") guiSetVisible(Window1,false) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ Use1 = guiCreateButton(35, 133, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use1, "NormalTextColour", "FF23FE00") Use2 = guiCreateButton(171, 133, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use2, "NormalTextColour", "FF23FE00") Use3 = guiCreateButton(308, 133, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use3, "NormalTextColour", "FF23FE00") Use4 = guiCreateButton(447, 133, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use4, "NormalTextColour", "FF23FE00") Use5 = guiCreateButton(583, 133, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use5, "NormalTextColour", "FF23FE00") Use6 = guiCreateButton(722, 133, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use6, "NormalTextColour", "FF23FE00") Use7 = guiCreateButton(862, 133, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use7, "NormalTextColour", "FF23FE00") Use8 = guiCreateButton(171, 284, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use8, "NormalTextColour", "FF23FE00") Use9 = guiCreateButton(308, 280, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use9, "NormalTextColour", "FF23FE00") Use10 = guiCreateButton(447, 280, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use10, "NormalTextColour", "FF23FE00") Use11 = guiCreateButton(583, 280, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use11, "NormalTextColour", "FF23FE00") Use12 = guiCreateButton(722, 280, 94, 30, "❍【 وضـع 】❍", false, Window1) guiSetProperty(Use12, "NormalTextColour", "FF23FE00") W1Txt1 = guiCreateLabel(10, 324, 981, 16, "______________________________________________________________________________________________________________________________________________", false, Window1) W1Txt2 = guiCreateLabel(10, 350, 91, 19, "By: MƬA ƑἷLMЄَƳ", false, Window1) W1Colse = guiCreateButton(972, 350, 19, 20, "✘", false, Window1) guiSetProperty(W1Colse, "NormalTextColour", "FFFE0000") W1IMG1 = guiCreateStaticImage(25, 33, 117, 96, "images/121.png", false, Window1) W1IMG2 = guiCreateStaticImage(158, 33, 117, 96, "images/120.png", false, Window1) W1IMG3 = guiCreateStaticImage(298, 33, 117, 96, "images/118.png", false, Window1) W1IMG4 = guiCreateStaticImage(434, 33, 117, 96, "images/117.png", false, Window1) W1IMG5 = guiCreateStaticImage(573, 33, 117, 96, "images/116.png", false, Window1) W1IMG6 = guiCreateStaticImage(709, 33, 117, 96, "images/115.png", false, Window1) W1IMG7 = guiCreateStaticImage(849, 33, 117, 96, "images/114.png", false, Window1) W1IMG8 = guiCreateStaticImage(161, 184, 117, 96, "images/113.png", false, Window1) W1IMG9 = guiCreateStaticImage(295, 184, 117, 96, "images/112.png", false, Window1) W1IMG10 = guiCreateStaticImage(434, 184, 117, 96, "images/111.png", false, Window1) W1IMG11 = guiCreateStaticImage(573, 184, 117, 96, "images/110.png", false, Window1) W1IMG12 = guiCreateStaticImage(709, 184, 117, 96, "images/99.png", false, Window1) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==W1Colse) then --يتحقق من اسم الزر guiSetVisible(Window1,false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس elseif (source ==F.button1) then --يتحقق من اسم الزر guiSetVisible(FPanel,false) -- اغلاق اللوحة end end) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FW2 = {} Window2 = guiCreateWindow(518, 244, 330, 281, "❖『 مستكشفيـن 』❖", false) guiWindowSetSizable(Window2, false) guiSetProperty(Window2, "CaptionColour", "FF00FEEA") guiSetVisible(Window2,false) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FW2.button1 = guiCreateButton(23, 186, 97, 48, "❍【 وضـع 】❍", false, Window2) guiSetProperty(FW2.button1, "NormalTextColour", "FF23FC00") FW2.button2 = guiCreateButton(213, 186, 97, 48, "❍【 وضـع 】❍", false, Window2) guiSetProperty(FW2.button2, "NormalTextColour", "FF23FC00") FW2Close = guiCreateButton(299, 253, 21, 18, "✘", false, Window2) guiSetProperty(FW2Close, "NormalTextColour", "FFFD0000") W2IMG1 = guiCreateStaticImage(18, 37, 131, 139, "images/190.png", false, Window2) W2IMG2 = guiCreateStaticImage(179, 37, 131, 139, "images/191.png", false, Window2) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==FW2Close) then --يتحقق من اسم الزر guiSetVisible(Window2,false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس elseif (source ==F.button2) then --يتحقق من اسم الزر guiSetVisible(FPanel,false) -- اغلاق اللوحة end end) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FW3 = {} Window3 = guiCreateWindow(518, 244, 330, 281, "❖『 شرطـة 』❖", false) guiWindowSetSizable(Window3, false) guiSetProperty(Window3, "CaptionColour", "FF00FEEA") guiSetVisible(Window3,false) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ FW3.button1 = guiCreateButton(23, 186, 97, 48, "❍【 وضـع 】❍", false, Window3) guiSetProperty(FW3.button1, "NormalTextColour", "FF23FC00") FW3.button2 = guiCreateButton(213, 186, 97, 48, "❍【 وضـع 】❍", false, Window3) guiSetProperty(FW3.button2, "NormalTextColour", "FF23FC00") FW3Close = guiCreateButton(299, 253, 21, 18, "✘", false, Window3) guiSetProperty(FW3Close, "NormalTextColour", "FFFD0000") W3IMG1 = guiCreateStaticImage(18, 37, 131, 139, "images/280.png", false, Window3) W3IMG2 = guiCreateStaticImage(179, 37, 131, 139, "images/281.png", false, Window3) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onClientGUIClick",root,function() --عند الضغط على زر باللوحة if (source ==FW3Close) then --يتحقق من اسم الزر guiSetVisible(Window3,false) -- اغلاق اللوحة showCursor(false) --اخفاء الماوس elseif (source ==F.button3) then --يتحقق من اسم الزر guiSetVisible(FPanel,false) -- اغلاق اللوحة end end) -- -- -- ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onClientGUIClick", root, function () if source == Use1 then playSoundFrontEnd ( 10 ) triggerServerEvent("121", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use2 then playSoundFrontEnd ( 10 ) triggerServerEvent("120", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use3 then playSoundFrontEnd ( 10 ) triggerServerEvent("118", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use4 then playSoundFrontEnd ( 10 ) triggerServerEvent("117", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use5 then playSoundFrontEnd ( 10 ) triggerServerEvent("116", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use6 then playSoundFrontEnd ( 10 ) triggerServerEvent("115", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use7 then playSoundFrontEnd ( 10 ) triggerServerEvent("114", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use8 then playSoundFrontEnd ( 10 ) triggerServerEvent("113", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use9 then playSoundFrontEnd ( 10 ) triggerServerEvent("112", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use10 then playSoundFrontEnd ( 10 ) triggerServerEvent("111", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use11 then playSoundFrontEnd ( 10 ) triggerServerEvent("110", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == Use12 then playSoundFrontEnd ( 10 ) triggerServerEvent("99", localPlayer) end end ) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onClientGUIClick", root, function () if source == FW2.button1 then playSoundFrontEnd ( 10 ) triggerServerEvent("190", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == FW2.button2 then playSoundFrontEnd ( 10 ) triggerServerEvent("191", localPlayer) end end ) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ addEventHandler("onClientGUIClick", root, function () if source == FW3.button1 then playSoundFrontEnd ( 10 ) triggerServerEvent("280", localPlayer) end end ) addEventHandler("onClientGUIClick", root, function () if source == FW3.button2 then playSoundFrontEnd ( 10 ) triggerServerEvent("281", localPlayer) end end ) ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ____________________________________ أكواد ملف سيرفر addEvent("121",true) addEventHandler("121",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 121 ) end end ) addEvent("120",true) addEventHandler("120",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 120 ) end end ) addEvent("118",true) addEventHandler("118",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 118 ) end end ) addEvent("117",true) addEventHandler("117",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 117 ) end end ) addEvent("116",true) addEventHandler("116",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 116 ) end end ) addEvent("115",true) addEventHandler("115",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 115 ) end end ) addEvent("114",true) addEventHandler("114",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 114 ) end end ) addEvent("113",true) addEventHandler("113",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 113 ) end end ) addEvent("112",true) addEventHandler("112",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 112 ) end end )addEvent("111",true) addEventHandler("111",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 111 ) end end ) addEvent("110",true) addEventHandler("110",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 110 ) end end ) addEvent("99",true) addEventHandler("99",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 99 ) end end ) addEvent("190",true) addEventHandler("190",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 190 ) end end ) addEvent("191",true) addEventHandler("191",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 191 ) end end ) addEvent("280",true) addEventHandler("280",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 280 ) end end ) addEvent("281",true) addEventHandler("281",root, function () local Money = getPlayerMoney(source) if ( Money >= 0 ) then takePlayerMoney ( source , 0 ) setPedSkin ( source, 281 ) end end ) ___________________________________ أكواد الميتا <meta> <info author="MTA FiLMeY" name="NewSkinPanel" type="script" description="شخصيات التصوير" version="1.2.0" /> <script src="client.lua" type="client"/> <file src="Images/121.png" type="client" /> <file src="Images/120.png" type="client" /> <file src="Images/118.png" type="client" /> <file src="Images/117.png" type="client" /> <file src="Images/116.png" type="client" /> <file src="Images/115.png" type="client" /> <file src="Images/114.png" type="client" /> <file src="Images/113.png" type="client" /> <file src="Images/112.png" type="client" /> <file src="Images/111.png" type="client" /> <file src="Images/110.png" type="client" /> <file src="Images/99.png" type="client" /> <file src="Images/190.png" type="client" /> <file src="Images/191.png" type="client" /> <file src="Images/280.png" type="client" /> <file src="Images/281.png" type="client" /> </meta> ___________________________________ وشكراا
  5. السلام عليكم ورحمة الله وبركاته وانا احاول اجعلها قناة تلفزيونية , لاكني احتاج فرق عمل يكون محترف ف المنتاج وانتاج الافلام والفيديوهات الحصرية. , MTA SA شاهدو قناتي على الإنترنت, عليها افلام ممثلة في سيرفرات <iframe src='//app.viloud.tv/player/embed/channel/7da6a848d75a9e44e5ea9d23402f790c?autoplay=1&volume=1&controls=1&title=1&share=1&random=0' width='640' height='360' frameborder='0' allowfullscreen></iframe><p><a href='https://viloud.tv/channel/7da6a848d75a9e44e5ea9d23402f790c'>MTA FiLMeY</a> on <a href='https://viloud.tv'>Viloud</a></p> *هذه اول خطوة لي في قناتي* انشروها معي عشان يتم قبولها على الاقمار الصناعية وتنزل على التلفاز , وشكراا دعواتكم...
  6. تشكرووو جميعاااا ظبط معي
  7. اه جربتهم والله بس ماظبطو تسلم حب على المساعدة
  8. السلام عليكم ورحمة الله وبركاته (لوحة) 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')
  9. يسلموووا إنت دايما تعرض لنا المودات النادرة والرائعة _واصل بدون فواصل #
  10. يسلموووااا أنا كنت أبحث عن هذا المود من زمن تسلم تسلم ...
  11. ف اي سطر احطه ؟ لاني جربت حطيته في اخر الاكواد خرب المود
  12. حلووووووو مرة مرة مرة يسلمووو بطل والله ممكن اقترح اضافة مهمة للمود %ممكن تخلي اللاعب ما يقدر يسحب رتبة حساب معين ويكون كفووووو 100
  13. اوك بروح لدروس البرمجة وان شاء الله بصحله يسلمــوااا
  14. 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 );