Jump to content

كيف؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟؟


ABO.SR7777A

Recommended Posts

انشاء الله صح

وفقلي الحطأ

سيرفر 
function interior ( source, commandName, interior ) 
if (source == marker1) then -- مادري حق وش يمكن كذا انا سويته 
    setElementInterior ( source, interior, 2233.91, 1714.73, 1011.38 ) ---- رقم الماركر الى هو الباب 
  else 
    setElementInterior ( source, 0 ) --- مادري 
  end --- اغلاق  
end 
addCommandHandler ( "interior", interior ) -- مدري 
كلينت 
function interior ( commandName, interior ) -- المصدر 
if (source == marker1) then -- يمكن صح اسم الدويره 
    setElementInterior ( getLocalPlayer(), interior, 2233.91, 1714.73, 1011.38 ) --- هنا الاحداثيات الدويره 
  else 
    setElementInterior ( getLocalPlayer(), 0 ) ---- الاعب يدخل 
  end --- اغلاق 
end 
addCommandHandler ( "interior", interior ) -- مدري 
هاذا الي اعرفه 

Link to comment

شوف الكود للحين ما جربته

خذ

كلنت

theMarker = createMarker ( 1555, -1675.5999755859, 16.89999961853, "arrow", 1, 0, 0, 255, 170 ) 
Marker2 = createMarker ( 246.89999389648, 62.200000762939, 1004.299987793, "arrow", 1, 0, 0, 255, 170 ) 
  
function marker1(hitElement) 
     if getElementType(hitElement) == "player" then 
    setElementInterior ( player, 6, 247, 63,1003.5999755859 ) 
     end 
end 
addEventHandler("onClientMarkerHit", theMarker, marker1) 
function marker2(hitElement) 
     if getElementType(hitElement) == "player" then 
    setElementInterior ( player, 0, 1553.4000244141, -1675.5999755859, 16.200000762939 ) 
     end 
end 
addEventHandler("onClientMarkerHit", Marker2, marker2) 

Link to comment
    theMarker = createMarker ( 1555, -1675.5999755859, 16.89999961853, "arrow", 1, 0, 0, 255, 170 )--صنع ماركر 
    Marker2 = createMarker ( 246.89999389648, 62.200000762939, 1004.299987793, "arrow", 1, 0, 0, 255, 170 )--صنع ماركر 
      
    function marker1(hitElement)--العملية 
         if getElementType(hitElement) == "player" then-- هذا يشوف وش لمس الماركر و يجب ان يكون لاعب 
        setElementInterior ( player, 6, 247, 63,1003.5999755859 )-- يغير احداثيات اللاعب الى مركز الشرطة 
         end-- if انهاء 
    end-- انهاء العملية 
    addEventHandler("onClientMarkerHit", theMarker, marker1)-- الايفينت اذا لمس الماركر- اسم الماركر- اسم العملية 
    function marker2(hitElement)--العملية 
         if getElementType(hitElement) == "player" then-- اذا الي لمس الماركر لاعب 
        setElementInterior ( player, 0, 1553.4000244141, -1675.5999755859, 16.200000762939 )-- يوديه قدام مركز الشرطة 
         end--if انهاء 
    end--انهاء العملية 
    addEventHandler("onClientMarkerHit", Marker2, marker2)-- الايفنت اذا لمس الماركر-اسم الماركر-اسم العملية 

Link to comment

تم التصحيح

    theMarker = createMarker ( 1555, -1675.5999755859, 16.89999961853, "arrow", 1, 0, 0, 255, 170 ) 
    Marker2 = createMarker ( 246.89999389648, 62.200000762939, 1004.299987793, "arrow", 1, 0, 0, 255, 170 ) 
      
    function marker1(hitElement) 
         if getElementType(hitElement) == "player" then 
        setElementInterior ( getLocalPlayer(), 6, 247, 63,1003.5999755859 ) 
         end 
    end 
    addEventHandler("onClientMarkerHit", theMarker, marker1) 
    function marker2(hitElement) 
         if getElementType(hitElement) == "player" then 
        setElementInterior ( getLocalPlayer(), 0, 1553.4000244141, -1675.5999755859, 16.200000762939 ) 
         end 
    end 
    addEventHandler("onClientMarkerHit", Marker2, marker2) 

بس الماركر الي يطلعك ما تقدر تشوفه بس لما تروح لما الباب راح يطلعك

Link to comment
    theMarker = createMarker ( 1555, -1675.5999755859, 16.89999961853, "arrow", 1, 0, 0, 255, 170 ) 
    Marker2 = createMarker ( 246.89999389648, 62.200000762939, 1004.299987793, "arrow", 1, 0, 0, 255, 170 ) 
    setElementInterior ( Marker2, 6) 
    function marker1(hitElement) 
         if getElementType(hitElement) == "player" then 
        setElementInterior ( getLocalPlayer(), 6, 247, 63,1003.5999755859 ) 
         end 
    end 
    addEventHandler("onClientMarkerHit", theMarker, marker1) 
    function marker2(hitElement) 
         if getElementType(hitElement) == "player" then 
        setElementInterior ( getLocalPlayer(), 0, 1553.4000244141, -1675.5999755859, 16.200000762939 ) 
         end 
    end 
    addEventHandler("onClientMarkerHit", Marker2, marker2) 

صححته

Link to comment

والله كفوؤ والله شنب والله فحل رجال والله ماتقصر

جزاك الله خير

بس حبيت اقلك واقول لتابل

في واحد اعرفه وريته الويكي وقلت له اقرى

قرالي كامل قلي ينفهم لكن كلجات على كيف كيفك

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...