Jump to content

طلب !!


MeZo999

Recommended Posts

createObject -- أنشاء بوابة 
createMarker -- أنشاء ماركر 
getElementData -- element Data التأكد من القروب اذا كان يستخدم 
moveObject -- تحريك البوابة 
bindKey -- اذا كنت تبغى البوابة تتحرك بزر 
"onMarkerHit" -- عند لمس الماركر 
"onMarkerLeave" -- عند الخروج من الماركر 
Link to comment

فيه تحت مكتوب كملتين بوليس

Police

استبدلها ب اسم التيم الاي تبي يفتح البباب

  
Team = "Police" 
local Object17 = createObject ( D, x, y, z, 0, 0, 90 ) 
local Marker17 = createMarker ( x, y, z, "cylinder", 2, 0, 0, 0, 0 ) 
  
function OpenObject17 ( player ) 
    if isElementWithinMarker ( player, Marker17 ) then 
        if ( getTeamName( getPlayerTeam( player ) ) == Team ) then 
            if not Open17 then 
                moveObject ( Object17, 1500, x, y, z ) 
            else 
                moveObject ( Object17, 1500, x, y, z ) 
            end 
            Open17 = not Open17 
        else 
            outputChatBox ( "* You aren't in ["..Police.."] team !", player, 200, 0, 0, true ) 
        end 
    end 
end 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, v in ipairs ( getElementsByType ( "player" ) ) do 
            bindKey ( v, "tab", "down", OpenObject17 ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey ( source, "tab", "down", OpenObject17 ) 
    end 
) 
  
  

الاي فوق

local Object17 = createObject ( D, x, y, z, 0, 0, 90 ) مكان الاوبجكت البوابه وحرف دي رقم البوابه

local Marker17 = createMarker ( x, y, z, "cylinder", 2, 0, 0, 0, 0 ) مكان الماركر الاي توقف فيه عشان يفتح الباب

moveObject ( Object17, 1500, x, y, z ) الاحداث الاي تبي الاوبجكت يروح له

else

moveObject ( Object17, 1500, x, y, z ) هنا خليها نفس الاي فوووق مره عشان يرجع لنفس المكان

Link to comment
فيه تحت مكتوب كملتين بوليس

Police

استبدلها ب اسم التيم الاي تبي يفتح البباب

  
Team = "Police" 
local Object17 = createObject ( D, x, y, z, 0, 0, 90 ) 
local Marker17 = createMarker ( x, y, z, "cylinder", 2, 0, 0, 0, 0 ) 
  
function OpenObject17 ( player ) 
    if isElementWithinMarker ( player, Marker17 ) then 
        if ( getTeamName( getPlayerTeam( player ) ) == Team ) then 
            if not Open17 then 
                moveObject ( Object17, 1500, x, y, z ) 
            else 
                moveObject ( Object17, 1500, x, y, z ) 
            end 
            Open17 = not Open17 
        else 
            outputChatBox ( "* You aren't in ["..Police.."] team !", player, 200, 0, 0, true ) 
        end 
    end 
end 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, v in ipairs ( getElementsByType ( "player" ) ) do 
            bindKey ( v, "tab", "down", OpenObject17 ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey ( source, "tab", "down", OpenObject17 ) 
    end 
) 
  
  

الاي فوق

local Object17 = createObject ( D, x, y, z, 0, 0, 90 ) مكان الاوبجكت البوابه وحرف دي رقم البوابه

local Marker17 = createMarker ( x, y, z, "cylinder", 2, 0, 0, 0, 0 ) مكان الماركر الاي توقف فيه عشان يفتح الباب

moveObject ( Object17, 1500, x, y, z ) الاحداث الاي تبي الاوبجكت يروح له

else

moveObject ( Object17, 1500, x, y, z ) هنا خليها نفس الاي فوووق مره عشان يرجع لنفس المكان

كودك ما له علاقه بالطلب ,, هو يبيه لقروب ,, مو لتيم !!!

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