Jump to content

الرجاء الدخول و المساعدة


Recommended Posts

في عطل بالمود لما حد ياخذ سيارة من الوحة و واحد تاني يبي السيارة و ياخذها تختفي من الاول

الرجاء المساعددة

function FadyCar ( ) 
if isPedInVehicle ( source ) then 
outputChatBox ( " Exit your car first !! ",source,255,0,0,false) 
CancelEvent () 
else 
   x,y,z = getElementPosition ( source ) 
   if isElement(VIPCar) then destroyElement(VIPCar) end 
   VIPCar = createVehicle ( 411, x, y, z ) 
   warpPlayerIntoVehicle ( source, VIPCar ) 
   text = "VIP Car" 
   setVehiclePlateText ( VIPCar, text ) 
   setVehicleDamageProof ( VIPCar, true ) 
   end 
   end 
addEvent( "FadyVIPCar", true ) 
addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) 

Link to comment

else ما يحتاج تكسنل الافنت مدام متحقق انه معاه ومسوي CancelEvent ملأحظة :ما ادري وش تقصد بـ الكينسل .. انت متحقق من وجود السيارة ومسوي لو معاه

local vehicle = { } 
  
function FadyCar ( ) 
 if isPedInVehicle ( source ) then 
      outputChatBox ( " Exit your car first !! ",source,255,0,0,false) 
      CancelEvent () 
 else 
        local x, y, z = getElementPosition ( source ) 
        if isElement( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) end 
        vehicle[ source ] = createVehicle ( 411, x, y, z ) 
        warpPlayerIntoVehicle ( source, vehicle[ source ] ) 
        text = "VIP Car" 
        setVehiclePlateText ( vehicle[ source ], text ) 
        setVehicleDamageProof ( vehicle[ source ], true ) 
      end 
end 
addEvent( "FadyVIPCar", true ) 
addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) 
  
addEventHandler( "onPlayerQuit", root, function(  ) 
  if isElement( vehicle[ source ] ) then 
         destroyElement( vehicle[ source ] ) 
         vehicle[ source ] = nil 
       end 
end ) 
  
addEventHandler( "onVehicleExplode", resourceRoot, function( ) 
        setTimer( destroyElement, 2000, 1, source) 
end )    
Edited by Guest
Link to comment
else ما يحتاج تكسنل الافنت مدام متحقق انه معاه ومسوي CancelEvent ملأحظة :ما ادري وش تقصد بـ الكينسل .. انت متحقق من وجود السيارة ومسوي لو معاه

local vehicle = { } 
  
function FadyCar ( ) 
 if isPedInVehicle ( source ) then 
  outputChatBox ( " Exit your car first !! ",source,255,0,0,false) 
  CancelEvent () 
 else 
     local x, y, z = getElementPosition ( source ) 
    if isElement( vehicle[ source ] ) then destroyElement( vehicle[ source ] ) end 
      vehicle[ source ] = createVehicle ( 411, x, y, z ) 
      warpPlayerIntoVehicle ( source, vehicle[ source ] ) 
      text = "VIP Car" 
      setVehiclePlateText ( vehicle[ source ], text ) 
      setVehicleDamageProof ( vehicle[ source ], true ) 
    end 
end 
addEvent( "FadyVIPCar", true ) 
addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) 

What is this ?

:roll:

Link to comment
في عطل بالمود لما حد ياخذ سيارة من الوحة و واحد تاني يبي السيارة و ياخذها تختفي من الاول

الرجاء المساعددة

function FadyCar ( ) 
if isPedInVehicle ( source ) then 
outputChatBox ( " Exit your car first !! ",source,255,0,0,false) 
CancelEvent () 
else 
   x,y,z = getElementPosition ( source ) 
   if isElement(VIPCar) then destroyElement(VIPCar) end 
   VIPCar = createVehicle ( 411, x, y, z ) 
   warpPlayerIntoVehicle ( source, VIPCar ) 
   text = "VIP Car" 
   setVehiclePlateText ( VIPCar, text ) 
   setVehicleDamageProof ( VIPCar, true ) 
   end 
   end 
addEvent( "FadyVIPCar", true ) 
addEventHandler( "FadyVIPCar", getRootElement(), FadyCar ) 

اللي فهمته انك تبي اللي يسرق سيارة تنسحب منه

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