Jump to content

=[ طلب كود ]=


Faraon,

Recommended Posts

السلام عليكم رحمة الله وبركاتة

#احبايبي

كيف حالكم ي اخواتي - ان شاء لله تكونوا بخير

 

شباب لو سمحت ابي كود يجعل المود يعطي لة سيارات مختلفة كل مرة , !

الكود الي انا سويتة

local Dead = {}; 
local ID = {496, 587, 410,522,597,439,432,601,581,579,415,411}            
  
addEvent ( "createVehicleForPlayer", true ) 
addEventHandler("createVehicleForPlayer",root, function (  ) 
     if Dead[source] then 
         if isElement ( Dead[source] ) then destroyElement ( Dead[source] ) end 
     end 
     local x, y, z = getElementPosition ( source ) 
	 local randomID = ID[math.random[ID]
     Dead[source] = createVehicle( ID, x + 3, y, z ) 
     if ( Dead[source] ) then 
         warpPedIntoVehicle ( source, Dead[source] ) 
         outputChatBox("* [ تم اعطائك موتر ] .",source,math.random ( 150, 255 ),255,math.random ( 222, 255 ),true) 
    end 
end ) 
  
addEventHandler ( "onPlayerQuit", root, function (  ) 
   if Dead[source] then 
     if isElement ( Dead[source] ) then 
       destroyElement ( Dead[source] ) 
     end 
     Dead[source] = nil 
   end 
end ) 
  
addEventHandler ( "onVehicleExplode", resourceRoot, function (  ) 
   destroyElement ( source ) 
end ) 

بعد لما سويتة خرب لي المود بالكااامل !

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

Link to comment
local Dead = {}; 
local ID = {496, 587, 410,522,597,439,432,601,581,579,415,411}            
  
addEvent ( "createVehicleForPlayer", true ) 
addEventHandler("createVehicleForPlayer",root, function (  ) 
     if Dead[source] then 
     if isElement ( Dead[source] ) then destroyElement ( Dead[source] ) end  
     local x, y, z = getElementPosition ( source ) 
     local randomID = ID[math.random(#ID)]
     Dead[source] = createVehicle( ID, x + 3, y, z ) 
     if ( Dead[source] ) then 
         warpPedIntoVehicle ( source, Dead[source] ) 
         outputChatBox("* [ تم اعطائك موتر ] .",source,math.random ( 150, 255 ),255,math.random ( 222, 255 ),true) 
    end 
    end
end ) 
  
addEventHandler ( "onPlayerQuit", root, function (  ) 
   if Dead[source] then 
     if isElement ( Dead[source] ) then 
       destroyElement ( Dead[source] ) 
     end 
     Dead[source] = nil 
   end 
end ) 
  
addEventHandler ( "onVehicleExplode", resourceRoot, function (  ) 
   destroyElement ( source ) 
end ) 

جررب

Link to comment
1 hour ago, Kara said:

local Dead = {}; 
local ID = {496, 587, 410,522,597,439,432,601,581,579,415,411}            
  
addEvent ( "createVehicleForPlayer", true ) 
addEventHandler("createVehicleForPlayer",root, function (  ) 
     if Dead[source] then 
     if isElement ( Dead[source] ) then destroyElement ( Dead[source] ) end  
     local x, y, z = getElementPosition ( source ) 
     local randomID = ID[math.random(#ID)]
     Dead[source] = createVehicle( ID, x + 3, y, z ) 
     if ( Dead[source] ) then 
         warpPedIntoVehicle ( source, Dead[source] ) 
         outputChatBox("* [ تم اعطائك موتر ] .",source,math.random ( 150, 255 ),255,math.random ( 222, 255 ),true) 
    end 
    end
end ) 
  
addEventHandler ( "onPlayerQuit", root, function (  ) 
   if Dead[source] then 
     if isElement ( Dead[source] ) then 
       destroyElement ( Dead[source] ) 
     end 
     Dead[source] = nil 
   end 
end ) 
  
addEventHandler ( "onVehicleExplode", resourceRoot, function (  ) 
   destroyElement ( source ) 
end ) 

جررب

اجرب ؟ كان بمكانك تعديل علي 

 local randomID = ID[math.random(#ID)]

تجعلها بـ

local ID = ID[math.random(#ID)]

علي العموم , شكرا 

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