Jump to content

مشكله بسيطه


Simple.

Recommended Posts

آلسلام عليكم

شبآب لاهنتم عندي مشكله بهذآ آلكود

-- Client Side 
addEventHandler ( "onClientGUIClick", resourceRoot, function (   ) 
  if ( source == okbu ) then 
   if ( guiGetText ( PassEdit ) == "00" ) then 
       triggerServerEvent ( "warp", localPlayer ) 
           outputChatBox ("#0082D7Welcome My Love",255,255,255, true) 
          guiSetVisible(PassWin, false ) 
                  showCursor( false ) 
        else 
        outputChatBox ( "#0082D7Worng Password Bitch", 255, 0, 0, true ) 
  
    end 
  end 
end )   
  
  

-- Server Side  
addEvent ( "warp", true ) 
addEventHandler ( "warp", root, function  ( )  
       setElementPosition ( source, 1302.2878417969, -789.06280517578, 1083.9079589844 ) 
        setElementInterior ( source, 5 ) 
       setElementDimension ( source, 12345 ) 
  
      end ) 
  
  

لما ينقلني اول مره ينقلني كل شي صحيح

لكن لما آجي مره ثانيه

يحطني بآلعالم الوهمي بس , مايوديني الانتريور آلي انا ابيه

آلححل لآهنتم :roll:

Link to comment
--#Client 
  
addEventHandler ( "onClientGUIClick", resourceRoot, function (   ) 
    if ( source == okbu ) then 
        if ( guiGetText ( PassEdit ) == "00" ) then 
            triggerServerEvent ( "warp", localPlayer ) 
            outputChatBox ("#0082D7Welcome My Love",255,255,255, true) 
            guiSetVisible(PassWin, false ) 
            showCursor( false ) 
        else 
            outputChatBox ( "#0082D7Worng Password Bitch", 255, 0, 0, true ) 
  
        end 
    end 
end 
)  

--#Server 
  
addEvent ( "warp", true ) 
addEventHandler ( "warp", root, function  ( ) 
setElementInterior ( source, 5, 1302.2878417969, -789.06280517578, 1083.9079589844 ) 
end 
) 

Link to comment
--#Server 
  
addEvent ( "warp", true ) 
addEventHandler ( "warp", root, function  ( ) 
    if not ( getElementInterior( source ) == 5 ) then 
        setElementInterior ( source, 5, 1302.2878417969, -789.06280517578, 1083.9079589844 ) 
    else 
        setElementInterior( source, 0 ) 
    end 
end 
) 

Link to comment
  
  
-- Server Side 
addEvent ( "warp", true ) 
addEventHandler ( "warp", root, 
function  ( ) 
if not ( getElementInterior( source ) == 5 ) then 
        setElementInterior ( source, 5,1302.2878417969, -789.06280517578, 1083.9079589844  ) 
       setElementDimension ( source, 12345 ) 
else 
       setElementInterior ( source, 0) 
       setElementDimension ( source, 1) 
end 
 ) 
  
  

Link to comment
! وضح المشكلة اكثر طيب

لما ينقلني اول مره ينقلني كل شي صحيح

لكن لما آجي مره ثانيه

يحطني بآلعالم الوهمي بس , مايوديني الانتريور آلي انا ابيه

آلححل لآهنتم :roll:

Link to comment

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

local Timer = {   }; 
  
addEvent ( "warp", true ) 
addEventHandler ( "warp", root, function  ( ) 
    if ( isTimer ( Timer [ source ] ) ) then return end 
    setElementInterior ( source, 5,1302.2878417969, -789.06280517578, 1083.9079589844  ) 
    setElementDimension ( source, 12345 )    
    Timer [ source ] = setTimer ( function ( source )  
    if ( getElementInterior ( source ) ~= 5 ) then 
        setElementInterior ( source, 5,1302.2878417969, -789.06280517578, 1083.9079589844  ) 
        Timer [ source ] = nil 
     end 
  end, 500, 1, source ) 
end ) 
  
addEventHandler ( "onPlayerQuit", root, function (  ) 
  if ( Timer [ source ] ) then 
     Timer [ source ] = nil 
  end 
end ) 
Link to comment
  
  
-- Server Side 
addEvent ( "warp", true ) 
addEventHandler ( "warp", root, 
function  ( ) 
if not ( getElementInterior( source ) == 5 ) then 
        setElementInterior ( source, 5,1302.2878417969, -789.06280517578, 1083.9079589844  ) 
       setElementDimension ( source, 12345 ) 
else 
       setElementInterior ( source, 0) 
       setElementDimension ( source, 1) 
end 
 ) 
  
  

ناقص اند

Link to comment

هذا الكود الي ينقلك من الانتريو للعالم العادي

addEventHandler ( "onClientGUIClick", resourceRoot, function (   ) 
  if ( source == outbu ) then 
      setElementInterior ( localPlayer, 0, 1309.4244384766, -1378.3237304688, 13.678433418274 ) 
      setElementDimension ( localPlayer, 0 ) 
    outputChatBox ("#0082D7See You Soon ",255,255,255, true) 
          guiSetVisible(PassWin1, false ) 
                  showCursor( false ) 
  end 
end )   
  

Link to comment
addEventHandler ( "onClientGUIClick", resourceRoot, function (   ) 
  if ( source == outbu ) then 
    outputChatBox ("#0082D7See You Soon ",255,255,255, true) 
    guiSetVisible ( PassWin1, false ) 
    showCursor( false ) 
    triggerServerEvent ( "Out!", getLocalPlayer (   ) ) 
  end 
end )   

addEvent ( "Out!", true ) 
addEventHandler ( "Out!", root, function (  ) 
   setElementInterior ( source, 0, 1309.4244384766, -1378.3237304688, 13.678433418274 ) 
   setElementDimension ( source, 0 ) 
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...