Jump to content

طلب فنكش


Recommended Posts

اللسلام عليكم

ابي فنكش مثال اي سياره راكب فيها اكتب كود باف 8 ما عاد تنفجر ابدا واذا رجعت كتبت الكود تصير تنفجر

لاهنتو لا تبخلو عليي بس الفنكشات وبعض المساعده منكم

Link to comment
integer = 0 
addCommandHandler("Command",  
function( player, cmd ) 
      if getPedOccupiedVehicle( player ) then 
         integer = integer + 1 
         setElementData( player, "blowVeh", integer ) 
               if getElementData( player, "blowVeh" ) == 2 then 
                       local vehicle = getPedOccupiedVehicle( player ) 
                       blowVehicle( vehicle ) 
                       integer = 0 
               end 
      else return end 
end ) 
  

Link to comment
This functions makes a vehicle damage proof, so it won't take damage from bullets, hits, explosions or fire. A damage proof's vehicle health can still be changed via script.
addCommandHandler("blow", function(plr) 
    local veh = getPedOccupiedVehicle(plr) 
    if veh then 
        setVehicleDamageProof(veh, not isVehicleDamageProof(veh)) 
    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...