Jump to content

interior


Recommended Posts

ي شبآب وش آلخطأ ههنآ ,

آبي إذآ لمست مآركر .. يودني انتريور رقمهة 17 ..

 local marker = createMarker ( ......) 
 addEventHandler("onMarkerHit", marker, 
function(player) 
    if ( getElementType(player)==("player")) then 
    setElementInterior(player,17) 
    setElementDimension(player,0) 
end 
end 
) 

Link to comment

server !

local marker = createMarker ( ...... ) 
  
addEventHandler( 'onMarkerHit', marker, function( player ) 
    if getElementType( player ) == 'player' then 
        setElementInterior( player, 17 ) 
        setElementDimension( player, 0 ) 
    end 
end ) 
  

Link to comment

اذا كان الاعب في عالم 0 مايحتاج تحط هذي

setElementDimension( player, 0 ) 

جرب بدون تغير العالم

-- server side 
local marker = createMarker ( ......) 
  
addEventHandler("onMarkerHit", marker, 
function( playerHit ) 
    if ( getElementType( playerHit ) == ( "player" ) ) then 
    setElementInterior( playerHit, 17 ) 
    end 
end 
) 

اذا ماضبط

debugscript 3

Link to comment
local Doorentry = createMarker( 1477.6306152344, -1617.5650634766, 14.039297103882, "cylinder", 2, 255, 255, 255, 150 ) 
function Doore( player ) 
    if (source == Doorentry) then 
        if getElementType(player) == "player" then 
          setElementInterior(player,17) 
          setElementPosition ( player, posX, posY, posZ ) 
          setElementDimension(player,0) 
        end 
    end 
end  
addEventHandler ("onMarkerHit", getRootElement(), Doore ) 
  

:D

Link to comment

Client Side --

addEventHandler ( "onClientMarkerHit", Marker-Name, 
 function ( hitPlayer ) 
 if ( hitPlayer == localPlayer ) then 
 setElementInterior( hitPlayer, 17 ) 
 setElementPosition ( hitPlayer, x, y, z ) 
 end 
 end,false 
) 

بدل Marker-Name

بأسم الماركر

+

احداثيات اللاعب داخل الانتيرور

x , y , z

+

meta --

  "Samuel" version="1.0" type="script" name = "Marker"/> 
  

وشكراً :wink:

Link to comment
local Doorentry = createMarker( 1477.6306152344, -1617.5650634766, 14.039297103882, "cylinder", 2, 255, 255, 255, 150 ) 
function Doore( player ) 
    if (source == Doorentry) then 
        if getElementType(player) == "player" then 
          setElementInterior(player,17) 
          setElementPosition ( player, posX, posY, posZ ) 
          setElementDimension(player,0) 
        end 
    end 
end  
addEventHandler ("onMarkerHit", getRootElement(), Doore ) 
  

:D

setElementDimension(player,0) 

??

مالها داعي ,

خله يشوف كودي اتوقع شغال 8)

Link to comment
local Doorentry = createMarker( 1477.6306152344, -1617.5650634766, 14.039297103882, "cylinder", 2, 255, 255, 255, 150 ) 
function Doore( player ) 
    if (source == Doorentry) then 
        if getElementType(player) == "player" then 
          setElementInterior(player,17) 
          setElementPosition ( player, posX, posY, posZ ) 
          setElementDimension(player,0) 
        end 
    end 
end  
addEventHandler ("onMarkerHit", getRootElement(), Doore ) 
  

setElementDimension(player,0) 

??

مالها داعي ,

خله يشوف كودي اتوقع شغال 8)

لا تسوي فاهم زياده

هو يبيه كذا 8)

Link to comment
Client Side --
addEventHandler ( "onClientMarkerHit", Marker-Name, 
 function ( hitPlayer ) 
 if ( hitPlayer == localPlayer ) then 
 setElementInterior( hitPlayer, 17 ) 
 setElementPosition ( hitPlayer, x, y, z ) 
 end 
 end,false 
) 

بدل Marker-Name

بأسم الماركر

+

احداثيات اللاعب داخل الانتيرور

x , y , z

+

meta --

  "Samuel" version="1.0" type="script" name = "Marker"/> 
  

وشكراً :wink:

ما غيرت شيء

كل الي فوقك نفس الشيء

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