Jump to content

تعديل


Recommended Posts

ابغى ماتجي الوظايف سوااا

اول شيء ابغى ينصك الفريز وبعدين بنفك

واذا انفك الفريز ابغى تجي وظيفة تحريك الاوبجكت

والفلوس

meel = createBlip(2957.9191894531 , -696.17919921875 , -0.55000001192093, 40, 2, 255, 0, 0, 255, 0, 1000)
local gate = createObject(3095, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0) 
local marker2 = createMarker(2969.291015625,-700.45721435547,2.100, "cylinder", 2, 255, 0, 0) 
function close(player)
   if isElementWithinMarker(player, marker2) then 
setElementFrozen(player, true)
setTimer (setElementFrozen, 10000, 1, player, false)
       moveObject(gate, 10000, 2970.1999511719, -691, 687.20001220703, 0, 0, 0)
givePlayerMoney(player,10000)
			triggerClientEvent(player,"onShowMoney",player)
			setTimer(createObject,6000,1)
   end
end
addCommandHandler("aaa", close)

Link to comment

معليش مسحت الرد ^ لكن كودك يصير كذآ :

-- P.S : لم يتم التجربة 
local gate = createObject ( 3095, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 )  
local marker2 = createMarker ( 2969.291015625,-700.45721435547,2.100, 'cylinder', 2, 255, 0, 0 )  
Timer = { } 
  
addCommandHandler ( 'aaa', 
    function ( player ) 
        if isElementWithinMarker ( player,marker2 ) then 
            if not isPedInVehicle ( player ) then 
                if not isTimer ( Timer [player] ) then 
                    setElementFrozen ( player,true ) 
            Timer [player] = setTimer ( function (  player  ) 
                        setElementFrozen ( player,false ) 
                        givePlayerMoney ( player,10000 ) 
                        moveObject ( gate, 10000, 2970.1999511719, -691, 687.20001220703, 0, 0, 0 ) 
                        setTimer ( moveObject,40000,1,gate, 10000, 2969.1999511719, -700.20001220703, 1.500, 0, 0, 0 ) 
                        triggerClientEvent ( player,'onShowMoney',player ) 
                    end,10000,1,player  
                    ) 
                end 
            end 
        end 
    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...