Jump to content

مودات مقرات


shwaeki

Recommended Posts

البوابه

  
local Object = createObject ( ID, x, y, z, rx, ry, rz ) 
local Marker = createMarker (x, y, z, "cylinder", size, 0, 0, 0, 80 ) 
  
function OpenObject ( player ) 
    if isElementWithinMarker ( player, Marker ) then 
         if getElementData( player ,'Group') == 'اسم القروب' then 
              if not Open then 
                moveObject ( Object, 1500, x, y, z ) 
            else 
                moveObject ( Object, 1500, x, y, z ) 
            end 
            Open = not Open 
        else 
            outputChatBox ( "* You Are Not in [اسم القروب]", player, 200, 0, 0, true ) 
        end 
    end 
end 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, v in ipairs ( getElementsByType ( "player" ) ) do 
            bindKey ( v, "tab", "down", OpenObject ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey ( source, "tab", "down", OpenObject ) 
    end 
) 

ماركر دم ودرع

Even 'onMarkerHit'

createMarker 
getElementType 
getElementData 
setElementHealth 
setPedArmor 

الانتقالات

Event 'onPlayerWasted'

getElementData 
setElementPosition or spawnPlayer 

Link to comment
(rx, ry, rz) اخي هدول احداثيات ايش

احداثيات الروتيشن دوران الأوبجكت

rotation

rx: A floating point number representing the rotation about the X axis in degrees.

ry: A floating point number representing the rotation about the Y axis in degrees.

rz: A floating point number representing the rotation about the Z axis in degrees.

Link to comment
  
local Object = createObject ( ID, x, y, z, rx, ry, rz ) 
local Marker = createMarker (x, y, z, "cylinder", size, 0, 0, 0, 80 ) 
  
function OpenObject ( player ) 
    if isElementWithinMarker ( player, Marker ) then 
         if getElementData( player ,'Group') == 'اسم القروب' then 
              if not Open then 
                moveObject ( Object, 1500, x, y, z ) 
            else 
                moveObject ( Object, 1500, x, y, z ) 
            end 
            Open = not Open 
        else 
            outputChatBox ( "* You Are Not in [اسم القروب]", player, 200, 0, 0, true ) 
        end 
    end 
end 
  
addEventHandler ( "onResourceStart", resourceRoot, 
    function ( ) 
        for _, v in ipairs ( getElementsByType ( "player" ) ) do 
            bindKey ( v, "tab", "down", OpenObject ) 
        end 
    end 
) 
  
addEventHandler ( "onPlayerJoin", root, 
    function ( ) 
        bindKey ( source, "tab", "down", OpenObject ) 
    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...