Jump to content

هذا الموضوع لمشاكلي بالأكواد


Recommended Posts

تقدر تسوي ماركر يوم يدخله يحط عليه داتا

وتسوي ماركر ثاني الي هو ما تبي أحد يدخله ويوم يدخله تتحقق اذا كان معاه الداتا يدخل عادي واذا ما كانت معاه ينقله للمكان الي تبيه

createMarker -- two markers 
'onMarkerHit' 
setElementData 
'onMarkerHit' -- 2 
getElementData 
setElementPosition 
  

Link to comment

كذا ؟

سويت ما حد يدخلها الا قروب كونسول

  
7maeh = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
addEventHandler("onMarkerHit", root, 
function(player) 
if source == 7maeh 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
      setElementPosition(player, x, y, z) 
        outputChatBox ( "لا يمكنك الدخول ", source, 255, 0, 0, true ) 
      end 
   end 
end 
) 
  
  
  

Link to comment

بعد التحقق then سطر 5 ناقصك

وناقصك تتحقق من الالمنت الي دخل ان نوعه لاعب

وانت مسويه يجيب حساب السورس والسورس هو الماركر

والشات بوكس انت مسويه يجي للسورس والسورس بالحدث هذا هو الماركر يعني حوله للالمنت الي دخل

Link to comment

كذا ؟

  
7maeh = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
addEventHandler("onMarkerHit", root, 
function(player) 
    if source == 7maeh and getElementType( player ) == "player" and not isPedInVehicle( player ) then 
if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
      setElementPosition(player, x, y, z) 
        outputChatBox ( "لا يمكنك الدخول ", source, 255, 0, 0, true ) 
      end 
   end 
end 
) 
  

Link to comment

ججرب كذا

Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
  
addEventHandler("onMarkerHit", Marker, 
     function( player ) 
         if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
         if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
            setElementPosition( player, x, y, z) 
            outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) 
          end 
       end 
    end 
) 
Link to comment
ججرب كذا

Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
  
addEventHandler("onMarkerHit", Marker, 
     function( player ) 
         if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
         if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
            setElementPosition( player, x, y, z) 
            outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) 
          end 
       end 
    end 
) 

مشكور لعبة

Link to comment
ججرب كذا

Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
  
addEventHandler("onMarkerHit", Marker, 
     function( player ) 
         if getElementType( player ) == "player" and not isPedInVehicle( player ) then 
         if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(source)), aclGetGroup("Console")) then 
            setElementPosition( player, x, y, z) 
            outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) 
          end 
       end 
    end 
) 

يقول محد يدخلها غير الكونسول, و السورس هو الماركر , وناقص تحقق انه مسجل الدخول.

Link to comment

مشكور لعبة

:-s

Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
  
addEventHandler("onMarkerHit", Marker, 
 function (player) 
    if (getElementType (player) == "player" and not isPedInVehicle (player) and getPlayerAccount(player) and not isGuestAccount(getPlayerAccount(player))) then 
        if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then 
            setElementPosition( player, x, y, z) 
            outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) 
        end 
    end 
end) 

بس باقي شي

انا عندي ماركر يدخلني للاحداثيات داخل الماركرالي عنده الحماية وش اسوي

ياليت توضح

Link to comment
سفاح اعطيك الكود خاص ؟

+++++++

انا سويت ماركر والماركر ذا ينقل الاعبين الى داخل الماركر المحمي

انا م ابي اطلع الاعبين من الماركر المحمي

قصدك أنت سويت ماركر ينقل اللاعب الي دخله للماركر المحمي وما تبيه يطلع منه؟

Link to comment

طيب لو اختصر ع نفسي كذا

يضبط ؟

  
Marker = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
Marker2 = createMarker(x, y, z, "cylinder", 10, 255, 0, 0, 150) 
  
addEventHandler("onMarkerHit", Marker, 
 function (player) 
    if source == run1 and getElementType (player) == "player" and not isPedInVehicle (player) and getPlayerAccount(player) and not isGuestAccount(getPlayerAccount(player))) then 
        if not isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Console")) then 
            setElementPosition( player, x, y, z) 
            outputChatBox ( "لا يمكنك الدخول ", player, 255, 0, 0, true ) 
             elseif source == Marker2 getElementType (player) == "player" and not isPedInVehicle (player) then 
                             local x, y, z = unpack(run.prun[math.random(#run.prun)]) 
                    setElementPosition(player, x, y, z) 
                    outputChatBox ( 'لقد دخلت ', player ) end 
        end 
    end 
end) 
  

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...