Jump to content

كود معقد !


Recommended Posts

السلام عليكم

شباب ابي لما اكتب كلمه

كل الي يكونون معي بل سياره ينزلون

حاولت حااولت حاااولت

وماضبطت

وحذفت الكود كله :)

واتمني تساعدوني

Link to comment
addCommandHandler("out", 
function (thePlayer) 
    local theVehicle = getPedOccupiedVehicle ( thePlayer ) 
    local pepol = getVehicleOccupants(thePlayer) 
    if theVehicle then 
        removePedFromVehicle ( pepol )  
    end 
end) 

ماضبط :\

Link to comment
-- Server Side 
addCommandHandler('out', 
 function ( thePlayer ) 
    local vehicle =  getPedOccupiedVehicle ( thePlayer )   
        if vehicle then 
            for i = 0,getVehicleMaxPassengers ( vehicle ) do 
                local getPlayer = getVehicleOccupant( vehicle, i ) 
                 if getPlayer then 
                    removePedFromVehicle( getPlayer ) 
                end 
            end 
        end 
    end 
) 

لم يتم التجربة .. الى الان

Link to comment
-- Server Side 
addCommandHandler('out', 
 function ( thePlayer ) 
    local vehicle =  getPedOccupiedVehicle ( thePlayer )   
        if vehicle then 
            for i = 0,getVehicleMaxPassengers ( vehicle ) do 
                local getPlayer = getVehicleOccupant( vehicle, i ) 
                    if thePlayer and getPlayer and getPlayer ~= thePlayer then 
                    removePedFromVehicle( getPlayer ) 
                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...