Jump to content

Argument 2


Recommended Posts

جرب تحط ملف الكلنت فوق السيرفر في المبتا

>    ="client.lua" type="client" />    ="server.lua" type="server" />>

+ وجرب refresh سوي

حآططهمم بالظظبط زي ذآ ! :\

Link to comment
  • Replies 84
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

جرب كذآ :

 Vehicle = {} 
  
addEvent("nothing", true) 
addEventHandler("nothing",root, 
 function ( ) 
    Vehicle[source] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341-005,269.57095336914 ) 
    warpPedIntoVehicle(source,Vehicle[source]) 
    createBlipAttachedTo(Vehicle[source],9) 
    setElementModel (source,45) 
end 
) 
  
addEventHandler("onVehicleStartExit",root, 
    function () 
    if ( source == ( Vehicle[source] ) ) then 
             cancelEvent( true ) 
         end 
    end 
) 
  
Link to comment

Server

  
  
Vehicle = {} 
  
addEvent("nothing", true) 
addEventHandler("nothing",getRootElement(), 
    if not Vehicle[source] then 
        Vehicle[source] = {} 
    end  
    if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
        destroyElement(Vehicle[source]['myVehicle']) 
    elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then                
        destroyElement(Vehicle[source]['myBilp']) 
    end 
    Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) 
    warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) 
    Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) 
    setElementModel(source,45) 
end 
  
addEventHandler("onVehicleStartExit",getRootElement(), 
    function () 
        if ( Vehicle[source] and Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) ) then 
           cancelEvent( true ) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit",root, 
    function ( ) 
        if ( Vehicle[source] ) then 
            if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
                destroyElement(Vehicle[source]['myVehicle']) 
            elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then                
                destroyElement(Vehicle[source]['myBilp']) 
            end 
            Vehicle[source] = nil 
        end 
    end 
) 
  
  

Link to comment

جرب ,

Vehicle = {} 
addEvent("nothing", true) 
addEventHandler("nothing",root, 
function() 
        Vehicle[source] = {} 
    if not Vehicle[source] then 
         end 
    end 
    if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
        destroyElement(Vehicle[source]['myVehicle']) 
    elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then               
        destroyElement(Vehicle[source]['myBilp']) 
    end 
    Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341-005,269.57095336914 ) 
    warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) 
    Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) 
    setElementModel(source,45) 
) 
addEventHandler("onVehicleStartExit",root, 
    function () 
        if ( Vehicle[source] and Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) ) then 
           cancelEvent( true ) 
        end 
    end 
) 
addEventHandler("onPlayerQuit",root, 
    function ( ) 
        if ( Vehicle[source] ) then 
            if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
                destroyElement(Vehicle[source]['myVehicle']) 
            elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then               
                destroyElement(Vehicle[source]['myBilp']) 
            end 
            Vehicle[source] = nil 
        end 
    end 
) 

Edited by Guest
Link to comment
  
  
  
Vehicle = {} 
  
addEvent("nothing", true) 
addEventHandler("nothing",getRootElement(),function () 
    if not Vehicle[source] then 
        Vehicle[source] = {} 
    end 
    if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
        destroyElement(Vehicle[source]['myVehicle']) 
    elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then               
        destroyElement(Vehicle[source]['myBilp']) 
    end 
    Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) 
    warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) 
    Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) 
    setElementModel(source,45) 
end 
) 
  
addEventHandler("onVehicleStartExit",getRootElement(), 
    function () 
        if ( Vehicle[source] and Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) ) then 
           cancelEvent( true ) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit",root, 
    function ( ) 
        if ( Vehicle[source] ) then 
            if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
                destroyElement(Vehicle[source]['myVehicle']) 
            elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then               
                destroyElement(Vehicle[source]['myBilp']) 
            end 
            Vehicle[source] = nil 
        end 
    end 
) 
  
  

Link to comment
  
  
  
Vehicle = {} 
  
addEvent("nothing", true) 
addEventHandler("nothing",getRootElement(),function () 
    if not Vehicle[source] then 
        Vehicle[source] = {} 
    end 
    if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
        destroyElement(Vehicle[source]['myVehicle']) 
    elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then               
        destroyElement(Vehicle[source]['myBilp']) 
    end 
    Vehicle[source]['myVehicle'] = createVehicle ( 473,-1457.09363,1022.52289,0.67758,0.89540588855743,2.3755996153341e-005,269.57095336914 ) 
    warpPedIntoVehicle(source,Vehicle[source]['myVehicle']) 
    Vehicle[source]['myBilp'] = createBlipAttachedTo(Vehicle[source]['myVehicle'],9) 
    setElementModel(source,45) 
end 
) 
  
addEventHandler("onVehicleStartExit",getRootElement(), 
    function (plr) 
        if ( Vehicle[plr] and Vehicle[plr]['myVehicle'] and isElement ( Vehicle[plr]['myVehicle'] ) ) then 
           cancelEvent( true ) 
        end 
    end 
) 
  
addEventHandler("onPlayerQuit",root, 
    function ( ) 
        if ( Vehicle[source] ) then 
            if Vehicle[source]['myVehicle'] and isElement ( Vehicle[source]['myVehicle'] ) then 
                destroyElement(Vehicle[source]['myVehicle']) 
            elseif Vehicle[source]['myBilp'] and isElement ( Vehicle[source]['myBilp'] ) then               
                destroyElement(Vehicle[source]['myBilp']) 
            end 
            Vehicle[source] = nil 
        end 
    end 
) 
  

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...