Jump to content

MrBiG

Members
  • Posts

    224
  • Joined

  • Last visited

1 Follower

About MrBiG

  • Birthday 20/11/2001

Details

  • Gang
    No Gang
  • Location
    Jordan

Recent Profile Visitors

2,996 profile views

MrBiG's Achievements

Trick

Trick (18/54)

73

Reputation

  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 ) ) )
×
×
  • Create New...