Faraon, Posted December 4, 2016 Share Posted December 4, 2016 السلام عليكم رحمة الله وبركاتة #احبايبي كيف حالكم ي اخواتي - ان شاء لله تكونوا بخير شباب لو سمحت ابي كود يجعل المود يعطي لة سيارات مختلفة كل مرة , ! الكود الي انا سويتة 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
Kara Posted December 4, 2016 Share Posted December 4, 2016 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
Faraon, Posted December 5, 2016 Author Share Posted December 5, 2016 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now