Jump to content

حد يصلحلي الكود ذا


Recommended Posts

Veh = {  } 
bindKey("x","down", 
function ( ) 
    if ( Veh[client] ) then destroyElement(Veh[client]) end 
            local xPosition , yPosition , zPosition = getElementPosition ( client ) 
                   Veh[client] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) 
                       warpPedIntoVehicle(client,Veh[client]) 
end ) 
function Destory( ) 
    if Vehcile[client] then 
        destroyElement(Vehcile[client]) 
        end 
    end  
addEventHandler("onPlayerWasted",getRootElement( ), Destory ) 
addEventHandler("onPlayerQuit",getRootElement( ), Destory ) 
addEventHandler("onVehicleExplode",getRootElement( ), Destory ) 

client = ?

Link to comment
Veh = {  } 
bindKey("x","down", 
function ( ) 
    if ( Veh[source] ) then destroyElement(Veh[source]) end 
            local xPosition , yPosition , zPosition = getElementPosition ( source ) 
                   Veh[source] = createVehicle(id,xPosition+1 , yPosition+1 , zPosition,0,0,90) 
                       warpPedIntoVehicle(source,Veh[source]) 
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...