Jump to content

وين خطأ


Recommended Posts

وين خطأ شباب ميخفي سيارة :@

addEvent("onAlpha",true) 
addEventHandler("onAlpha", root, 
function() 
  local vehicle = getPedOccupiedVehicle ( source ) 
 if ( vehicle ) and getVehicleOccupant(vehicle) == source then 
 if ( hide ~= true ) then 
 if ( hideTimer ~= true ) then 
   setElementAlpha ( vehicle, 0 ) 
   setElementAlpha ( source, 0 ) 
    hide = true 
    hideTimer = true 
   setTimer( function() hideTimer = false end,3000,1) 
   outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) 
else 
   outputChatBox ( "Wait 3 Seconds To Buy Hide !", source, 94,237,0, true ) 
 end 
else 
 if ( hideTimer ~= true ) then 
   setElementAlpha ( vehicle, 255 ) 
   setElementAlpha ( source, 255 ) 
    hide = false 
    hideTimer = true 
   setTimer( function() hideTimer = false end,3000,1) 
   outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) 
else 
   outputChatBox ( "Wait 3 Seconds To Buy un Hide !", source, 94,237,0, true ) 
   end 
  end 
 end 
end) 

Link to comment
hideTimer = { }; 
  
addEvent("onAlpha",true) 
addEventHandler("onAlpha", root, 
    function() 
        local vehicle = getPedOccupiedVehicle ( source ) 
        if vehicle then 
            if getVehicleController ( vehicle ) == source then 
                if getElementAlpha ( vehicle ) >= 200 then 
                    if not hideTimer[source] then 
                        setElementAlpha ( vehicle, 0 ) 
                        setElementAlpha ( source, 0 ) 
                        hideTimer[source] = true 
                        setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) 
                        outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) 
                    else 
                        outputChatBox ( "Wait 3 Seconds To Buy Hide !", source, 94,237,0, true ) 
                    end 
                else 
                    if not hideTimer[source] then 
                        setElementAlpha ( vehicle, 255 ) 
                        setElementAlpha ( source, 255 ) 
                        hideTimer[source] = true 
                        setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) 
                        outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) 
                    else 
                        outputChatBox ( "Wait 3 Seconds To Buy un Hide !", source, 94,237,0, true ) 
                    end 
                end 
            end 
        end 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if hideTimer[source] then 
            hideTimer[source] = nil 
        end 
    end 
) 

Link to comment
hideTimer = { }; 
  
addEvent("onAlpha",true) 
addEventHandler("onAlpha", root, 
    function() 
        local vehicle = getPedOccupiedVehicle ( source ) 
        if vehicle then 
            if getVehicleController ( vehicle ) == source then 
                if getElementAlpha ( vehicle ) >= 200 then 
                    if not hideTimer[source] then 
                        setElementAlpha ( vehicle, 0 ) 
                        setElementAlpha ( source, 0 ) 
                        hideTimer[source] = true 
                        setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) 
                        outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) 
                    else 
                        outputChatBox ( "Wait 3 Seconds To Buy Hide !", source, 94,237,0, true ) 
                    end 
                else 
                    if not hideTimer[source] then 
                        setElementAlpha ( vehicle, 255 ) 
                        setElementAlpha ( source, 255 ) 
                        hideTimer[source] = true 
                        setTimer( function ( p ) hideTimer[p] = false end,3000,1, source) 
                        outputChatBox ( "You Have Been Bought a Hide", source, 94,237,0, true ) 
                    else 
                        outputChatBox ( "Wait 3 Seconds To Buy un Hide !", source, 94,237,0, true ) 
                    end 
                end 
            end 
        end 
    end 
) 
  
addEventHandler ( "onPlayerQuit", root, 
    function ( ) 
        if hideTimer[source] then 
            hideTimer[source] = nil 
        end 
    end 
) 

يوم اضغط زر ميخفي سيارة :shock:

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