Jump to content

MA[S]RIY

Members
  • Posts

    820
  • Joined

  • Last visited

Everything posted by MA[S]RIY

  1. هذا طلبي الاول اعتقد كيف طلبي الثاني
  2. السلام عليكم عندي استفسارين .. اول شي ابي اول م اللعب يلمس مركر انا محدد اكثر من احداثي 5 احداثيات مثلا ابي لما الاعب يلمس المركر يحط الاعب في الاحداثي الاول ويجي لاعب غيرو يلمس المركر يحط الاعب هذا في الاحداثي الثاني وهكذا بدون يحط لاعبين في نفس الاحداثي كيف ^^ ؟ .. ثاني شئ ابي اول م الاعب يلمس المركر اول شخص يلمس المركر يطلع بالشات الاعب كذا المركز الاول وثاني شخص يلمس المركر يطلع بالشات الاعب كذا المركز الثاني وثالث شخص يلمس المركر يطلع بالشات الاعب كذا المركز الثالث كيف ^^ ؟ وبس
  3. --client local markergrage = createMarker(-699.57581, 966.04437, 12.34501,'corona',2,0,255,255,255) function hit( hitElement ) if localPlayer == hitElement then if isPedInVehicle(localPlayer) then local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ( "Visible", localPlayer, theVehicle ) end end end addEventHandler( "onClientMarkerHit", markergrage, hit ) addEventHandler('onClientGUIClick',root, function () if source == buttonbuy then local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ( "unVisible", localPlayer, theVehicle ) end end ) -- server addEvent ( "Visible", true ) addEventHandler ( "Visible", root, function ( theVehicle ) if theVehicle then setElementVisibleTo ( theVehicle, root, false ) setElementVisibleTo ( theVehicle, source, true ) end end ) addEvent ( "unVisible", true ) addEventHandler ( "unVisible", root, function ( theVehicle ) if theVehicle then setElementVisibleTo ( theVehicle, root, true ) end end ) المفروض الحين لما الاعب يدخل المركر يخفي سيارته ويجعلها م تصدم ولا احد يصدمها مثل الشبح يعني ولما يضغط علي زر في لوحة يرجعه ثاني عادي لاكن م يشتغل وش الخطا ؟
  4. السلام عليكم الحين انا وضعت كاميرا ماتركس كيف اشيلها ؟
  5. خلاص مشكورين دورت بالويكي ولاقيته
  6. لو م في فنكشن كذا زي طلبي في فنكشن يجيب لك البعد بينك وبين احداثيات معينه ؟
  7. السلام عليكم ابي فنكشن الي يجيب بعد الاعب عن احداثيات معينه يجيب بعد الاعب ب المتر ؟
  8. السلام عليكم الكود timerc = setTimer(function( source ) setElementData ( source, "spam", nil ) killTimer(timerc) end , 5000, 1 ) يطلع لي في الدي بق ايه الحل ؟
  9. خلاص مشكورين سويت اكسبورت علي لوحة الادمن واجلبت وظيفه جلب دولة الاعب
  10. السلام عليكم كيف اجلب دوله الاعب دورت ف الويكي م لقيت اي شئ ؟
  11. مثل م قالك ن اطرح الكود كامل يا أخ !!
  12. رديت عليك مره لا تكرر الموضوع
  13. هذا المود منشور ع النت وشغال تمام بس انت تاكد من اسم الصوره هو حاليا اسم الصوره 3 بصيغه بنج ولا تنسي تعرف الصوره بالكلينت وتحط الصوره بملف المود
  14. الاكواد الاولي سرفر والاكواد الثانيه كلينت
  15. وش المشكله ووش طلع لك بالدي بق ؟
  16. بتعدل ع مود السكور بورد نفسه دور في الملفات وراح تلاقي ف ملف بأول Name Ping وراح تلاقي في الكود حق النيم باخر الكود رقم 1 بدل 1 وخليها 2 وبعدان ضيف الي تبيها بجانبهم وحط في اخر الكود رقم 1
  17. لو اللوحة الاصليه ف راح ينفك لوحدة ويكون تمام اما اذاذ انت معدل ع اللوحة ف شوف انت ع ايش عدلت !
  18. المود منشور ع اليوتيوب وغير مشفر اعتقد اسمه كان مود تاق فوق الرأس
  19. getPlayerName () تجيب الاسم وهيكون كامل كدا addEventHandler ("onPlayerJoin", root, function ( ) local Name = getPlayerName ( source ) outputChatBox (Name.." ولكم",root ,255, 255, 0, true ) end ) وومكن تختصرها كلها ف سطى واحد بس سويتها لك كذا علشان تفهمها وكدا بسطر واحد addEventHandler ("onPlayerJoin", root, function ( ) outputChatBox ( getPlayerName ( source ).." ولكم",root ,255, 255, 0, true ) end ) ..
  20. local serials = { ["السريال الاول"] = true , ["السريال الثاني"] = true , ["السريال الثالث"] = true , } local gPlayerTickCount = { } local gPlayerSpams = { } local gPlayerMessage = { } local gPlayerMsgNum = { } local gPlayerMuteTimer = { } local gSettings = { } addEventHandler( "onPlayerChat", getRootElement( ), function( message ) if not serials [ getPlayerSerial( source ) ] then if not gPlayerSpams[ source ] then gPlayerSpams[ source ] = true gPlayerTickCount[ source ] = getTickCount( ) gPlayerMessage[ source ] = message else if getTickCount( ) - gPlayerTickCount[ source ] > gSettings.delay then gPlayerMsgNum[ source ] = 0 gPlayerMessage[ source ] = nil; gPlayerTickCount[ source ] = getTickCount( ) return else if gPlayerMsgNum[ source ] >= gSettings.msgNum then gPlayerTickCount[ source ] = getTickCount( ) cancelEvent( ) if gSettings.mutePlayers then mutePlayer( source ); end elseif message == gPlayerMessage[ source ] then cancelEvent( ) outputChatBox( "Don't repeat yourself!!!", source, 255, 0, 0 ) end gPlayerMsgNum[ source ] = gPlayerMsgNum[ source ] + 1 end end gPlayerMessage[ source ] = message end end ) function mutePlayer( player ) setPlayerMuted( player, true ); gPlayerMuteTimer[ player ] = setTimer( unmutePlayer, gSettings.muteTime * 1000, 1, player ); outputChatBox( "Don't flood the chat!!! You are now muted for " .. gSettings.muteTime .." seconds.", player, 255, 0, 0 ) end function unmutePlayer( player ) setPlayerMuted( player, false ); outputChatBox( "You can talk again. Remeber, do NOT spam!", player, 255, 0, 0 ); end addEventHandler( "onPlayerJoin", getRootElement( ), function( ) gPlayerMsgNum[ source ] = 0 end ) addEventHandler( "onResourceStart", getResourceRootElement( getThisResource() ), function( ) gSettings.delay = get( "@differenceBetweenMessages_ms" ) gSettings.msgNum = get( "@messagesNumber" ) gSettings.mutePlayers = ( get( "@mutePlayers" ) == "true" ) and true or false; gSettings.muteTime = get( "@muteTime" ); for _, plr in pairs( getElementsByType( "player" ) ) do gPlayerMsgNum[ plr ] = 0 end end ) addEventHandler( "onResourceStop", getResourceRootElement(), function( ) local players = getElementsByType( "player" ); for i, plr in pairs( players ) do if isPlayerMuted( plr ) then setPlayerMuted( plr, false ); end end end ) جرب واعذرني لو في غلط لاني فون
  21. addEventHandler("onPlayerChat",root, function ( msg ) if ( msg == "دائري" ) then setElementPosition ( source,1797.3083496094,823.43975830078,10.634521484375 ) end end ) function SaaD() outputChatBox('للآنتقآل آلي آلدآئري آكتب بآلشآت ( دآئري )', root, math.random ( 255 ), math.random ( 255 ), math.random ( 255 ), true ) end setTimer (SaaD,5000,0) ..
×
×
  • Create New...