Jump to content

MrBiG

Members
  • Posts

    224
  • Joined

  • Last visited

Everything posted by MrBiG

  1. فكرة بسيطة , مافي تعقيد تفكير جيد
  2. شوف اخوي https://www.dreamincode.net/forums/forum/29-python/ سجل في هذا الموقع في ناس محترفين بجميع اللغات ويساعدو ( عددهم كثير) واطرح مشكلتك افضل من هنا
  3. وعليكم السلام ورحمة الله وبركاتة https://www.w3schools.com/js/js_validation.asp
  4. وعليكم السلام شغلك كويس بس للعلم دالة Time بشتشغل على الثواني يعني اذا حطيت الوظيفة تتنفذ مرتين خلال خمس ثواني رح تتنفذ اول ثانيتين و بعد ثلالث ثواني مرة ثانية المفروض 2.5 كل مره
  5. gsub تستخدم لحذف مقطع من النص وهنا local name = getPlayerName ( localPlayer ) : gsub ( '#%x%x%x%x%x%x' , ''" ) تقوم بحذف ( # ) وست خانات بجانبه بغض النظر عن نوعها سواء اكانت ارقام او احرف من اسم اللاعب اي انها تقوم بأزالة كود الالوان من اسم اللاعب ان وجدت
  6. -- # Server addEvent ( "player;checkMuted" , true ) function checkismuteed ( ) if ( isPlayerMuted ( client ) ) then triggerClientEvent ( client , "player;checkedMuted" , client , true ) else triggerClientEvent ( client , "player;checkedMuted" , client , false ) end end addEventHandler ( "player;checkMuted" , resourceRoot , checkismuteed ) -- # Client addEvent ( "player;checkedMuted" , true ) function mutedPlayer ( m ) if ( m and type ( m ) == 'boolean' ) then if ( tostring ( m ) == 'true' ) then guiSetText ( err_label , "You are muted!" ) elseif ( tostring ( m ) == 'false' ) then local time = getRealTime ( ) local hours = time.hour local minutes = time.minute local seconds = time.second -- Make sure to add a 0 to the front of single digits. if (hours < 10) then hours = "0"..hours end if (minutes < 10) then minutes = "0"..minutes end if (seconds < 10) then seconds = "0"..seconds end local newText = guiGetText ( support_urmsg ) if ( ( newText ) and ( string.len ( newText ) >= 4 ) ) then guiSetText ( err_label , "" ) local oldText = guiGetText ( supp_chat ) if ( not oldText ) then oldText = "" ; end oldText = ( ( oldText ) .. "[" .. ( tostring ( hours ) ) .. "-" .. ( tostring ( minutes ) ) .. "-" .. ( tostring ( seconds ) ) .. "]" .. ( getPlayerName ( localPlayer ) ) .. ": " .. ( newText ) ) guiSetText ( supp_chat , oldText ) guiSetText ( support_urmsg , "" ) guiMemoSetCaretIndex ( supp_chat , string.len ( oldText ) ) end end end end addEventHandler ( "player;checkedMuted" , resourceRoot , mutedPlayer ) function sendChatMessage ( ) if ( ( supp_chat ) and ( isElement ( supp_chat ) ) ) then if ( guiGetText ( support_urmsg ) ~= '' ) then triggerServerEvent ( "player;checkMuted" , localPlayer ) end end end addEventHandler ( "onClientGUIAccepted" , resourceRoot , sendChatMessage ) أفضل ؟
  7. هو ارسل كود وانا زبطته لاسيما انو انا ما بعرف وين بدو يسوي التريقر وممكن بستخدم التريقر بغير كود
  8. -- # Server addEvent ( "mutedplayer" , true ) function checkismuteed ( ) if ( isPlayerMuted ( client ) ) then mute = true else mute = false end return mute ; triggerClientEvent ( client , "mutedplayer" , client , mute ) end addEventHandler ( "mutedplayer" , resourceRoot , checkismuteed ) -- # Client local MP ; addEvent ( "mutedplayer" , true ) function mutedPlayer ( m ) MP = m; end addEventHandler ( "mutedplayer" , resourceRoot , mutedPlayer ) function sendChatMessage ( plyr ) local time = getRealTime ( ) local hours = time.hour local minutes = time.minute local seconds = time.second -- Make sure to add a 0 to the front of single digits. if (hours < 10) then hours = "0"..hours end if (minutes < 10) then minutes = "0"..minutes end if (seconds < 10) then seconds = "0"..seconds end if ( ( supp_chat ) and ( isElement ( supp_chat ) ) ) then local newText = guiGetText ( support_urmsg ) triggerServerEvent ( "mutedplayer" , localPlayer ) if ( MP == true ) then guiSetText ( err_label , "You are muted!" ) else if ( ( newText ) and ( string.len ( newText ) >= 4 ) ) then guiSetText ( err_label , "" ) local oldText = guiGetText ( supp_chat ) if ( not oldText ) then oldText = "" ; end oldText = ( ( oldText ) .. "[" .. ( tostring ( hours ) ) .. "-" .. ( tostring ( minutes ) ) .. "-" .. ( tostring ( seconds ) ) .. "]" .. ( getPlayerName ( localPlayer ) ) .. ": " .. ( newText ) ) guiSetText ( supp_chat , oldText ) guiSetText ( support_urmsg , "" ) guiMemoSetCaretIndex ( supp_chat , string.len ( oldText ) ) end end end end addEventHandler ( "onClientGUIAccepted" , resourceRoot , sendChatMessage )
  9. -- # Server function staffsonlyy ( player ) local accname = getAccountName ( getPlayerAccount ( player ) ) if ( isObjectInACLGroup ( "user." .. ( accname ) , aclGetGroup ( "Admin" ) ) ) then triggerClientEvent ( player , "speakeronlystaffs" , player ) end end -- # Client function openOrCloseGUI ( ) if ( guiGetVisible ( mainWindow ) ) then guiSetVisible ( mainWindow , false ) guiSetVisible ( linkWindow , false ) showCursor ( false ) else guiSetVisible ( mainWindow , true ) showCursor ( true ) end end addEvent ( "speakeronlystaffs" , true ) addEventHandler ( "speakeronlystaffs" , root , openOrCloseGUI ) addCommandHandler ( "speaker" , openOrCloseGUI ) bindKey ( openKey , "down" , openOrCloseGUI )
  10. oldText = ( ( oldText ) .. "[" .. ( tostring ( hours ) ) .. "-" .. ( tostring ( minute ) ) .. "-" .. ( tostring ( second ) ) .. "]" .. ( getPlayerName ( localPlayer ) ) .. ": " .. ( newText ) )
  11. وعليكم السلام ورحمة الله وبركاتة بحكم انه المود معه وعلى ما يبدو ان مستر كريم ناشره ايضاً open source وهو فما اظن انو في حاجه لطلب الاذن من المالك تقبل مروري أخـوك #مستر_بق
  12. ( Client Side )أطرح أكواد الـ بما انك مسوي ريد لأول 30000 بت فهذا رقم كبير شوي فمن المحتمل المشكلة بالكلينت
  13. وعليكم السلام ورحمة الله print ( tostring ( getResourceName ( sourceResource ) ) )
  14. افضل محرر نصوص ( NotePad ++ )اذا مشان برمجة اللعبة الـ ( Lua )وحمل ملف دعم برمجية الـ ( sublime text 3 )او المحرر الـ
  15. وعليكم السلام موفق في عملك اخوي زيادة على كلامك اللعبة زمان كانت توصل 25 الف الان صارت توصل 29 الف
  16. وعليكم السلام شغل جميل و ابداع ايضاً مع تمنياتي لكم بالمزيد من النجاح اخوكم #مستر_بق
  17. وعليكم السلام مود نوب من مواصفاته مع احترامي تقبل مروري اخوك مستر بق
  18. وعليكم السلام ورحمة الله في عندك معلومة مبهمة اتنمى توضحه مشان اساعدك ( dxDrawText )الان الرسالة الاول وثانية بكونن في نفس الـ ولا منفردات ؟
  19. اسف لاني رديت عليك ما توقعت انك تزعل وتعصب 0_0
  20. هاي الوظيفة بترجعلك المتغيرات الي حطتهم على شكل جدول على حسب الكود بس له اكثر من استخدام ما اظن يفيدك هذا لمكاتب الدي اكس بستخدم كثير على حسب علمي
  21. تخصص رائع , بس هندسة البرمجيات توفي غرضه وزيادة ^^
  22. دمرتم الرجال شوف يا أخي لو تبي تطور مشروع مثل السناب شات والانسترقرام وتسوي له تطبيقات على الايفون والاندرويد وتحدثه وتشتغل عليه باحتراف روح هندسة برمجيات لانو باقي التخصصات تدرسك تدريس سطحي الموضوع ذا
×
×
  • Create New...