Jump to content

تحويل انترو وديمونسيشن


DaHoM

Recommended Posts

انا ابي اول ما الاعب ينتقل لمنطقة في العالم الوهمي ويكتب كلمة باف8 يطلعلو اوبجكت هناك

function AddDoor( player, Door )
local Rimo = getPlayerRotation ( player )
local x, y, z = getElementPosition ( player )
local intro = getElementInterior( player ) 
local Dim = getElementDimension ( player )
createObject ( 980, x, y, z, 0, 0, Rimo )
	setElementDimension ( Door, Dim )  
    setElementInterior ( Door, intro )
end 
addCommandHandler("Door", AddDoor)

كل شي زابط بس الانترو والديمنسشن ما يعطي

يبقو مخفيات 

Link to comment
3 hours ago, DaHoM said:

انا ابي اول ما الاعب ينتقل لمنطقة في العالم الوهمي ويكتب كلمة باف8 يطلعلو اوبجكت هناك


function AddDoor( player, Door )
local Rimo = getPlayerRotation ( player )
local x, y, z = getElementPosition ( player )
local intro = getElementInterior( player ) 
local Dim = getElementDimension ( player )
createObject ( 980, x, y, z, 0, 0, Rimo )
	setElementDimension ( Door, Dim )  
    setElementInterior ( Door, intro )
end 
addCommandHandler("Door", AddDoor)

كل شي زابط بس الانترو والديمنسشن ما يعطي

يبقو مخفيات 

local Doors = {}

function AddDoor(player,_,id)
 local Rimo = getPlayerRotation(player)
 local x, y, z = getElementPosition(player)
 local intro = getElementInterior(player) 
 local Dim = getElementDimension(player)
 if not Doors[id] and not isElement(Doors[id]) then
    Doors[id] = createObject(980, x, y, z, 0, 0, Rimo)
    setElementDimension(Doors[id], Dim)  
    setElementInterior(Doors[id], intro)
end 
addCommandHandler("Door", AddDoor)

 

  • Thanks 1
Link to comment
On 12/9/2017 at 04:45, #x1AhMeD,-09 said:

local Doors = {}

function AddDoor(player,_,id)
 local Rimo = getPlayerRotation(player)
 local x, y, z = getElementPosition(player)
 local intro = getElementInterior(player) 
 local Dim = getElementDimension(player)
 if not Doors[id] and not isElement(Doors[id]) then
    Doors[id] = createObject(980, x, y, z, 0, 0, Rimo)
    setElementDimension(Doors[id], Dim)  
    setElementInterior(Doors[id], intro)
end 
addCommandHandler("Door", AddDoor)

 

باقي 

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