Jump to content

تعديل


Recommended Posts

ابغى كل السيارات لها لون احمر

  
markerpv = createMarker( 1847.0590820313, -2552.94140625, 12.55, "cylinder", 2, 0, 0, 255, 255 ) 
  
  
  
local vehicles = {} 
  
      
  
function spawnVehp( model ) 
  
local x, y, z = getElementPosition(source) 
  
if isElement(vehicles[source]) then destroyElement(vehicles[source]) end 
  
vehicles[source] = createVehicle(model, x + 2, y, z) 
  
warpPedIntoVehicle(source, vehicles[source]) 
  
end 
  
addEvent("CreVehicePv",true) 
  
addEventHandler("CreVehicePv", root, spawnVehp) 
  
      
  
addEventHandler('onPlayerQuit', root,function() 
  
    if isElement(vehicles[source]) then 
  
        destroyElement(vehicles[source]) 
  
            vehicles[source] = nil 
  
         end 
  
    end 
  
) 
  
  
  
  
  
addEventHandler ( "onMarkerHit", markerpv, function ( za7f ) 
  
   if getElementType ( za7f ) == "player" then 
  
    if ( getElementData( za7f, "Group" ) == "G" ) then 
  
      triggerClientEvent (za7f, "showGUIpv", za7f) 
  
     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...